Wait for floating IP assocation in test_minimum_basic test

In bug 1923194 Tempest wasn't giving Nova a change to update its
network info cache after attaching a floating IP, leading to failures
when the floating IP association was asserted via the Nova API. The
fix was to add a waiter before doing the assertion. We were not using
that waiter in the scenario floating IP association code, leading to
bug 1980255. This patch starts doing that.

Related-bug: 1980255
Change-Id: I05e079237aec332925a88476e45071b34dc722c6
This commit is contained in:
Artom Lifshitz 2022-07-12 12:03:15 -04:00 committed by Arx Cruz
parent 7efe29cf10
commit 3f7c50cc3e
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,8 @@ class TestMinimumBasicScenario(manager.ScenarioTest):
fip, server)
# fetch the server again to make sure the addresses were refreshed
# after associating the floating IP
waiters.wait_for_server_floating_ip(self.servers_client, server,
floating_ip)
server = self.servers_client.show_server(server['id'])['server']
address = self._get_floating_ip_in_server_addresses(
floating_ip, server)