Public bug reported: Version: Liberty. OS: controller & compute node are ubuntu 14.04 server, follow the doc to install.
After installed Using "nova host-list" will get the result correctly +------------------+-------------+----------+ | host_name | service | zone | +------------------+-------------+----------+ | controller | cert | internal | | controller | scheduler | internal | | controller | consoleauth | internal | | controller | conductor | internal | | compute-node-164 | compute | nova | +------------------+-------------+----------+ but if use "nova hypervisor-list" ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'nova.exception.ComputeHostNotFound'> (HTTP 500) (Request-ID: req-0649f773-8b50-4b84-a670-d8c290f77439) >From the dashboard, in the System -> hypervisor panel, I can not find the >hypervisor. when navigate to this page, an error will display get not the >hypervisor informatin. The compute node is displayed on "Compute Host" tab, not not in the Hypervisor tab. version_instgalled: ii nova-api 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - API frontend ii nova-cert 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - certificate management ii nova-common 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - common files ii nova-conductor 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - conductor service ii nova-consoleauth 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - Console Authenticator ii nova-novncproxy 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - NoVNC proxy ii nova-scheduler 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - virtual machine scheduler ii python-nova 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute Python libraries ii python-novaclient 2:2.30.1-1~cloud0 all client library for OpenStack Compute API nova-api.log below --------------------cut here ---------------------- 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions [req-7ddb9e1f-b74a-4df0-ade6-2b364a66ac36 c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] Unexpected exception in API method 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions Traceback (most recent call last): 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions return f(*args, **kwargs) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/hypervisors.py", line 101, in detail 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions for hyp in compute_nodes]) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 3504, in service_get_by_compute_host 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions return objects.Service.get_by_compute_host(context, host_name) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 171, in wrapper 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions result = fn(cls, context, *args, **kwargs) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/objects/service.py", line 222, in get_by_compute_host 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions db_service = db.service_get_by_compute_host(context, host) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 139, in service_get_by_compute_host 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions use_slave=use_slave) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 500, in service_get_by_compute_host 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions raise exception.ComputeHostNotFound(host=host) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions ComputeHostNotFound: Compute host compute could not be found. 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions 2016-03-05 00:16:02.076 2798 INFO nova.api.openstack.wsgi [req-7ddb9e1f-b74a-4df0-ade6-2b364a66ac36 c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'nova.exception.ComputeHostNotFound'> 2016-03-05 00:16:02.077 2798 INFO nova.osapi_compute.wsgi.server [req-7ddb9e1f-b74a-4df0-ade6-2b364a66ac36 c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] 127.0.0.1 "GET /v2/cfd6638eca634eb68060e6090ea105b1/os-hypervisors/detail HTTP/1.1" status: 500 len: 439 time: 0.0535100 2016-03-05 00:16:02.097 2798 INFO nova.osapi_compute.wsgi.server [req-4f4be3c4-09b5-4636-b8d6-8ebe83952662 c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] 127.0.0.1 "GET /v2/cfd6638eca634eb68060e6090ea105b1/os-services?binary=nova-compute HTTP/1.1" status: 200 len: 397 time: 0.0162630 2016-03-05 00:16:02.143 2800 INFO nova.osapi_compute.wsgi.server [req-2995483d-b38c-4d46-9e1f-ef6c04942fad c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] 127.0.0.1 "GET /v2/cfd6638eca634eb68060e6090ea105b1/os-hypervisors/statistics HTTP/1.1" status: 200 len: 453 time: 0.0414250 2016-03-05 00:16:02.274 2800 INFO nova.osapi_compute.wsgi.server [req-3a24b024-6f6b-4f78-a43c-4f3c4dcdf567 c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] 127.0.0.1 "GET /v2/cfd6638eca634eb68060e6090ea105b1/extensions HTTP/1.1" status: 200 len: 21880 time: 0.0308590 ** Affects: nova Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1557482 Title: nova hypervisor-list will generate exception Status in OpenStack Compute (nova): New Bug description: Version: Liberty. OS: controller & compute node are ubuntu 14.04 server, follow the doc to install. After installed Using "nova host-list" will get the result correctly +------------------+-------------+----------+ | host_name | service | zone | +------------------+-------------+----------+ | controller | cert | internal | | controller | scheduler | internal | | controller | consoleauth | internal | | controller | conductor | internal | | compute-node-164 | compute | nova | +------------------+-------------+----------+ but if use "nova hypervisor-list" ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'nova.exception.ComputeHostNotFound'> (HTTP 500) (Request-ID: req-0649f773-8b50-4b84-a670-d8c290f77439) From the dashboard, in the System -> hypervisor panel, I can not find the hypervisor. when navigate to this page, an error will display get not the hypervisor informatin. The compute node is displayed on "Compute Host" tab, not not in the Hypervisor tab. version_instgalled: ii nova-api 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - API frontend ii nova-cert 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - certificate management ii nova-common 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - common files ii nova-conductor 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - conductor service ii nova-consoleauth 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - Console Authenticator ii nova-novncproxy 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - NoVNC proxy ii nova-scheduler 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute - virtual machine scheduler ii python-nova 2:12.0.1-0ubuntu1~cloud0 all OpenStack Compute Python libraries ii python-novaclient 2:2.30.1-1~cloud0 all client library for OpenStack Compute API nova-api.log below --------------------cut here ---------------------- 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions [req-7ddb9e1f-b74a-4df0-ade6-2b364a66ac36 c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] Unexpected exception in API method 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions Traceback (most recent call last): 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions return f(*args, **kwargs) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/hypervisors.py", line 101, in detail 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions for hyp in compute_nodes]) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 3504, in service_get_by_compute_host 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions return objects.Service.get_by_compute_host(context, host_name) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 171, in wrapper 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions result = fn(cls, context, *args, **kwargs) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/objects/service.py", line 222, in get_by_compute_host 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions db_service = db.service_get_by_compute_host(context, host) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 139, in service_get_by_compute_host 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions use_slave=use_slave) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 500, in service_get_by_compute_host 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions raise exception.ComputeHostNotFound(host=host) 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions ComputeHostNotFound: Compute host compute could not be found. 2016-03-05 00:16:02.073 2798 ERROR nova.api.openstack.extensions 2016-03-05 00:16:02.076 2798 INFO nova.api.openstack.wsgi [req-7ddb9e1f-b74a-4df0-ade6-2b364a66ac36 c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'nova.exception.ComputeHostNotFound'> 2016-03-05 00:16:02.077 2798 INFO nova.osapi_compute.wsgi.server [req-7ddb9e1f-b74a-4df0-ade6-2b364a66ac36 c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] 127.0.0.1 "GET /v2/cfd6638eca634eb68060e6090ea105b1/os-hypervisors/detail HTTP/1.1" status: 500 len: 439 time: 0.0535100 2016-03-05 00:16:02.097 2798 INFO nova.osapi_compute.wsgi.server [req-4f4be3c4-09b5-4636-b8d6-8ebe83952662 c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] 127.0.0.1 "GET /v2/cfd6638eca634eb68060e6090ea105b1/os-services?binary=nova-compute HTTP/1.1" status: 200 len: 397 time: 0.0162630 2016-03-05 00:16:02.143 2800 INFO nova.osapi_compute.wsgi.server [req-2995483d-b38c-4d46-9e1f-ef6c04942fad c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] 127.0.0.1 "GET /v2/cfd6638eca634eb68060e6090ea105b1/os-hypervisors/statistics HTTP/1.1" status: 200 len: 453 time: 0.0414250 2016-03-05 00:16:02.274 2800 INFO nova.osapi_compute.wsgi.server [req-3a24b024-6f6b-4f78-a43c-4f3c4dcdf567 c7922dbbc15b4e5e9ba93acba512e746 cfd6638eca634eb68060e6090ea105b1 - - -] 127.0.0.1 "GET /v2/cfd6638eca634eb68060e6090ea105b1/extensions HTTP/1.1" status: 200 len: 21880 time: 0.0308590 To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1557482/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp