Fix test_numa_topology tests

Wait for status=ACTIVE before associating floating_IP.

Change-Id: I9372501779ca25f1a0e22191a6ea26bcfbf33a69
This commit is contained in:
Jakub Jasek 2016-02-01 10:15:19 +00:00
parent 0a8d11b07d
commit 80e608d5b6
1 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@ class TestServerNumaBase(manager.NetworkScenarioTest):
self.instance = self.create_server(
image_id=self.image_ref,
flavor=flavor,
wait_until='ACTIVE',
**create_kwargs)
def verify_ssh(self):
@ -118,7 +119,7 @@ class TestServerNumaBase(manager.NetworkScenarioTest):
floating_ip['ip'], self.instance['id'])
# Check ssh
return self.get_remote_client(
server_or_ip=floating_ip['ip'],
ip_address=floating_ip['ip'],
username='cirros',
private_key=self.keypair['private_key'])