Skip to content

Commit 07a4363

Browse files
author
Dean Troyer
committed
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
1 parent 941e189 commit 07a4363

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

openstackclient/tests/functional/compute/v2/test_server.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,19 +203,19 @@ def test_server_actions(self):
203203

204204
def test_server_attach_detach_floating_ip(self):
205205
"""Test floating ip create/delete; server add/remove floating ip"""
206+
if not self.haz_network:
207+
# NOTE(dtroyer): As of Ocata release Nova forces nova-network to
208+
# run in a cells v1 configuration. Floating IP
209+
# and network functions currently do not work in
210+
# the gate jobs so we have to skip this. It is
211+
# known to work tested against a Mitaka nova-net
212+
# DevStack without cells.
213+
self.skipTest("No Network service present")
214+
206215
cmd_output = self.server_create()
207216
name = cmd_output['name']
208217
self.wait_for_status(name, "ACTIVE")
209218

210-
if not self.haz_network:
211-
# nova-net needs a public subnet
212-
cmd_output = json.loads(self.openstack(
213-
'network create -f json ' +
214-
'--subnet 8.6.7.5/28 ' +
215-
'public'
216-
))
217-
self.addCleanup(self.openstack, 'network delete public')
218-
219219
# attach ip
220220
cmd_output = json.loads(self.openstack(
221221
'floating ip create -f json ' +

0 commit comments

Comments
 (0)