From: Yolanda Robla Date: Thu, 9 Jul 2020 10:54:49 +0000 (+0200) Subject: Remove wait-for-bootstrap call X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=1120f2d900fc0f0f166254bd0006fb622cf1a07c;p=kni%2Finstaller.git Remove wait-for-bootstrap call It is not currently working in the case of UPI. So instead, query for at least one master node to be ready, that will be enough to start adding worker nodes. Signed-off-by: Yolanda Robla Change-Id: I1d4a2ec2f1df0dbb40d9a80648ea8a12559c429e --- diff --git a/ci/kni_deploy_baremetal.sh b/ci/kni_deploy_baremetal.sh index 3b747c6..fbdd8d3 100755 --- a/ci/kni_deploy_baremetal.sh +++ b/ci/kni_deploy_baremetal.sh @@ -35,7 +35,15 @@ popd pushd $HOME/go/src/gerrit.akraino.org/kni/installer ./knictl deploy_masters $SITE_NAME -$HOME/.kni/$SITE_NAME/requirements/openshift-install wait-for bootstrap-complete --dir $HOME/.kni/$SITE_NAME/baremetal_automation/ocp/ + +# just sleep for some time, for masters to be up +sleep 20m + +NUM_READY=0 +while [[ "$NUM_READY" -lt 1 ]]; do + NUM_READY=$(KUBECONFIG=$HOME/.kni/$SITE_NAME/baremetal_automation/ocp/auth/kubeconfig $HOME/.kni/$SITE_NAME/requirements/oc get nodes | grep " Ready " | wc -l ) + sleep 1m +done popd pushd $HOME/go/src/gerrit.akraino.org/kni/installer