summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornarindergupta <narinder.gupta@canonical.com>2017-05-25 09:12:34 -0700
committerNarinder Gupta <narinder.gupta@canonical.com>2017-05-25 16:38:14 +0000
commita5dce9fbd80580fa5e140e4dbee7f8a5bd00d9a5 (patch)
tree626954a87c9325c9457fa5e5a01e00a303164b08
parent503ae122dde4533b09be89d895160f2ae0a9c7b6 (diff)
clean the vm which is defined as per the labconfig.yaml
Change-Id: If659da0a454f05f3ed7c1e212fd7e61230741343 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
-rwxr-xr-xci/cleanvm.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ci/cleanvm.sh b/ci/cleanvm.sh
index 3756c406..5a5365b2 100755
--- a/ci/cleanvm.sh
+++ b/ci/cleanvm.sh
@@ -11,7 +11,8 @@ echo " Cleanup Started ..."
vm_list=$(sudo virsh list --all)
for vm in node1-control node2-compute node3-control node4-control \
- node5-compute bootstrap
+ node5-compute rack-vir-m1 rack-vir-m2 rack-vir-m3 rack-vir-m4 \
+ rack-vir-m1 bootstrap
do
echo "$vm_list" | grep -q " $vm " || continue
sudo virsh destroy $vm