diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-01-29 16:22:55 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-01-29 16:22:55 +0000 |
commit | 9677ee05a28be51202d293a9081b6e085d348f7d (patch) | |
tree | df340a6c0b1e38bec670f2daa0b3035afb7c16b4 /nova/exception.py | |
parent | 608cf6b5182f08ccd2af02d454dcbb8b6d98f862 (diff) | |
parent | 24fffd9d8b77e9b71e8013fc22c172f76bb4e84c (diff) | |
download | nova-9677ee05a28be51202d293a9081b6e085d348f7d.tar.gz nova-9677ee05a28be51202d293a9081b6e085d348f7d.tar.xz nova-9677ee05a28be51202d293a9081b6e085d348f7d.zip |
Merge "validate specified volumes to boot from at the API layer"
Diffstat (limited to 'nova/exception.py')
-rw-r--r-- | nova/exception.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index bb7749dd7..6915c14bb 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -226,6 +226,20 @@ class Invalid(NovaException): code = 400 +class InvalidBDM(Invalid): + message = _("Block Device Mapping is Invalid.") + + +class InvalidBDMSnapshot(InvalidBDM): + message = _("Block Device Mapping is Invalid: " + "failed to get snapshot %(id)s.") + + +class InvalidBDMVolume(InvalidBDM): + message = _("Block Device Mapping is Invalid: " + "failed to get volume %(id)s.") + + class VolumeUnattached(Invalid): message = _("Volume %(volume_id)s is not attached to anything") |