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
This commit is contained in:
Martin Kopec 2021-10-15 00:01:36 +00:00
parent 86db21ea6a
commit d4c9cc89f1
1 changed files with 3 additions and 0 deletions

View File

@ -230,6 +230,9 @@ def create_test_server(clients, validatable=False, validation_resources=None,
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: