Call detach_volume when attach fails

* Fixes bug 914974
* Raise exception.DeviceBusy when volume cannot attach

Change-Id: Ie18377ba6acd6226612c70fa209185cc579c2d85
This commit is contained in:
Brian Waldon
2012-02-27 17:37:57 -08:00
parent 1a70cd7877
commit 845c93612b

View File

@@ -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"