It is a current limitation of openshift libvirt
installer
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I954d07da42670c225fe499733d0b90531d8eca9c
./knictl fetch_requirements file://${BLUEPRINT_PATH}/sites/${SITE_NAME} 2>&1 | tee ${WORKSPACE}/libvirt_requirements.log
./knictl prepare_manifests ${SITE_NAME} 2>&1 | tee ${WORKSPACE}/libvirt_manifests.log
+# move the binary to /usr/bin, due to create cluster constraints
+sudo cp $HOME/.kni/${SITE_NAME}/requirements/openshift-install /usr/bin/openshift-install
+
# now run the cluster
+pushd /usr/bin
source $HOME/.kni/${SITE_NAME}/profile.env
-sudo -E $HOME/.kni/${SITE_NAME}/requirements/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
STATUS=$?
+popd
# output tfstate
echo "metadata.json for removing cluster"