summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJason Koelker <jason@koelker.net>2011-08-15 15:33:37 -0500
committerJason Koelker <jason@koelker.net>2011-08-15 15:33:37 -0500
commit93d26d3fe4030372fe111baebf700162c2d95c72 (patch)
tree70542af1dc79a3d4b7f1ea422ebfa0fa561016d2 /nova/exception.py
parentd3e2be67d116dcdbe0484a10708ae00d040d2d9f (diff)
parentea53d0f37a4f478ffbe18516f99ca26192117e80 (diff)
merge trunk
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index a5a25086e..3e2218863 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -273,6 +273,11 @@ class DestinationHypervisorTooOld(Invalid):
"has been provided.")
+class DestinationDiskExists(Invalid):
+ message = _("The supplied disk path (%(path)s) already exists, "
+ "it is expected not to exist.")
+
+
class InvalidDevicePath(Invalid):
message = _("The supplied device path (%(path)s) is invalid.")
@@ -699,6 +704,10 @@ class InstanceExists(Duplicate):
message = _("Instance %(name)s already exists.")
+class InvalidSharedStorage(NovaException):
+ message = _("%(path)s is on shared storage: %(reason)s")
+
+
class MigrationError(NovaException):
message = _("Migration error") + ": %(reason)s"