[openstack-dev] 答复: Re: openstack-dev] [vitrage] vitrage alarms list

dong.wenjuan at zte.com.cn dong.wenjuan at zte.com.cn
Mon Apr 25 01:32:29 UTC 2016


Hi
I'm not sure.
The cli can create nova, cinder, glance and etc users, but not vitrage, so 
strange.
So i delete all source repos, and clean the env, then deploy the OS again.
It works now. :)

But there is a problems in vitrage dashboard.
I use vitrage topology show cli can get the topology,but it don't show in 
dashborad.

The error log in dashboard is as follows:
Unable to fetch the Vitrage Topology service. 

The vitrage topology show cli works well

stack at cloud:~$ vitrage topology show
{
  "directed": true, 
  "graph": {}, 
  "nodes": [
    {
      "category": "RESOURCE", 
      "is_placeholder": false, 
      "is_deleted": false, 
      "name": "cloud", 
      "update_timestamp": "2016-04-23 08:42:36.037947+00:00", 
      "sample_timestamp": "2016-04-23 08:42:36.037947+00:00", 
      "aggregated_state": "UNDEFINED", 
      "graph_index": 0, 
      "vitrage_id": "RESOURCE:nova.host:cloud", 
      "type": "nova.host", 
      "id": "cloud"
    }, 

Do you know where is the problems?
Thank you~

BR,
dwj






Eyal B <eyalb1 at gmail.com> 
2016-04-24 15:32

收件人
dong.wenjuan at zte.com.cn
抄送
"OpenStack Development Mailing List (not for usage questions)" 
<openstack-dev at lists.openstack.org>
主题
Re: openstack-dev] [vitrage] vitrage alarms list






Hi,

I understand it works now 
What was the problem ?

Eyal

On Fri, Apr 22, 2016 at 4:55 AM, <dong.wenjuan at zte.com.cn> wrote:

Hi 
I get the latest sources and delete the /etc/vitrage/vitrage.conf,do 
unstack.sh and stack.sh. 
But deploy failed. The local.cnof is the same as before. 
Is there any vitrage configures i missed? 
Use openstack user create cli to create nova,glance and etc is successful. 

Thanks for your help. :) 

Here is the error log: 

2016-04-22 02:00:01.646 | Initializing Vitrage 
++/opt/stack/vitrage/devstack/plugin.sh:source:255  init_vitrage 
++/opt/stack/vitrage/devstack/plugin.sh:init_vitrage:179 
 _vitrage_create_accounts 
++/opt/stack/vitrage/devstack/plugin.sh:_vitrage_create_accounts:69 
 is_service_enabled vitrage-api 
++functions-common:is_service_enabled:2047  local xtrace 
+++functions-common:is_service_enabled:2048  set +o 
+++functions-common:is_service_enabled:2048  grep xtrace 
++functions-common:is_service_enabled:2048  xtrace='set -o xtrace' 
++functions-common:is_service_enabled:2049  set +o xtrace 
++functions-common:is_service_enabled:2077  return 0 
++/opt/stack/vitrage/devstack/plugin.sh:_vitrage_create_accounts:71 
 create_service_user vitrage admin 
++lib/keystone:create_service_user:449      local role=admin 
++lib/keystone:create_service_user:451      get_or_create_user vitrage 
stack Default 
++functions-common:get_or_create_user:798   local user_id 
++functions-common:get_or_create_user:799   [[ ! -z '' ]] 
++functions-common:get_or_create_user:802   local email= 
+++functions-common:get_or_create_user:816   openstack user create vitrage 
--password stack --domain=Default --or-show -f value -c id 
Discovering versions from the identity service failed when creating the 
password plugin. Attempting to determine version from URL. 
Could not determine a suitable URL for the plugin 
++functions-common:get_or_create_user:814   user_id= 
+functions-common:get_or_create_user:1     exit_trap 
+./stack.sh:exit_trap:474                  local r=1 
++./stack.sh:exit_trap:475                  jobs -p 
+./stack.sh:exit_trap:475                  jobs= 
+./stack.sh:exit_trap:478                  [[ -n '' ]] 
+./stack.sh:exit_trap:484                  kill_spinner 
+./stack.sh:kill_spinner:370               '[' '!' -z '' ']' 
+./stack.sh:exit_trap:486                  [[ 1 -ne 0 ]] 
+./stack.sh:exit_trap:487                  echo 'Error on exit'



董文娟   Wenjuan Dong 
控制器四部 / 无线产品   Controller Dept Ⅳ. / Wireless Product Operation 
  



上海市浦东新区碧波路889号中兴通讯D3
D3, ZTE, No. 889, Bibo Rd.
T: +86 021 85922    M: +86 13661996389
E: dong.wenjuan at zte.com.cn
www.ztedevice.com






Eyal B <eyalb1 at gmail.com> 
2016-04-20 16:34 


收件人
dong.wenjuan at zte.com.cn 
抄送
"OpenStack Development Mailing List (not for usage questions)" <
openstack-dev at lists.openstack.org> 
主题
Re: 答复: [probably forge email可能是仿冒邮件]Re: [openstack-dev] 答复: 
[probably forge email可能是仿冒邮件]Re: openstack-dev] [vitrage] vitrage 
alarms list








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.wenjuan at 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 <eyalb1 at gmail.com> 
2016-04-20 14:10 



请答复 给
"OpenStack Development Mailing List \(not for usage questions\)" <
openstack-dev at lists.openstack.org>


收件人
"OpenStack Development Mailing List (not for usage questions)" <
openstack-dev at 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.wenjuan at 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 <eyalb1 at gmail.com> 
2016-04-19 20:40 



请答复 给
"OpenStack Development Mailing List \(not for usage questions\)" <
openstack-dev at lists.openstack.org>


收件人
"OpenStack Development Mailing List (not for usage questions)" <
openstack-dev at 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.wenjuan at 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 at 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-request at 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-request at 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-request at 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-request at 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.




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





--------------------------------------------------------
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160425/c640f39d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 6015 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160425/c640f39d/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 900 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160425/c640f39d/attachment-0001.gif>


More information about the OpenStack-dev mailing list