summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-06-10 19:49:11 +0000
committerGerrit Code Review <review@openstack.org>2013-06-10 19:49:11 +0000
commit71364c57f4a7d0283efebbd20565bcefbf23b0a7 (patch)
tree47b2719fb53fa14a82b8dbd92da9109caa14b20a /nova/exception.py
parent08cfd77a3658380df71f6eabbfa765b5ffcae053 (diff)
parentd581ed04a584fdd83df78e43366a3617b154a626 (diff)
downloadnova-71364c57f4a7d0283efebbd20565bcefbf23b0a7.tar.gz
nova-71364c57f4a7d0283efebbd20565bcefbf23b0a7.tar.xz
nova-71364c57f4a7d0283efebbd20565bcefbf23b0a7.zip
Merge "BDM class and transformation functions"
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 88c038201..36a18b1b9 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -221,6 +221,17 @@ class InvalidBDMVolume(InvalidBDM):
"failed to get volume %(id)s.")
+class InvalidBDMFormat(InvalidBDM):
+ message = _("Block Device Mapping is Invalid: "
+ "some fields are not recognized, "
+ "or have invalid values.")
+
+
+class InvalidBDMForLegacy(InvalidBDM):
+ message = _("Block Device Mapping cannot "
+ "be converted to legacy format. ")
+
+
class VolumeUnattached(Invalid):
message = _("Volume %(volume_id)s is not attached to anything")