It is not ready when we finish create cluster, so add extra call
to wait for installer to finish.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ic3a453b104fba0d433a610fd25d7e581a34b8fe9
# now run the cluster
pushd /usr/bin
source $HOME/.kni/${SITE_NAME}/profile.env
-sudo -E /usr/bin/openshift-install create cluster --dir=/$HOME/.kni/${SITE_NAME}/final_manifests 2>&1 | tee ${WORKSPACE}/libvirt_deploy.log
+sudo -E /usr/bin/openshift-install create cluster --dir=/$HOME/.kni/${SITE_NAME}/final_manifests 2>&1 | tee ${WORKSPACE}/libvirt_deploy.log || true
+
+# additional step of wait for installer to complete
+sudo -E /usr/bin/openshift-install wait-for install-complete --dir=/$HOME/.kni/${SITE_NAME}/final_manifests
STATUS=$?
popd