<div dir="ltr">Hi,<div><br></div><div>Thanks for your question.</div><div>Could you please look at the vitrage-graph log and send us the error</div><div>You can find this log in /opt/stack/logs</div><div><br></div><div>Eyal <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 19, 2016 at 3:29 PM, <span dir="ltr"><<a href="mailto:dong.wenjuan@zte.com.cn" target="_blank">dong.wenjuan@zte.com.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><font size="2" face="sans-serif">Hi vitrage folks,</font>
<br>
<br><font size="2" face="sans-serif">I install virtage by devstack, but "vitrage
--debug alarms list" cli doesn't works.</font>
<br><font size="2" face="sans-serif">I trace the code, and find where the
code[1] caused the server error. </font>
<br><font size="2" face="sans-serif">Does anyone have the problems? Thanks~</font>
<br>
<br><font size="2" face="sans-serif">[1]<a href="https://github.com/openstack/vitrage/blob/master/vitrage/api/controllers/v1/alarms.py#L55" target="_blank">https://github.com/openstack/vitrage/blob/master/vitrage/api/controllers/v1/alarms.py#L55</a></font>
<br>
<br><font size="2" face="sans-serif">The cli log is as follows:</font>
<br><font size="2" face="sans-serif">stack@OS:~/vitrage/vitrage/api/controllers/v1$
vitrage --debug alarms list</font>
<br><font size="2" face="sans-serif">REQ: curl -g -i -X GET <a href="http://192.168.122.250:5000/-H" target="_blank">http://192.168.122.250:5000/
-H</a> "Accept: application/json" -H "User-Agent: keystoneauth1/2.4.0
python-requests/2.9.1 CPython/2.7.6"</font>
<br><font size="2" face="sans-serif">Starting new HTTP connection (1): 192.168.122.250</font>
<br><font size="2" face="sans-serif">"GET / HTTP/1.1" 300 599</font>
<br><font size="2" face="sans-serif">RESP: [300] Content-Length: 599 Vary:
X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu)
Connection: Keep-Alive Date: Tue, 19 Apr 2016 12:40:59 GMT Content-Type:
application/json </font>
<br><font size="2" face="sans-serif">RESP BODY: {"versions": {"values":
[{"status": "stable", "updated": "2016-04-04T00:00:00Z",
"media-types": [{"base": "application/json",
"type": "application/vnd.openstack.identity-v3+json"}],
"id": "v3.6", "links": [{"href":
"<a href="http://192.168.122.250:5000/v3/" target="_blank">http://192.168.122.250:5000/v3/</a>", "rel": "self"}]},
{"status": "stable", "updated": "2014-04-17T00:00:00Z",
"media-types": [{"base": "application/json",
"type": "application/vnd.openstack.identity-v2.0+json"}],
"id": "v2.0", "links": [{"href":
"<a href="http://192.168.122.250:5000/v2.0/" target="_blank">http://192.168.122.250:5000/v2.0/</a>", "rel": "self"},
{"href": "<a href="http://docs.openstack.org/" target="_blank">http://docs.openstack.org/</a>", "type":
"text/html", "rel": "describedby"}]}]}}</font>
<br>
<br><font size="2" face="sans-serif">Making authentication request to <a href="http://192.168.122.250:5000/v2.0/tokens" target="_blank">http://192.168.122.250:5000/v2.0/tokens</a></font>
<br><font size="2" face="sans-serif">"POST /v2.0/tokens HTTP/1.1"
200 4217</font>
<br><font size="2" face="sans-serif">REQ: curl -g -i -X GET <a href="http://192.168.122.250:8999/v1/alarms/-H" target="_blank">http://192.168.122.250:8999/v1/alarms/
-H</a> "User-Agent: keystoneauth1/2.4.0 python-requests/2.9.1 CPython/2.7.6"
-H "Accept: application/json" -H "X-Auth-Token: {SHA1}2796e3695d7d641a96680ced6e85b55581745673"</font>
<br><font size="2" face="sans-serif">Starting new HTTP connection (1): 192.168.122.250</font>
<br><font size="2" face="sans-serif">"GET /v1/alarms/?vitrage_id=all
HTTP/1.1" 500 613</font>
<br><font size="2" face="sans-serif">RESP: [500] Date: Tue, 19 Apr 2016 12:40:59
GMT Content-Length: 613 Content-Type: text/html; charset=iso-8859-1 Connection:
close Server: Apache/2.4.7 (Ubuntu) </font>
<br><font size="2" face="sans-serif">RESP BODY: <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML 2.0//EN"></font>
<br><font size="2" face="sans-serif"><html><head></font>
<br><font size="2" face="sans-serif"><title>500 Internal Server Error</title></font>
<br><font size="2" face="sans-serif"></head><body></font>
<br><font size="2" face="sans-serif"><h1>Internal Server Error</h1></font>
<br><font size="2" face="sans-serif"><p>The server encountered an internal
error or</font>
<br><font size="2" face="sans-serif">misconfiguration and was unable to complete</font>
<br><font size="2" face="sans-serif">your request.</p></font>
<br><font size="2" face="sans-serif"><p>Please contact the server administrator
at </font>
<br><font size="2" face="sans-serif"> [no address given] to inform them
of the time this error occurred,</font>
<br><font size="2" face="sans-serif"> and the actions you performed
just before this error.</p></font>
<br><font size="2" face="sans-serif"><p>More information about this
error may be available</font>
<br><font size="2" face="sans-serif">in the server error log.</p></font>
<br><font size="2" face="sans-serif"><hr></font>
<br><font size="2" face="sans-serif"><address>Apache/2.4.7 (Ubuntu)
Server at 192.168.122.250 Port 8999</address></font>
<br><font size="2" face="sans-serif"></body></html></font>
<br><pre><font color="blue">
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited. If you have received this mail in error, please delete it and notify us immediately.
</font></pre><br>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>