Fix test_rebuild_server test by waiting for floating ip
The test could fail on an adresses mismatch when the test server
didn't have floating ip assigned yet at the beginning of the test.
Closes-Bug: #1945495
Change-Id: Ic99ba61d87dfc24a684263d41e0caa4f54d1d263
diff --git a/tempest/common/compute.py b/tempest/common/compute.py
index 2443a67..16322df 100644
--- a/tempest/common/compute.py
+++ b/tempest/common/compute.py
@@ -230,6 +230,9 @@
fip_client.associate_floating_ip_to_server(
floating_ip=validation_resources['floating_ip']['ip'],
server_id=servers[0]['id'])
+ waiters.wait_for_server_floating_ip(
+ clients.servers_client,
+ servers[0], validation_resources['floating_ip'])
if wait_until:
for server in servers: