[FIX] Fix timeout error waiting for bmh ready
There appears to be a race condition in the kubectl_wait_bmh.sh script. It waits for the bmh to reach provisioning state 'ready', but it may have already moved into 'provisioning' state between checks. Changed the script to wait for the final 'provisioned' state instead. Change-Id: I3d825e8d6b2b4d3f2a4b15fe4c2823fb03588405
This commit is contained in:
parent
9f4b5b82bd
commit
c03b1f6a45
@ -27,7 +27,7 @@ do
|
||||
if [ "$(kubectl --request-timeout 20s \
|
||||
--context $KCTL_CONTEXT \
|
||||
get bmh $worker \
|
||||
-o jsonpath='{.status.provisioning.state}')" == "ready" ] ; then
|
||||
-o jsonpath='{.status.provisioning.state}')" == "provisioned" ] ; then
|
||||
|
||||
echo "Get BMHs status" 1>&2
|
||||
kubectl \
|
||||
|
Loading…
Reference in New Issue
Block a user