cinder force-delete of an attached volume fails and puts system into a inconsistent state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Mike Perez |
Bug Description
If you run "cinder force-delete" on a a volume that is attached it will run saying nothing, thinking it ran successfully.
In the background the cinder-api accepted the request to force delete the volume and passes this request it on to the cinder-volume service which does not accept deleting volumes in this state. Thus the volume will not be deleted, but the volume has been put in the deleting state.
The volume is now in the deleting state and cinder-volume will refuse to delete it.
This is counter to what cinderclient force-delete command says it does, delete volumes, regardless of it's state.
If the cinder-volume service is restarted it will see the volume in the deleting state and try to delete it. This will fail as the volume is still attached and the cinder-volume will go into an infinite loop trying to delete a volume it can't
Changed in cinder: | |
assignee: | nobody → Mike Perez (thingee) |
information type: | Public → Public Security |
information type: | Public Security → Private Security |
information type: | Private Security → Public |
Changed in cinder: | |
milestone: | havana-1 → havana-2 |
milestone: | havana-2 → havana-1 |
status: | Triaged → In Progress |
Changed in cinder: | |
milestone: | havana-1 → havana-2 |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-2 → 2013.2 |
The cinder force-delete help states it will "Attempt forced removal of a volume, regardless of it's state." Key here being the word "Attempt".
Maybe this isn't overly clear and could be improved. Bailing out on the delete if it's attached is not such a bad thing, but we should consider responding sooner in the stack with a helpful message and NOT locking you out with the "deleting" state.