Guest remain in origin host after evacuate and unset force-down nova-compute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Description
===========
If evacuate an instance from a nova-compute forced down host, after unset force-down the instance's guest will remain in origin host.
That's because while unset force-down nova-compute service, nova-compute will not destroy evacuated instances.
And it will do destroy while restart nova-compute service.
Steps to reproduce
==================
1) Boot an instance on node-1.
2) Force down the nova-compute service on node-1.
nova service-force-down node-1 nova-compute
3) Evacuate the instance to other host.
4) Unset force-down for node-1 nova-compute.
nova service-force-down --unset node-1 nova-compute
5) Check the guest on node-1.
virsh list
Expected result
===============
The guest should be deleted on node-1.
Actual result
=============
The guest still remain on node-1.
Environment
===========
This bug was found in Newton. I think it also exist in master as the code of unset force-down service is the same as Newton.
Changed in nova: | |
assignee: | huanhongda (hongda) → Xiaopengli (xiaopengleee) |
assignee: | Xiaopengli (xiaopengleee) → nobody |
I think nova-compute should destroy evacuated instances in unset force-down nova-compute process, like restarting nova-compute service.