diff options
author | spisarski <s.pisarski@cablelabs.com> | 2017-11-07 15:23:15 -0700 |
---|---|---|
committer | spisarski <s.pisarski@cablelabs.com> | 2017-11-08 10:03:44 -0700 |
commit | c0f1fc7d39c550f6825b4e323358d44e876c1fa5 (patch) | |
tree | 00e4a83a9454818535e67bb0bd77fbb25a6d904d /snaps/openstack/create_instance.py | |
parent | 28b07953e9821c32ae86aa3a19ebeb835471149f (diff) |
Adding tests for IPv6.
Included in patch:
1. Refactor Network domain object to include Subnet objects
2. Removed subnet members from OpenStackNetwork
3. Added exhausive IPv6 tests to neutron_utils_tests.py
4. Added two IPv6 integration tests to create_network_tests.py
5. Added two tests where VM instances have ports with IPv6 addresses
6. Updated docs
JIRA: SNAPS-178
Change-Id: Id3e5448cb431d2acf47029244fe6773f3f29d368
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/create_instance.py')
-rw-r--r-- | snaps/openstack/create_instance.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/snaps/openstack/create_instance.py b/snaps/openstack/create_instance.py index 60ebf39..706e6a6 100644 --- a/snaps/openstack/create_instance.py +++ b/snaps/openstack/create_instance.py @@ -16,7 +16,7 @@ import logging import time from neutronclient.common.exceptions import PortNotFoundClient -from novaclient.exceptions import NotFound +from novaclient.exceptions import NotFound, BadRequest from snaps.openstack.create_network import PortSettings from snaps.openstack.openstack_creator import OpenStackComputeObject @@ -373,6 +373,9 @@ class OpenStackVmInstance(OpenStackComputeObject): 'Added floating IP %s to port IP %s on instance %s', floating_ip.ip, ip, self.instance_settings.name) return + except BadRequest as bre: + logger.error('Cannot add floating IP [%s]', bre) + raise except Exception as e: logger.debug( 'Retry adding floating IP to instance. Last attempt ' |