<div dir="ltr">Hi,<div><br></div><div>Can you send the local.conf file in your devstack folder ?</div><div>Can you send the /etc/vitrage/vitrage.conf file ?</div><div>If you do vitrage topology show do you get an error ?</div><div>the log that you sent is it vitrage-api.log or vitrage.log ?</div><div><br></div><div>Thanks</div><div>Eyal</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 20, 2016 at 5:34 AM,  <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,</font>
<br><font size="2" face="sans-serif">Thanks for your response.</font>
<br><font size="2" face="sans-serif">There is no error about the request
of alarms list in vitrage-graph log.</font>
<br><font size="2" face="sans-serif">Here is the vitrage-api log about the
alarms error.</font>
<br>
<br><font size="2" face="sans-serif">Thank you for your help~ :)</font>
<br>
<br><font size="2" face="sans-serif">2016-04-20 09:45:34.599585 2016-04-20
09:45:34.599 3700 DEBUG vitrage.service [-] static_physical.transformer
   = vitrage.datasources.static_physical.transformer.StaticPhysicalTransformer
log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:2525</font>
<br><font size="2" face="sans-serif">2016-04-20 09:45:34.599844 2016-04-20
09:45:34.599 3700 DEBUG vitrage.service [-] ********************************************************************************
log_opt_values /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:2527</font>
<br><font size="2" face="sans-serif">2016-04-20 09:45:34.797687 2016-04-20
09:45:34.797 3700 INFO root [-] Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt</font>
<br><font size="2" face="sans-serif">2016-04-20 09:45:34.848659 2016-04-20
09:45:34.848 3700 INFO root [-] Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt</font>
<br><font size="2" face="sans-serif">2016-04-20 09:45:34.950314 2016-04-20
09:45:34.950 3700 WARNING oslo_config.cfg [-] Option "username"
from group "keystone_authtoken" is deprecated. Use option "user-name"
from group "keystone_authtoken".</font>
<br><font size="2" face="sans-serif">2016-04-20 09:45:34.951405 2016-04-20
09:45:34.951 3700 WARNING keystonemiddleware.auth_token [-] signing_dir
mode is 0755 instead of 0700</font>
<br><font size="2" face="sans-serif">2016-04-20 09:45:35.351792 2016-04-20
09:45:35.351 3700 DEBUG oslo_policy._cache_handler [req-beb876c2-edc0-4048-824d-df66ec926775
admin 6acd5010c0954e4388473acf8d133e25 - - -] Reloading cached file /etc/vitrage/policy.json
read_cached_file /usr/local/lib/python2.7/dist-packages/oslo_policy/_cache_handler.py:38</font>
<br><font size="2" face="sans-serif">2016-04-20 09:45:35.352640 2016-04-20
09:45:35.352 3700 DEBUG oslo_policy.policy [req-beb876c2-edc0-4048-824d-df66ec926775
admin 6acd5010c0954e4388473acf8d133e25 - - -] Reloaded policy file: /etc/vitrage/policy.json
_load_policy_file /usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py:493</font>
<br><font size="2" face="sans-serif">2016-04-20 09:45:35.353555 2016-04-20
09:45:35.353 3700 INFO vitrage.api.controllers.v1.alarms [req-beb876c2-edc0-4048-824d-df66ec926775
admin 6acd5010c0954e4388473acf8d133e25 - - -] received list alarms with
vitrage id all</font>
<br><font size="2" face="sans-serif">2016-04-20 09:45:35.376953 2016-04-20
09:45:35.376 3700 WARNING oslo.messaging._drivers.impl_rabbit [req-beb876c2-edc0-4048-824d-df66ec926775
admin 6acd5010c0954e4388473acf8d133e25 - - -] Heartbeat support requested
but it is not supported by the kombu driver or the broker</font>
<br><font size="2" face="sans-serif">2016-04-20 09:45:35.598523 End of script
output before headers: app</font>
<br><font size="2" face="sans-serif">           
                     
                     
                     
           <br>
