<br><font size=3 face="sans-serif">Hi,</font>
<br><font size=3 face="sans-serif">I exec all the vitrage cli and get the
same error.</font>
<br><font size=3 face="sans-serif">The log error is from /var/log/apache2/vitrage.log</font>
<br><font size=3>Here is my config file.Thanks for your help~</font>
<br>
<br><font size=3> <br>
</font>
<br><font size=3><br>
BR</font>
<br><font size=3>dwj</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=36%><font size=1 face="sans-serif"><b>Eyal B <eyalb1@gmail.com></b>
</font>
<p><font size=1 face="sans-serif">2016-04-20 14:10</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">请答复 给<br>
"OpenStack Development Mailing List \(not for usage questions\)"
<openstack-dev@lists.openstack.org></font></div></table>
<br>
<td width=63%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">收件人</font></div>
<td><font size=1 face="sans-serif">"OpenStack Development Mailing
List (not for usage questions)" <openstack-dev@lists.openstack.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">抄送</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">主题</font></div>
<td><font size=1 face="sans-serif">[probably forge email可能是仿冒邮件]Re:
[openstack-dev] 答复: [probably forge email可能是仿冒邮件]Re:
openstack-dev] [vitrage] vitrage alarms list</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Hi,</font>
<br>
<br><font size=3>Can you send the local.conf file in your devstack folder
?</font>
<br><font size=3>Can you send the /etc/vitrage/vitrage.conf file ?</font>
<br><font size=3>If you do vitrage topology show do you get an error ?</font>
<br><font size=3>the log that you sent is it vitrage-api.log or vitrage.log
?</font>
<br>
<br><font size=3>Thanks</font>
<br><font size=3>Eyal</font>
<br>
<br>
<br>
<br><font size=3>On Wed, Apr 20, 2016 at 5:34 AM, <</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,</font><font size=3> </font><font size=2 face="sans-serif"><br>
Thanks for your response.</font><font size=3> </font><font size=2 face="sans-serif"><br>
There is no error about the request of alarms list in vitrage-graph log.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Here is the vitrage-api log about the alarms error.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Thank you for your help~ :)</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
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><font size=3>
</font><font size=2 face="sans-serif"><br>
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><font size=3>
</font><font size=2 face="sans-serif"><br>
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><font size=3>
</font><font size=2 face="sans-serif"><br>
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><font size=3>
</font><font size=2 face="sans-serif"><br>
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><font size=3>
</font><font size=2 face="sans-serif"><br>
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><font size=3> </font><font size=2 face="sans-serif"><br>
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><font size=3>
</font><font size=2 face="sans-serif"><br>
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><font size=3>
</font><font size=2 face="sans-serif"><br>
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><font size=3> </font><font size=2 face="sans-serif"><br>
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><font size=3> </font><font size=2 face="sans-serif"><br>
2016-04-20 09:45:35.598523 End of script output before headers: app</font><font size=3>
</font><font size=2 face="sans-serif"><br>
</font><font size=3><br>
<br>
<br>
<br>
<br>
<br>
</font>
<p>
<table width=100%>
<tr valign=top>
<td width=48%><font size=1 face="sans-serif"><b>Eyal B <</b></font><a href=mailto:eyalb1@gmail.com target=_blank><font size=1 color=blue face="sans-serif"><b><u>eyalb1@gmail.com</u></b></font></a><font size=1 face="sans-serif"><b>></b>
</font>
<p><font size=1 face="sans-serif">2016-04-19 20:40</font><font size=3>
</font>
<p>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<div align=center><font size=1 face="sans-serif">请答复 给<br>
"OpenStack Development Mailing List \(not for usage questions\)"
<</font><a href="mailto:openstack-dev@lists.openstack.org" target=_blank><font size=1 color=blue face="sans-serif"><u>openstack-dev@lists.openstack.org</u></font></a><font size=1 face="sans-serif">></font></div></table>
<br>
<td width=51%>
<table width=100%>
<tr valign=top>
<td width=7%>
<div align=right><font size=1 face="sans-serif">收件人</font></div>
<td width=92%><font size=1 face="sans-serif">"OpenStack Development
Mailing List (not for usage questions)" <</font><a href="mailto:openstack-dev@lists.openstack.org" target=_blank><font size=1 color=blue face="sans-serif"><u>openstack-dev@lists.openstack.org</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">抄送</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">主题</font></div>
<td><font size=1 face="sans-serif">[probably forge email可能是仿冒邮件]Re:
[openstack-dev] openstack-dev] [vitrage] vitrage alarms list</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=50%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
<br>
Hi, <br>
<br>
Thanks for your question. <br>
Could you please look at the vitrage-graph log and send us the error <br>
You can find this log in /opt/stack/logs <br>
<br>
Eyal <br>
<br>
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><font size=2 face="sans-serif"><br>
<br>
Hi vitrage folks,</font><font size=3> </font><font size=2 face="sans-serif"><br>
<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> </font><font size=2 face="sans-serif"><br>
<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>
</font><font size=2 face="sans-serif"><br>
<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>
</font><font size=2 face="sans-serif"><br>
<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><font size=3 color=blue><tt><br>
<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>
</tt></font><font size=3><br>
<br>
<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><font size=2><tt><br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: </tt></font><a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target=_blank><font size=2 color=blue><tt><u>OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</u></tt></font></a><font size=2 color=blue><tt><u><br>
</u></tt></font><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target=_blank><font size=2 color=blue><tt><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></tt></font></a><font size=3><br>
<br>
</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>
<br><font size=3><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: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<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>