Can't delete instance stuck in deleting task
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Description of problem: On a Juno HA deployment, nova over shared nfs storage, when I deleted an instance it was "deleted":
2015-06-02 11:57:36.273 3505 INFO nova.virt.
Also instance wasn't found with virsh list all.
Yet nova list and Horizon both still show this instance as stuck in task deleting, two hours+ pasted since I deleted it.
Version-Release number of selected component (if applicable):
rhel 7.1
python-
openstack-
python-
openstack-
How reproducible:
Unsure, it doesn't happen with every instance deletion, but happened more than this one time.
Steps to Reproduce:
1. Boot an instance
2. Delete instance
3. Instance is stuck in deleting task on nova/Horozon.
Actual results:
Stuck with a phantom "deleting" instance, which is basically already dead from Virsh's point of view.
Expected results:
Instance should get deleted including from nova list/Horizon.
Additional info:
Workaround doing openstack-service restart for nova on compute node fixed my problem. Instance is totally gone from Nova/Horizon.
instance virsh id instance-
instanceID 7b6c8ad5-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | deleted |
| OS-SRV-
| OS-SRV-
...... |
| status | DELETED
Attached nova log from compute and controller.
Changed in nova: | |
status: | Confirmed → Fix Released |
status: | Fix Released → Confirmed |
@Tzach Shefi:
I observed this too, but was never able to create steps for a reproduction.
Another workaround would be to delete the db entries manually [1].
[1] http:// stackoverflow. com/questions/ 22194965/ openstack- can-not- delete- instance- from-dashboard