Hi,
Thanks for your response.
There is no error about the request of alarms list in vitrage-graph log.
Here is the vitrage-api log about the alarms error.

Thank you for your help~ :)

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
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
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
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
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".
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
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
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
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
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
2016-04-20 09:45:35.598523 End of script output before headers: app
  







Eyal B <eya...@gmail.com> 
2016-04-19 20:40
请答复 给
"OpenStack Development Mailing List \(not for usage questions\)" 
<openstack-dev@lists.openstack.org>


收件人
"OpenStack Development Mailing List (not for usage questions)" 
<openstack-dev@lists.openstack.org>
抄送

主题
[probably forge email可能是仿冒邮件]Re: [openstack-dev] openstack-dev] 
[vitrage] vitrage alarms list






Hi,

Thanks for your question.
Could you please look at the vitrage-graph log and send us the error
You can find this log in /opt/stack/logs

Eyal 

On Tue, Apr 19, 2016 at 3:29 PM, <dong.wenj...@zte.com.cn> wrote:

Hi vitrage folks, 

I install virtage by devstack, but "vitrage --debug alarms list" cli 
doesn't works. 
I trace the code, and find where the code[1] caused the server error. 
Does anyone have the problems? Thanks~ 

[1]
https://github.com/openstack/vitrage/blob/master/vitrage/api/controllers/v1/alarms.py#L55
 


The cli log is as follows: 
stack@OS:~/vitrage/vitrage/api/controllers/v1$ vitrage --debug alarms list 

REQ: curl -g -i -X GET http://192.168.122.250:5000/ -H "Accept: 
application/json" -H "User-Agent: keystoneauth1/2.4.0 
python-requests/2.9.1 CPython/2.7.6" 
Starting new HTTP connection (1): 192.168.122.250 
"GET / HTTP/1.1" 300 599 
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 
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": "http://192.168.122.250:5000/v3/";, "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": "http://192.168.122.250:5000/v2.0/";, "rel": "self"}, {"href": "
http://docs.openstack.org/";, "type": "text/html", "rel": 
"describedby"}]}]}} 

Making authentication request to http://192.168.122.250:5000/v2.0/tokens 
"POST /v2.0/tokens HTTP/1.1" 200 4217 
REQ: curl -g -i -X GET http://192.168.122.250:8999/v1/alarms/ -H 
"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" 
Starting new HTTP connection (1): 192.168.122.250 
"GET /v1/alarms/?vitrage_id=all HTTP/1.1" 500 613 
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) 
RESP BODY: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
<html><head> 
<title>500 Internal Server Error</title> 
</head><body> 
<h1>Internal Server Error</h1> 
<p>The server encountered an internal error or 
misconfiguration and was unable to complete 
your request.</p> 
<p>Please contact the server administrator at 
 [no address given] to inform them of the time this error occurred, 
 and the actions you performed just before this error.</p> 
<p>More information about this error may be available 
in the server error log.</p> 
<hr> 
<address>Apache/2.4.7 (Ubuntu) Server at 192.168.122.250 Port 
8999</address> 
</body></html> 

--------------------------------------------------------
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.




__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


--------------------------------------------------------
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.
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to