Add extra wait-for installer in libvirt 76/2276/1
authorYolanda Robla <yroblamo@redhat.com>
Wed, 4 Mar 2020 10:22:46 +0000 (11:22 +0100)
committerYolanda Robla <yroblamo@redhat.com>
Wed, 4 Mar 2020 10:22:46 +0000 (11:22 +0100)
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

ci/kni_deploy_libvirt.sh

index 8950b6e..f09d573 100755 (executable)
@@ -56,7 +56,10 @@ sudo cp $HOME/.kni/${SITE_NAME}/requirements/openshift-install /usr/bin/openshif
 # 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