Skip to content

Commit 5b77a4f

Browse files
committed
bootstrap: wait for metal3 to shut down
1 parent 799b460 commit 5b77a4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

data/data/bootstrap/baremetal/files/usr/local/bin/master-bmh-update.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ done
2424
# Shut down ironic containers so that the API VIP can fail over to the control
2525
# plane.
2626
echo "Stopping provisioning services..."
27-
systemctl stop ironic.service
28-
29-
echo "Wait for control plane to fail over"
30-
sleep 30
27+
systemctl --no-block stop ironic.service
28+
while systemctl is-active metal3-baremetal-operator.service; do
29+
sleep 10
30+
done
3131

3232
echo "Unpause all baremetal hosts"
3333
oc annotate --overwrite -n openshift-machine-api baremetalhosts --all "baremetalhost.metal3.io/paused-"

0 commit comments

Comments
 (0)