Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for FIPs to become available in CI #172

Merged
merged 2 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,35 @@ 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
echo "assigned $INGRESS_IP for ingress"
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
echo "assigned $ZENITH_SSHD_IP for Zenith SSHD"
cat >> ci.env <<EOF
export ZENITH_SSHD_IP="$ZENITH_SSHD_IP"
EOF
Expand Down
2 changes: 1 addition & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
collections:
- name: https://github.com/azimuth-cloud/ansible-collection-azimuth-ops.git
type: git
version: 0.10.0
version: 0.11.0-alpha.0
# For local development
# - type: dir
# source: ../ansible-collection-azimuth-ops
Loading