Hi, Can you send the vitrage-graph.log ? Is the vitrage-graph process running ?
We fixed some bugs with the devstack installation Do you have the latest sources from the vitrage git repo ? Can you get the latest sources (just do git pull) delete the /etc/vitrage/vitrage.conf do unstack.sh and stack.sh and let me know if it works Eyal On Wed, Apr 20, 2016 at 10:35 AM, <dong.wenj...@zte.com.cn> wrote: > > Hi, > I exec all the vitrage cli and get the same error. > The log error is from /var/log/apache2/vitrage.log > Here is my config file.Thanks for your help~ > > > > > BR > dwj > > > > *Eyal B <eya...@gmail.com <eya...@gmail.com>>* > > 2016-04-20 14:10 > 请答复 给 > "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] 答复: [probably forge > email可能是仿冒邮件]Re: openstack-dev] [vitrage] vitrage alarms list > > > > > Hi, > > Can you send the local.conf file in your devstack folder ? > Can you send the /etc/vitrage/vitrage.conf file ? > If you do vitrage topology show do you get an error ? > the log that you sent is it vitrage-api.log or vitrage.log ? > > Thanks > Eyal > > > > On Wed, Apr 20, 2016 at 5:34 AM, <*dong.wenj...@zte.com.cn* > <dong.wenj...@zte.com.cn>> wrote: > > 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* <eya...@gmail.com>*>* > > 2016-04-19 20:40 > > > 请答复 给 > "OpenStack Development Mailing List \(not for usage questions\)" < > *openstack-dev@lists.openstack.org* <openstack-dev@lists.openstack.org>> > > 收件人 > "OpenStack Development Mailing List (not for usage questions)" < > *openstack-dev@lists.openstack.org* <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* > <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* > <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* > <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/* > <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/* > <http://192.168.122.250:5000/v2.0/>", "rel": "self"}, {"href": " > *http://docs.openstack.org/* <http://docs.openstack.org/>", "type": > "text/html", "rel": "describedby"}]}]}} > > Making authentication request to *http://192.168.122.250:5000/v2.0/tokens* > <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* > <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://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe> > *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev* > <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://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe> > *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev* > <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://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe> > *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev* > <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