instance on source host can not be cleaned after evacuating
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
1. Version
nova: 2014.1
hypervisor: rhel7 + libvirt + kvm
2. Description
After one instance was evacuated from hostA to hostB, then delete this instance.
Then started 'nova-compute' service of hostA, and found in nova-compute.log:
2015-04-09 10:39:52.201 1977 WARNING nova.compute.
3. Reproduce steps:
* Launch one instance INST on hostA
* Stop 'nova-compute' service on hostA, and wait for down(use 'nova service-list')
* Evacuate INST to hostB
* After evacuated successfully, delete INST
* Start 'nova-compute' service on hostA
Expected results:
* INST on hostA's hypervisor should be destroyed
Actual result:
* INST was alive on hostA's hypervisor.
4. Tips
I checked the source, and found:
nova.compute.
def _destroy_
....
filters = {'deleted': False} # Here filtered the deleted instance. Is it more proper that checked the deleted instances?
Changed in nova: | |
assignee: | nobody → Zhenyu Zheng (zhengzhenyu) |
Changed in nova: | |
assignee: | Zhenyu Zheng (zhengzhenyu) → nobody |
Bug reproduced exactly as mentioned above, with:
Verstion: Nova 2014.2.2
Hypervisor: Ubuntu 14.04 + libvirt + kvm