[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
(cherry picked from commit 1e49eab250)
This commit is contained in:
Sławek Kapłoński 2018-03-25 10:42:45 +02:00 committed by Slawek Kaplonski
parent e3ff53e3fc
commit e8a9cc1ea9
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,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(