</font><font size="3"><br>
<br>
</font>
<br>
<br>
<br>
<br>
<p></p><table width="100%">
<tbody><tr valign="top">
<td width="36%"><font size="1" face="sans-serif"><b>Eyal B <<a href="mailto:eyalb1@gmail.com" target="_blank">eyalb1@gmail.com</a>></b>
</font>
<p><font size="1" face="sans-serif">2016-04-19 20:40</font>
</p><table border="">
<tbody><tr valign="top">
<td bgcolor="white">
<div align="center"><font size="1" face="sans-serif">请答复 给<br>
"OpenStack Development Mailing List \(not for usage questions\)"
<<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>></font></div></td></tr></tbody></table>
<br>
</td><td width="63%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">收件人</font></div>
</td><td><font size="1" face="sans-serif">"OpenStack Development Mailing
List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">抄送</font></div>
</td><td>
</td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">主题</font></div>
</td><td><font size="1" face="sans-serif">[probably forge email可能是仿冒邮件]Re:
[openstack-dev] openstack-dev] [vitrage] vitrage alarms list</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table><div class="HOEnZb"><div class="h5">
<br>
<br>
<br><font size="3">Hi,</font>
<br>
<br><font size="3">Thanks for your question.</font>
<br><font size="3">Could you please look at the vitrage-graph log and send
us the error</font>
<br><font size="3">You can find this log in /opt/stack/logs</font>
<br>
<br><font size="3">Eyal </font>
<br>
<br><font size="3">On Tue, Apr 19, 2016 at 3:29 PM, <</font><a href="mailto:dong.wenjuan@zte.com.cn" target="_blank"><font size="3" color="blue"><u>dong.wenjuan@zte.com.cn</u></font></a><font size="3">>
wrote:</font>
<br><font size="2" face="sans-serif"><br>
Hi vitrage folks,</font><font size="3"> <br>
</font><font size="2" face="sans-serif"><br>
I install virtage by devstack, but "vitrage --debug alarms list"
cli doesn't works.</font><font size="3"> </font><font size="2" face="sans-serif"><br>
I trace the code, and find where the code[1] caused the server error. <br>
Does anyone have the problems? Thanks~</font><font size="3"> <br>
</font><font size="2" face="sans-serif"><br>
[1]</font><a href="https://github.com/openstack/vitrage/blob/master/vitrage/api/controllers/v1/alarms.py#L55" target="_blank"><font size="2" color="blue" face="sans-serif"><u>https://github.com/openstack/vitrage/blob/master/vitrage/api/controllers/v1/alarms.py#L55</u></font></a><font size="3">
<br>
</font><font size="2" face="sans-serif"><br>
The cli log is as follows:</font><font size="3"> </font><font size="2" face="sans-serif"><br>
stack@OS:~/vitrage/vitrage/api/controllers/v1$ vitrage --debug alarms list</font><font size="3">
</font><font size="2" face="sans-serif"><br>
REQ: curl -g -i -X GET </font><a href="http://192.168.122.250:5000/-H" target="_blank"><font size="2" color="blue" face="sans-serif"><u>http://192.168.122.250:5000/
-H</u></font></a><font size="2" face="sans-serif"> "Accept: application/json"
-H "User-Agent: keystoneauth1/2.4.0 python-requests/2.9.1 CPython/2.7.6"</font><font size="3">
</font><font size="2" face="sans-serif"><br>
Starting new HTTP connection (1): 192.168.122.250</font><font size="3"> </font><font size="2" face="sans-serif"><br>
"GET / HTTP/1.1" 300 599</font><font size="3"> </font><font size="2" face="sans-serif"><br>
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 <br>
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":
"</font><a href="http://192.168.122.250:5000/v3/" target="_blank"><font size="2" color="blue" face="sans-serif"><u>http://192.168.122.250:5000/v3/</u></font></a><font size="2" face="sans-serif">",
"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":
"</font><a href="http://192.168.122.250:5000/v2.0/" target="_blank"><font size="2" color="blue" face="sans-serif"><u>http://192.168.122.250:5000/v2.0/</u></font></a><font size="2" face="sans-serif">",
"rel": "self"}, {"href": "</font><a href="http://docs.openstack.org/" target="_blank"><font size="2" color="blue" face="sans-serif"><u>http://docs.openstack.org/</u></font></a><font size="2" face="sans-serif">",
"type": "text/html", "rel": "describedby"}]}]}}</font><font size="3">
<br>
</font><font size="2" face="sans-serif"><br>
Making authentication request to </font><a href="http://192.168.122.250:5000/v2.0/tokens" target="_blank"><font size="2" color="blue" face="sans-serif"><u>http://192.168.122.250:5000/v2.0/tokens</u></font></a><font size="3">
</font><font size="2" face="sans-serif"><br>
"POST /v2.0/tokens HTTP/1.1" 200 4217</font><font size="3"> </font><font size="2" face="sans-serif"><br>
REQ: curl -g -i -X GET </font><a href="http://192.168.122.250:8999/v1/alarms/-H" target="_blank"><font size="2" color="blue" face="sans-serif"><u>http://192.168.122.250:8999/v1/alarms/
-H</u></font></a><font size="2" face="sans-serif"> "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><font size="3">
</font><font size="2" face="sans-serif"><br>
Starting new HTTP connection (1): 192.168.122.250</font><font size="3"> </font><font size="2" face="sans-serif"><br>
"GET /v1/alarms/?vitrage_id=all HTTP/1.1" 500 613</font><font size="3">
</font><font size="2" face="sans-serif"><br>
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)
<br>
RESP BODY: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"></font><font size="3">
</font><font size="2" face="sans-serif"><br>
<html><head></font><font size="3"> </font><font size="2" face="sans-serif"><br>
<title>500 Internal Server Error</title></font><font size="3">
</font><font size="2" face="sans-serif"><br>
</head><body></font><font size="3"> </font><font size="2" face="sans-serif"><br>
<h1>Internal Server Error</h1></font><font size="3"> </font><font size="2" face="sans-serif"><br>
<p>The server encountered an internal error or</font><font size="3">
</font><font size="2" face="sans-serif"><br>
misconfiguration and was unable to complete</font><font size="3"> </font><font size="2" face="sans-serif"><br>
your request.</p></font><font size="3"> </font><font size="2" face="sans-serif"><br>
<p>Please contact the server administrator at <br>
 [no address given] to inform them of the time this error occurred,</font><font size="3">
</font><font size="2" face="sans-serif"><br>
 and the actions you performed just before this error.</p></font><font size="3">
</font><font size="2" face="sans-serif"><br>
<p>More information about this error may be available</font><font size="3">
</font><font size="2" face="sans-serif"><br>
in the server error log.</p></font><font size="3"> </font><font size="2" face="sans-serif"><br>
<hr></font><font size="3"> </font><font size="2" face="sans-serif"><br>
<address>Apache/2.4.7 (Ubuntu) Server at 192.168.122.250 Port 8999</address></font><font size="3">
</font><font size="2" face="sans-serif"><br>
</body></html></font><font size="3"> </font>
<br><font size="3" color="blue"><tt><br>
--------------------------------------------------------<br>
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.<br>
<br>
</tt></font>
<br><font size="3"><br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: </font><a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank"><font size="3" color="blue"><u>OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</u></font></a><font size="3" color="blue"><u><br>
</u></font><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank"><font size="3" color="blue"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></a><font size="3"><br>
</font>
<br><font size="2"><tt>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</tt></font>
<br>

<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>
</div></div><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>