aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest/ete/scripts/deploy-onap.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/ete/scripts/deploy-onap.sh b/test/ete/scripts/deploy-onap.sh
index 353c7c78c..69c6dfb84 100755
--- a/test/ete/scripts/deploy-onap.sh
+++ b/test/ete/scripts/deploy-onap.sh
@@ -46,8 +46,14 @@ else
fi
+# Delete all existing stacks
+STACKS=$(openstack stack list -c "Stack Name" -f value)
+for stack in "${STACKS[@]}"; do
+ echo "Deleting Old Stack ${stack}"
+ openstack stack delete -y $stack
+done
STACK="ete-$(uuidgen | cut -c-8)"
-echo "Stack Name: ${STACK}"
+echo "New Stack Name: ${STACK}"
openstack stack create -t ${ONAP_WORKDIR}/demo/heat/ONAP/onap_openstack.yaml -e ${WORKSPACE}/test/ete/labs/windriver/onap-openstack.env $STACK