engine: Create verify jobs for kubernetes stack
Change-Id: I6c87ea34fcd9aa888b797360c6686230982555e9
diff --git a/jjb/engine/scripts/delete-heat-stack.sh b/jjb/engine/scripts/delete-heat-stack.sh
index 2e162fa..2115d6e 100755
--- a/jjb/engine/scripts/delete-heat-stack.sh
+++ b/jjb/engine/scripts/delete-heat-stack.sh
@@ -27,6 +27,19 @@
exit 0
fi
+# NOTE (fdegir): offline installer removes /opt/engine so we prepare venv ourselves for openstack cli
+if [[ "$EXECUTION_MODE" == "offline-deployment" ]]; then
+ sudo /bin/rm -rf /opt/engine/.venv
+ virtualenv --python python3 --never-download /opt/engine/.venv
+ /bin/cp -f /opt/engine/offline/pip/pip.conf /opt/engine/.venv/
+ set +u
+ source /opt/engine/.venv/bin/activate
+ set -u
+ pip install --upgrade pip
+ pip install -r /opt/engine/offline/git/engine/requirements.txt
+ deactivate
+fi
+
set +u
source /opt/engine/.venv/bin/activate
set -u