Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch ImageBusy exception when deleting rbd volume
If we try to delete an rbd volume that has 'watchers' on it i.e. client connections that have not yet been closed possibly because a client crashed, the remove() will throw an ImageBusy exception. We now catch this exception and raise VolumeIsBusy with a useful message. If the volume delete fails in this way it will now stay as 'available' instead of going to 'error_deleting' so that the delete can be retried (since it is expected to work on a retry after waiting for the connection to timeout). Change-Id: I5bc9a5f71bdb0f9c5d12b5577e68377e66561f5b Closes-bug: 1256259
- Loading branch information
Showing
2 changed files
with
81 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters