From 022e16a4540680cff145ae7ec3aae7e87b611448 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Wed, 4 Mar 2020 11:22:46 +0100 Subject: [PATCH] Add extra wait-for installer in libvirt It is not ready when we finish create cluster, so add extra call to wait for installer to finish. Signed-off-by: Yolanda Robla Change-Id: Ic3a453b104fba0d433a610fd25d7e581a34b8fe9 --- ci/kni_deploy_libvirt.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/kni_deploy_libvirt.sh b/ci/kni_deploy_libvirt.sh index 8950b6e..f09d573 100755 --- a/ci/kni_deploy_libvirt.sh +++ b/ci/kni_deploy_libvirt.sh @@ -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 -- 2.16.6