summaryrefslogtreecommitdiffstats
path: root/ci/cleanvm.sh
blob: 0cb513e0e515d26712e68f6f2f4239669473088a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

set -ex

#use the below commands if you needs to delete the virtual machine
# also along with envuronment destroy.

echo " Cleanup Started ..."
./clean.sh
 
virsh destroy opnfv-maas || true
virsh destroy bootstrap || true
virsh destroy node1-control || true
virsh destroy node2-compute || true
virsh undefine opnfv-maas || true
virsh undefine bootstrap || true
virsh undefine node1-control || true
virsh undefine node2-compute || true
sudo rm -rf  /var/lib/libvirt/images/bootstrap.img /var/lib/libvirt/images/node1-control.img /var/lib/libvirt/images/node2-compute.img || true

echo " Cleanup Finished ..."