Skip to content

Commit

Permalink
Wait for FIPs to become available in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor committed Aug 16, 2024
1 parent 16e49a3 commit 17f5530
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,33 @@ runs:
EXTNET_ID="$(ansible_var infra_external_network_id)"
INSTALL_MODE="$(ansible_var install_mode)"
INGRESS_IP="$(
openstack floating ip create $EXTNET_ID \
--description "ingress IP for $AZIMUTH_ENVIRONMENT" \
--format value \
--column floating_ip_address
)"
until \
INGRESS_IP="$(
openstack floating ip create $EXTNET_ID \
--description "ingress IP for $AZIMUTH_ENVIRONMENT" \
--format value \
--column floating_ip_address
)"
do
echo "waiting for ingress IP to become available"
sleep 60
done
cat >> ci.env <<EOF
export INGRESS_IP="$INGRESS_IP"
EOF
if [ "$INSTALL_MODE" = "ha" ]; then
ZENITH_SSHD_IP="$(
openstack floating ip create $EXTNET_ID \
--description "Zenith SSHD IP for $AZIMUTH_ENVIRONMENT" \
--format value \
--column floating_ip_address
)"
until \
ZENITH_SSHD_IP="$(
openstack floating ip create $EXTNET_ID \
--description "Zenith SSHD IP for $AZIMUTH_ENVIRONMENT" \
--format value \
--column floating_ip_address
)"
do
echo "waiting for Zenith SSHD IP to become available"
sleep 60
done
cat >> ci.env <<EOF
export ZENITH_SSHD_IP="$ZENITH_SSHD_IP"
EOF
Expand Down

0 comments on commit 17f5530

Please sign in to comment.