There can be a delay between the interface being created,
and an IP address getting assigned,
which previously caused a race condition where
the config could be rendered before the IP address was ready
resulting in the health manager bind_ip to be empty.
This ensures that the IP address will be ready before continuing,
which will ensure that the config rendering will not happen until ready,
and the configure-resources action will only return once it's all done.
Closes-Bug: #1961088
Change-Id: I2cae5f0e307c8cd14f1831f3416d890ad604b705
(cherry picked from commit d8d8963667cb620370e2c424dbe668460ab99ff1)
Reviewed: https:/ /review. opendev. org/c/openstack /charm- octavia/ +/897163 /opendev. org/openstack/ charm-octavia/ commit/ 8c44a45f6367932 421748b401df2a6 60ae1c5197
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.1
commit 8c44a45f6367932 421748b401df2a6 60ae1c5197
Author: Samuel Walladge <email address hidden>
Date: Wed Sep 21 14:36:17 2022 +0930
Wait for management interface IP to be assigned
There can be a delay between the interface being created,
and an IP address getting assigned,
which previously caused a race condition where
the config could be rendered before the IP address was ready
resulting in the health manager bind_ip to be empty.
This ensures that the IP address will be ready before continuing,
which will ensure that the config rendering will not happen until ready,
and the configure-resources action will only return once it's all done.
Closes-Bug: #1961088 d14f1831f3416d8 90ad604b705 370e2c424dbe668 460ab99ff1)
Change-Id: I2cae5f0e307c8c
(cherry picked from commit d8d8963667cb620