Sometimes a volume detach will not complete and volume will be undeletable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Sometimes a volume detach will not complete and volume will be undeletable . The state is "in-use" but it's no longer attached to the VM and the VM no longer exists.
We're using Icehouse 2014.1.2
[root@
+--
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--
| 64890ec4-
+--
# cinder delete 64890ec4-
Delete for volume 64890ec4-
but current status is: in-use (HTTP 400) (Request-ID: req-8fdc62a9-
ERROR: Unable to delete any of the specified volumes.
Some workaround
1) cinder reset-state
2) cinder delete
The problem is that with heat, when this happens, the stack will fail to delete. In order to solve this issue, the following workaround will do:
1) cinder reset-state
2) cinder delete
3) nova delete
4) heat stack-delete
But in a production environment, when reset-state can only be done by an admin, it could be a show stopper.
Dve