From 1120f2d900fc0f0f166254bd0006fb622cf1a07c Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Thu, 9 Jul 2020 12:54:49 +0200 Subject: [PATCH] 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 --- ci/kni_deploy_baremetal.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- 2.16.6