Unexpected API Error and Host Aggregates screen does not show up after removing a Compute Node
Issue
After removing a Compute Node, Horizon
"Host Aggregates" screen does not show up.
Running nova hypervisor-list
also throws a error:
[root@server01 neutron(keystone_admin)]# 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-b576645c-7b5b-471d-9128-33bc35263782)
- /var/log/nova/nova-api.log
2017-06-19 13:54:36.864 10929 DEBUG nova.api.openstack.wsgi [req-f19e33d7-f15e-47e6-84f6-b13c9dab68bd 673a34d3701e4550aa68e0c7dcbe821f 382a7787b1354a7cbdce4f389a81b923 - - -] Calling method '<bound method HypervisorsController.index of <nova.api.openstack.compute.hypervisors.HypervisorsController object at 0x6bb8050>>' _process_stack /usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py:792
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions [req-f19e33d7-f15e-47e6-84f6-b13c9dab68bd 673a34d3701e4550aa68e0c7dcbe821f 382a7787b1354a7cbdce4f389a81b923 - - -] Unexpected exception in API method
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/hypervisors.py", line 88, in index
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions for hyp in compute_nodes])
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 3510, in service_get_by_compute_host
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions return objects.Service.get_by_compute_host(context, host_name)
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 171, in wrapper
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions result = fn(cls, context, *args, **kwargs)
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/objects/service.py", line 222, in get_by_compute_host
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions db_service = db.service_get_by_compute_host(context, host)
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/db/api.py", line 139, in service_get_by_compute_host
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions use_slave=use_slave)
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 500, in service_get_by_compute_host
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions raise exception.ComputeHostNotFound(host=host)
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions ComputeHostNotFound: Compute host compute04-..prod.cloud could not be found.
2017-06-19 13:54:36.938 10929 ERROR nova.api.openstack.extensions
2017-06-19 13:54:36.948 10929 INFO nova.api.openstack.wsgi [req-f19e33d7-f15e-47e6-84f6-b13c9dab68bd 673a34d3701e4550aa68e0c7dcbe821f 382a7787b1354a7cbdce4f389a81b923 - - -] 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'>
Environment
Red Hat OpenStack Platform 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.