rbd driver should check for watchers before delete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Edward Hope-Morley | ||
Havana |
Fix Released
|
Medium
|
Mike Perez |
Bug Description
When deleting an rbd image/volume, if the image still has so-called 'watchers' on it i.e. client connection e.g. kvm, the delete operation will fail with a message similar to:
error: image still has watchers. This means the image is still open or the client using it crashed. Try again after closing/unmapping it or waiting 30s for the crashed client to timeout.
Currently if this occurs, the cinder volume is left stuck in the 'error_deleting' state. This has now been observed by a number of people e.g. http://
One way to remedy this could be to check for watchers prior to delete and if any exist, either retry after a fixed period (30s?) or simply raise ImageBusy exception so that the user retries at a later time.
tags: | added: ceph rbd |
Changed in cinder: | |
importance: | Undecided → Medium |
milestone: | none → icehouse-2 |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | icehouse-2 → 2014.1 |
I'd prefer raise Busy exception. Nice job!