From 0cdde073de831325d2b58f0c12e472837e5969e0 Mon Sep 17 00:00:00 2001
From: handreas <andreas.hamacher@monash.edu>
Date: Wed, 29 Jan 2020 05:52:53 +0000
Subject: [PATCH] prefix stackname with CICD consistently. add debug output

Former-commit-id: 346c10430a142d8032a06572ed72620dcf3b99c8
---
 CICD/ansible_create_cluster_script.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CICD/ansible_create_cluster_script.sh b/CICD/ansible_create_cluster_script.sh
index a1499f72..ad1d8209 100755
--- a/CICD/ansible_create_cluster_script.sh
+++ b/CICD/ansible_create_cluster_script.sh
@@ -3,9 +3,12 @@ set -e
 export ANSIBLE_HOST_KEY_CHECKING=False
 
 source ./$NECTAR_ALLOCATION-openrc.sh
+openstack stack list
 
 cd CICD
 
+STACKNAME=CICD$STACKNAME
+
 echo "[ansible_create_cluster_script] Prefixing the Stackname with CICD because heatcicdwrapper does he same"
 python3 ../scripts/make_inventory.py static CICD$STACKNAME | tee ./files/inventory.$STACKNAME && chmod 755 ./files/inventory.$STACKNAME
 grep -qv "I could not find any resouces tagged with project_name:" ./files/inventory.$STACKNAME   #fail if inventory file is empty
-- 
GitLab