Skip to content

Commit

Permalink
Check provisioning host ssh port file exists (#68)
Browse files Browse the repository at this point in the history
File gives the port to clean up bootstrap vm and provisioning network
Depends on: openshift/release#53822
  • Loading branch information
sgoveas authored Jun 29, 2024
1 parent 0e177ab commit 1067f07
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions images/prow-image/root/usr/bin/deprovision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@ echo "Running the post-installation steps..."
set +e
set -x
bash ./dhcp-pxe-conf/baremetal-lab-post-dhcp-pxe-conf-commands.sh
PROVISIONING_HOST="${AUX_HOST}" PROVISIONING_HOST_SSH_PORT=22 bash ../ipi/deprovision/baremetal-lab-ipi-deprovision-commands.sh
PROVISIONING_HOST="${AUX_HOST}" PROVISIONING_HOST_SSH_PORT=2222 bash ../ipi/deprovision/baremetal-lab-ipi-deprovision-commands.sh
for architecture in aarch64 amd64; do
[ -f "${CLUSTER_PROFILE_DIR}/provisioning-host-ssh-port-${architecture}" ] && \
bash ../ipi/deprovision/baremetal-lab-ipi-deprovision-commands.sh
done
bash ./wipe/baremetal-lab-post-wipe-commands.sh
bash ./dns/baremetal-lab-post-dns-commands.sh
bash ./firewall/baremetal-lab-post-firewall-commands.sh
bash ./load-balancer/baremetal-lab-post-load-balancer-commands.sh
# Execute twice as harmless and because we might not know which host is the provisioner
PROVISIONING_HOST="${AUX_HOST}" PROVISIONING_HOST_SSH_PORT=22 bash ./provisioning-network/baremetal-lab-post-provisioning-network-commands.sh
PROVISIONING_HOST="${AUX_HOST}" PROVISIONING_HOST_SSH_PORT=2222 bash ./provisioning-network/baremetal-lab-post-provisioning-network-commands.sh
for architecture in aarch64 amd64; do
[ -f "${CLUSTER_PROFILE_DIR}/provisioning-host-ssh-port-${architecture}" ] && \
bash ./provisioning-network/baremetal-lab-post-provisioning-network-commands.sh
done
bash ./release-nodes/baremetal-lab-post-release-nodes-commands.sh
exit 0

0 comments on commit 1067f07

Please sign in to comment.