Deleting an instance doesn't check task_state properly

Bug #1233916 reported by Jordan Callicoat
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Undecided
Unassigned

Bug Description

Issuing a delete on an instance with any task_state other than None should either fail, or do cleanup as required. For example, when taking a snapshot of an instance, task_state goes to image_snapshot, but during the snapshot you can issue a delete on the instance, and task_state goes to deleting as the resources are removed. If you do it quickly, while the snapshot is running, it ends up deleting the backing disk before the snapshot is complete and the snapshot just hangs in SAVING status. I also saw state transition go image_snapshot -> image_pending_upload -> deleting and the snapshot hung in SAVING in that case as well.

Steps to reproduce:

1. Create instance
2. Create snapshot
3. Delete instance while snapshot is running
4. Hung snapshot

Revision history for this message
Hans Lindgren (hanlind) wrote :

This is same as bug 1143659

Changed in nova:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.