diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-01-22 19:55:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-01-22 19:55:50 +0000 |
commit | 47797ac75753795b7c881eb5efa28dd805672916 (patch) | |
tree | 6e9584b4750d9a098299b8139cf0d1727649c8e2 /ci | |
parent | f2e75cbe550dfdb6cc6743e7330fbbb6769107f9 (diff) | |
parent | 001835c8a1117944ff75d03ef8a6204029a8b51e (diff) |
Merge "adding sudo in front of VM for virtual install cleanup." into stable/brahmaputra
Diffstat (limited to 'ci')
-rw-r--r-- | ci/cleanvm.sh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/ci/cleanvm.sh b/ci/cleanvm.sh index d3345172..5277bf40 100644 --- a/ci/cleanvm.sh +++ b/ci/cleanvm.sh @@ -8,20 +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 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 +sudo virsh destroy opnfv-maas || true +sudo virsh destroy bootstrap || true +sudo virsh destroy node1-control || true +sudo virsh destroy node3-control || true +sudo virsh destroy node4-control || true +sudo virsh destroy node2-compute || true +sudo virsh destroy node5-compute || true +sudo virsh undefine opnfv-maas || true +sudo virsh undefine bootstrap || true +sudo virsh undefine node1-control || true +sudo virsh undefine node3-control || true +sudo virsh undefine node4-control || true +sudo virsh undefine node2-compute || true +sudo 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 ..." |