From ef222bfe6f50d5203f83fa9d2e9071969f814c29 Mon Sep 17 00:00:00 2001 From: Maru Newby Date: Tue, 18 Sep 2012 18:27:26 +0000 Subject: Add lookup by ip via Quantum for metadata service. * The Nova network API's get_fixed_ip_by_address() is used by the metadata service in determining which instance to return metadata for. * This change implements support for the function in the Quantum v2 implementation of the network API to ensure that the metadata service can return results when Nova is configured to use Quantum. * Overlapping network spaces are not supported at this time. * Addresses bug 1052196 Change-Id: Iaa5d78c4de92313e93ee9008a2c26052a4f60602 --- nova/exception.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index c9f339e6c..4dfff73bd 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -605,6 +605,11 @@ class FixedIpAlreadyInUse(NovaException): "%(instance_uuid)s.") +class FixedIpAssociatedWithMultipleInstances(NovaException): + message = _("More than one instance is associated with fixed ip address " + "'%(address)s'.") + + class FixedIpInvalid(Invalid): message = _("Fixed IP address %(address)s is invalid.") -- cgit