Call detach_volume when attach fails
* Fixes bug 914974 * Raise exception.DeviceBusy when volume cannot attach Change-Id: Ie18377ba6acd6226612c70fa209185cc579c2d85
This commit is contained in:
@@ -362,6 +362,10 @@ class InvalidDevicePath(Invalid):
|
||||
message = _("The supplied device path (%(path)s) is invalid.")
|
||||
|
||||
|
||||
class DeviceIsBusy(Invalid):
|
||||
message = _("The supplied device (%(device)s) is busy.")
|
||||
|
||||
|
||||
class InvalidCPUInfo(Invalid):
|
||||
message = _("Unacceptable CPU info") + ": %(reason)s"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user