From b8f055c82d9d2e80e77d96a19068f238fd394424 Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Mon, 4 Jan 2016 22:11:34 -0600 Subject: modified to support the ha deployment in case of virtual machine. Change-Id: I36969409f87d8bf3a4fabc73b0d5de22e5af9a29 --- ci/cleanvm.sh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'ci/cleanvm.sh') diff --git a/ci/cleanvm.sh b/ci/cleanvm.sh index 0cb513e0..d3345172 100644 --- a/ci/cleanvm.sh +++ b/ci/cleanvm.sh @@ -8,14 +8,20 @@ set -ex 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 - + virsh destroy opnfv-maas || true + virsh destroy bootstrap || true + virsh destroy node1-control || true + virsh destroy node3-control || true + virsh destroy node4-control || true + virsh destroy node2-compute || true + virsh destroy node5-compute || true + virsh undefine opnfv-maas || true + virsh undefine bootstrap || true + virsh undefine node1-control || true + virsh undefine node3-control || true + virsh undefine node4-control || true + virsh undefine node2-compute || true + virsh undefine node5-compute || true + sudo rm -rf /var/lib/libvirt/images/opnfv-maas.img /var/lib/libvirt/images/bootstrap.img /var/lib/libvirt/images/node1-control.img /var/lib/libvirt/images/node3-control.img /var/lib/libvirt/images/node4-control.img /var/lib/libvirt/images/node2-compute.img /var/lib/libvirt/images/node5-compute.img || true + echo " Cleanup Finished ..." -- cgit 1.2.3-korg