Nova tries to connect to deleted VM causing API error and Horizon error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
This is a problem I'm seeing in a 3 node DevStack system, stacked today (14th October 2015). I click on Hypervisors in the System section of the Horizon UI, to see hypervisor information. Horizon shows an error box "Unable to retrieve hypervisor information".
/var/log/
2015-10-14 11:04:00.379206 REQ: curl -g -i 'http://
2015-10-14 11:04:00.420325 RESP: [500] {'content-length': '208', 'x-compute-
2015-10-14 11:04:00.420358 RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://
2015-10-14 11:04:00.420365
2015-10-14 11:04:00.420842 Recoverable error: Unexpected API Error. Please report this at http://
Otherwise the cluster appears to be working; for example I've successfully launched 10 cirros instances, across the 3 available compute nodes.
ubuntu@
commit 1d97b0e7308975c
Merge: 7200b6a 11e20dd
Author: Jenkins <email address hidden>
Date: Wed Oct 14 08:50:59 2015 +0000
Merge "Ignore errorcode=4 when executing `cryptsetup remove` command"
The n-api.log includes several instances of this:
2015-10-14 12:45:41.416 DEBUG nova.api. openstack. wsgi [req-722ba30b- 5b9d-4f57- 95dd-c6173f8d42 7c admin admin] Calling method '<bound method HypervisorsCont roller. detail of <nova.api. openstack. compute. hypervisors. HypervisorsCont roller object at 0x7fd447b7eed0>>' _process_stack /opt/stack/ nova/nova/ api/openstack/ wsgi.py: 792 openstack. extensions [req-722ba30b- 5b9d-4f57- 95dd-c6173f8d42 7c admin admin] Unexpected exception in API method openstack. extensions Traceback (most recent call last): openstack. extensions File "/opt/stack/ nova/nova/ api/openstack/ extensions. py", line 478, in wrapped openstack. extensions return f(*args, **kwargs) openstack. extensions File "/opt/stack/ nova/nova/ api/openstack/ compute/ hypervisors. py", line 101, in detail openstack. extensions for hyp in compute_nodes]) openstack. extensions File "/opt/stack/ nova/nova/ compute/ api.py" , line 3478, in service_ get_by_ compute_ host openstack. extensions return objects. Service. get_by_ compute_ host(context, host_name) openstack. extensions File "/usr/local/ lib/python2. 7/dist- packages/ oslo_versionedo bjects/ base.py" , line 171, in wrapper openstack. extensions result = fn(cls, context, *args, **kwargs) openstack. extensions File "/opt/stack/ nova/nova/ objects/ service. py", line 223, in get_by_compute_host openstack. extensions db_service = db.service_ get_by_ compute_ host(context, host) openstack. extensions File "/opt/stack/ nova/nova/ db/api. py", line 145, in service_ get_by_ compute_ host openstack. extensions use_slave= use_slave) openstack. extensions File "/opt/stack/ nova/nova/ db/sqlalchemy/ api.py" , line 512, in service_ get_by_ compute_ host openstack. extensions raise exception. ComputeHostNotF ound(host= host) openstack. extensions ComputeHostNotF ound: Compute host calico-vm23 could not be found. openstack. extensions openstack. wsgi [req-722ba30b- 5b9d-4f57- 95dd-c6173f8d42 7c admin admin] HTTP exception thrown: Unexpected API Error. Please report this at http:// bugs.launchpad. net/nova/ and attach the Nova API log if possible. .ComputeHostNot Found'> openstack. wsgi [req-722ba30b- 5b9d-4f57- 95dd-c6173f8d42 7c admin admin] Returning 500 to user: Unexpected API Error. Please report this at http:// bugs.launchpad. net/nova/ and attach the Nova API log if possible.
2015-10-14 12:45:41.432 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.432 8564 ERROR nova.api.
2015-10-14 12:45:41.488 INFO nova.api.
<class 'nova.exception
2015-10-14 12:45:41.488 DEBUG nova.api.
...