-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremove_instances_cognet.sh
More file actions
executable file
·53 lines (37 loc) · 978 Bytes
/
remove_instances_cognet.sh
File metadata and controls
executable file
·53 lines (37 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
#
#
# Script for cleaning instances from OpenStack environment.
# to run the script keystonerc_admin file is sourced. If the file is in different location, path should be modified.
# Before and after running script, the status of the instances can be checked with 'nova list' command.
echo "Cleaning instances"
scriptPATH=$(dirname $(readlink -f $0))
. $scriptPATH/agnosticCI.conf
source $scriptPATH/$cloud_credential_file
echo " Removing Docker "
nova delete docker
sleep 3s
echo " Removing Kafka "
nova delete kafka
sleep 3s
echo " Removing Policy "
nova delete policy
sleep 3s
echo " Removing Spark Master "
nova delete spark_master
sleep 3s
echo " Removing Spark Slave 1 "
nova delete spark_slave1
sleep 3s
echo " Removing Spark Slave 2 "
nova delete spark_slave2
sleep 3s
echo " Removing OScon "
nova delete oscon
sleep 3s
echo " Removing Monasca "
nova delete monasca
sleep 3s
echo " Removing OpenDayLight "
nova delete odl
nova list