summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authordanwent@gmail.com <>2011-08-28 20:06:55 -0700
committerdanwent@gmail.com <>2011-08-28 20:06:55 -0700
commita4bd14f86f31ea82daad8e194b26e86e6dd37398 (patch)
tree3807a1131dc6a7ba7119782f356eb365f28d8b6c /nova/exception.py
parent605fe4f19af3af830a2a8c82809e9ce5909c602d (diff)
parent0ef2581749f39fa4fd41c2376186418e730f0afb (diff)
downloadnova-a4bd14f86f31ea82daad8e194b26e86e6dd37398.tar.gz
nova-a4bd14f86f31ea82daad8e194b26e86e6dd37398.tar.xz
nova-a4bd14f86f31ea82daad8e194b26e86e6dd37398.zip
merge trunk
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 8d6e84d74..5a365897d 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -197,6 +197,10 @@ class InvalidInstanceType(Invalid):
message = _("Invalid instance type %(instance_type)s.")
+class InvalidVolumeType(Invalid):
+ message = _("Invalid volume type %(volume_type)s.")
+
+
class InvalidPortRange(Invalid):
message = _("Invalid port range %(from_port)s:%(to_port)s.")
@@ -338,6 +342,29 @@ class VolumeNotFoundForInstance(VolumeNotFound):
message = _("Volume not found for instance %(instance_id)s.")
+class VolumeMetadataNotFound(NotFound):
+ message = _("Volume %(volume_id)s has no metadata with "
+ "key %(metadata_key)s.")
+
+
+class NoVolumeTypesFound(NotFound):
+ message = _("Zero volume types found.")
+
+
+class VolumeTypeNotFound(NotFound):
+ message = _("Volume type %(volume_type_id)s could not be found.")
+
+
+class VolumeTypeNotFoundByName(VolumeTypeNotFound):
+ message = _("Volume type with name %(volume_type_name)s "
+ "could not be found.")
+
+
+class VolumeTypeExtraSpecsNotFound(NotFound):
+ message = _("Volume Type %(volume_type_id)s has no extra specs with "
+ "key %(extra_specs_key)s.")
+
+
class SnapshotNotFound(NotFound):
message = _("Snapshot %(snapshot_id)s could not be found.")
@@ -760,6 +787,18 @@ class PasteAppNotFound(NotFound):
message = _("Could not load paste app '%(name)s' from %(path)s")
+class VSANovaAccessParamNotFound(Invalid):
+ message = _("Nova access parameters were not specified.")
+
+
+class VirtualStorageArrayNotFound(NotFound):
+ message = _("Virtual Storage Array %(id)d could not be found.")
+
+
+class VirtualStorageArrayNotFoundByName(NotFound):
+ message = _("Virtual Storage Array %(name)s could not be found.")
+
+
class CannotResizeToSameSize(NovaException):
message = _("When resizing, instances must change size!")