Remove wait-for-bootstrap call 15/3615/3
authorYolanda Robla <yroblamo@redhat.com>
Thu, 9 Jul 2020 10:54:49 +0000 (12:54 +0200)
committerYolanda Robla <yroblamo@redhat.com>
Thu, 9 Jul 2020 11:06:06 +0000 (13:06 +0200)
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 <yroblamo@redhat.com>
Change-Id: I1d4a2ec2f1df0dbb40d9a80648ea8a12559c429e

ci/kni_deploy_baremetal.sh

index 3b747c6..fbdd8d3 100755 (executable)
@@ -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