diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-10-23 13:12:06 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2017-10-23 13:12:06 -0700 |
commit | 99a7c1a61059fafafe8e512d41e9e95fb805a899 (patch) | |
tree | d697305baabebd280c026722e57dbea924b2355f /test/ete/scripts | |
parent | e52a81eb210b20b23a9840ae8dae3da1c6aef8a0 (diff) |
Delete all existing stacks on deploy
Change-Id: If325394527354d7e86c6fef67a91fcd1da08bd6c
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/ete/scripts')
-rwxr-xr-x | test/ete/scripts/deploy-onap.sh | 8 |
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 |