From 1e49eab25080ff82002604a8f38eafbfa9a4f9b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awek=20Kap=C5=82o=C5=84ski?= Date: Sun, 25 Mar 2018 10:42:45 +0200 Subject: [PATCH] [Fullstack] Add block test until IPs will be really configured In securitygroups fullstack test dhcp agent is used to configure IP addresses inside FakeMachines. During preparation to test, when such fake vms are created, they are only blocked until boot - so until port becomes ACTIVE in Neutron's database. This patch adds also blocking vms until IP address is really configured on each of such VMs. If IP address will be not configured then we should at least have better error message then error that nc process cannot be started. Change-Id: I709b1489132edba932a4c73bea60f810c26011fa Related-Bug: #1744402 --- neutron/tests/fullstack/test_securitygroup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron/tests/fullstack/test_securitygroup.py b/neutron/tests/fullstack/test_securitygroup.py index ffc0b86914a..e363d68d15e 100644 --- a/neutron/tests/fullstack/test_securitygroup.py +++ b/neutron/tests/fullstack/test_securitygroup.py @@ -159,6 +159,7 @@ class TestSecurityGroupsSameNetwork(BaseSecurityGroupsSameNetworkTest): for vm in vms: vm.block_until_boot() + vm.block_until_dhcp_config_done() # 0. check that traffic is allowed when port security is disabled self.assert_connection(