From b013d80ff7ffa75a823f246445a07cb6970d321e Mon Sep 17 00:00:00 2001 From: Chris Behrens Date: Fri, 31 May 2013 23:13:23 +0000 Subject: 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 --- nova/exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/exception.py') 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") -- cgit