summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorChris Behrens <cbehrens@codestud.com>2013-05-31 23:13:23 +0000
committerChris Behrens <cbehrens@codestud.com>2013-06-26 21:04:07 +0000
commitb013d80ff7ffa75a823f246445a07cb6970d321e (patch)
treed803c56441ede5284830404e77da35020c77240b /nova/exception.py
parentd62e708889498cd22e633d99c40655be82b97c9a (diff)
downloadnova-b013d80ff7ffa75a823f246445a07cb6970d321e.tar.gz
nova-b013d80ff7ffa75a823f246445a07cb6970d321e.tar.xz
nova-b013d80ff7ffa75a823f246445a07cb6970d321e.zip
Remove broken config_drive image_href support.
image_href support has not been working since at least shortly before Folsom release. This is a good indication that this functionality is not used. As far as I can tell, the docs also do not match what was supported. An image ID was required, but docs show examples with full hrefs. DocImpact http://docs.openstack.org/developer/nova/api_ext/ext_config_drive.html References to supporting image_hrefs should be removed. This patch also removes the hack that passed a config_drive_id via the Instance dictionary when config_drive_id is not a valid Column for Instance. Fixes bug 1186401 Change-Id: Iced7bc8e278cb9f208183f1dbb7a293675a47eae
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index e5924b831..4fdb727d6 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -1124,6 +1124,10 @@ class InstanceIsLocked(InstanceInvalidState):
message = _("Instance %(instance_uuid)s is locked")
+class ConfigDriveInvalidValue(Invalid):
+ message = _("Invalid value for Config Drive option: %(option)s")
+
+
class ConfigDriveMountFailed(NovaException):
message = _("Could not mount vfat config drive. %(operation)s failed. "
"Error: %(error)s")