From 07a4363e995716f9b898623d9e43746fd36b5172 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 3 May 2017 14:39:35 -0500 Subject: [PATCH] Skip floating ip attach functional test on nova-net As of Ocata release Nova forces nova-network to run in a cells v1 configuration. Floating IP and network functions currently do not work in the gate jobs so we have to skip this. It is known to work tested against a Mitaka nova-net DevStack without cells. Change-Id: I74f67ac8eb12c7a649ddcbd7979cf745fb35cc0c --- .../tests/functional/compute/v2/test_server.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/openstackclient/tests/functional/compute/v2/test_server.py b/openstackclient/tests/functional/compute/v2/test_server.py index a86c0c679d..7d54b6a6a5 100644 --- a/openstackclient/tests/functional/compute/v2/test_server.py +++ b/openstackclient/tests/functional/compute/v2/test_server.py @@ -203,19 +203,19 @@ class ServerTests(common.ComputeTestCase): def test_server_attach_detach_floating_ip(self): """Test floating ip create/delete; server add/remove floating ip""" + if not self.haz_network: + # NOTE(dtroyer): As of Ocata release Nova forces nova-network to + # run in a cells v1 configuration. Floating IP + # and network functions currently do not work in + # the gate jobs so we have to skip this. It is + # known to work tested against a Mitaka nova-net + # DevStack without cells. + self.skipTest("No Network service present") + cmd_output = self.server_create() name = cmd_output['name'] self.wait_for_status(name, "ACTIVE") - if not self.haz_network: - # nova-net needs a public subnet - cmd_output = json.loads(self.openstack( - 'network create -f json ' + - '--subnet 8.6.7.5/28 ' + - 'public' - )) - self.addCleanup(self.openstack, 'network delete public') - # attach ip cmd_output = json.loads(self.openstack( 'floating ip create -f json ' +