removing compute node causes ComputeHostNotFound in nova-api
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Matt Riedemann | ||
Newton |
Fix Committed
|
Medium
|
Lee Yarwood |
Bug Description
trying to remove compute node properly
Steps to reproduce
==================
1) remove all instances from the hypervisor:
(env) vance@zs95k5:~$ nova hypervisor-servers zs93k23
+----+-
| ID | Name | Hypervisor ID | Hypervisor Hostname |
+----+-
+----+-
2) disable the hypervisor:
(env) vance@zs95k5:~$ nova service-list
+----+-
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+-
| 3 | nova-cert | juju-605709-2-lxd-3 | internal | enabled | up | 2016-11-
| 4 | nova-scheduler | juju-605709-2-lxd-3 | internal | enabled | up | 2016-11-
| 5 | nova-conductor | juju-605709-2-lxd-3 | internal | enabled | up | 2016-11-
| 14 | nova-compute | u27-maas-machine-1 | nova | disabled | up | 2016-11-
| 16 | nova-compute | zs95k181 | nova | enabled | up | 2016-11-
| 17 | nova-compute | zs93k23 | nova | enabled | up | 2016-11-
+----+-
(env) vance@zs95k5:~$ nova service-disable zs93k23 nova-compute
+------
| Host | Binary | Status |
+------
| zs93k23 | nova-compute | disabled |
+------
3) delete the compute service
(env) vance@zs95k5:~$ nova service-delete 17
(env) vance@zs95k5:~$ nova service-list
+----+-
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+-
| 3 | nova-cert | juju-605709-2-lxd-3 | internal | enabled | up | 2016-11-
| 4 | nova-scheduler | juju-605709-2-lxd-3 | internal | enabled | up | 2016-11-
| 5 | nova-conductor | juju-605709-2-lxd-3 | internal | enabled | up | 2016-11-
| 14 | nova-compute | u27-maas-machine-1 | nova | disabled | up | 2016-11-
| 16 | nova-compute | zs95k181 | nova | enabled | up | 2016-11-
+----+-
4) delete the neutron agent
(env) vance@zs95k5:~$ openstack network agent list
+------
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+------
| 039e4b7a-
| 2aa13570-
| 2ab2320a-
| 48d6d83b-
| a36eecd5-
| aaee3bf0-
| c6039c81-
| cfecc66c-
| f60cbf28-
+------
(env) vance@zs95k5:~$ openstack network agent delete aaee3bf0-
(env) vance@zs95k5:~$ openstack network agent list
+------
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+------
| 039e4b7a-
| 2aa13570-
| 2ab2320a-
| 48d6d83b-
| a36eecd5-
| c6039c81-
| cfecc66c-
| f60cbf28-
+------
5) check hypervisor list
(env) vance@zs95k5:~$ nova hypervisor-list
ERROR (ClientException): Unexpected API Error. Please report this at http://
<class 'nova.exception
Okay, here is the error from the log:
http://
Expected result
===============
Nova compute node is properly removed from the OS database.
Environment
===========
1. OpenStack nova version 2:13.1.2-0ubuntu2
2. Hypervisor:
Libvirt+KVM (KVM for IBM z Systems)
3. Networking type: OVS+GRE
tags: | added: api |
tags: | added: db |
description: | updated |
tags: | added: openstack-ibm |
Can you dump the services and compute_nodes tables from the database, does zs93k23 still show up? It might, but the deleted column should be a non-0 value.