Gary Wu | 874794d | 2017-10-13 12:27:39 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Gary Wu | 874794d | 2017-10-13 12:27:39 -0700 | [diff] [blame] | 3 | if [ -z "$WORKSPACE" ]; then |
| 4 | export WORKSPACE=`git rev-parse --show-toplevel` |
| 5 | fi |
| 6 | |
Gary Wu | 838c34d | 2017-10-23 14:22:40 -0700 | [diff] [blame^] | 7 | source $WORKSPACE/test/ete/scripts/install_openstack_cli.sh |
Gary Wu | 874794d | 2017-10-13 12:27:39 -0700 | [diff] [blame] | 8 | |
Gary Wu | 99a7c1a | 2017-10-23 13:12:06 -0700 | [diff] [blame] | 9 | # Delete all existing stacks |
| 10 | STACKS=$(openstack stack list -c "Stack Name" -f value) |
Gary Wu | 5f71741 | 2017-10-23 13:19:45 -0700 | [diff] [blame] | 11 | echo "Deleting Stacks ${STACKS}" |
| 12 | openstack stack delete -y $STACKS |
Gary Wu | 874794d | 2017-10-13 12:27:39 -0700 | [diff] [blame] | 13 | |
| 14 | STACK="ete-$(uuidgen | cut -c-8)" |
Gary Wu | 99a7c1a | 2017-10-23 13:12:06 -0700 | [diff] [blame] | 15 | echo "New Stack Name: ${STACK}" |
Gary Wu | a770e64 | 2017-10-23 12:30:29 -0700 | [diff] [blame] | 16 | openstack stack create -t ${ONAP_WORKDIR}/demo/heat/ONAP/onap_openstack.yaml -e ${WORKSPACE}/test/ete/labs/windriver/onap-openstack.env $STACK |
Gary Wu | 874794d | 2017-10-13 12:27:39 -0700 | [diff] [blame] | 17 | |