summaryrefslogtreecommitdiffstats
path: root/ci/clean.sh
diff options
context:
space:
mode:
authorMichael Chapman <michapma@redhat.com>2016-03-24 01:09:02 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-03-24 01:09:03 +0000
commit81e8d7b55fbc27d8f25031817baf92d9b100f322 (patch)
tree819a8a94a6ef9db8d7cc2d8480d768d9daca274f /ci/clean.sh
parenta896444c04552b866a9460bbe70ae3488e4877d9 (diff)
parent4b5e79294eecf7e10bfb1459c55f9186312c32bf (diff)
Merge topics 'compute_count_fix', 'build_rewrite'
* changes: Allow 2+ compute node for none HA installs APEX-117 updating vm creation for virt deployment
Diffstat (limited to 'ci/clean.sh')
-rwxr-xr-xci/clean.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/ci/clean.sh b/ci/clean.sh
index f05b9136..58239cc6 100755
--- a/ci/clean.sh
+++ b/ci/clean.sh
@@ -17,7 +17,7 @@ CONFIG=/var/opt/opnfv
source $CONFIG/lib/common-functions.sh
vm_index=4
-ovs_bridges="brbm brbm1 brbm2 brbm3"
+ovs_bridges="br-admin br-private br-public br-storage"
# Clean off instack VM
virsh destroy instack 2> /dev/null || echo -n ''
virsh undefine instack --remove-all-storage 2> /dev/null || echo -n ''
@@ -32,11 +32,11 @@ rm -f /var/lib/libvirt/images/instack.qcow2 2> /dev/null
# Clean off baremetal VMs in case they exist
for i in $(seq 0 $vm_index); do
- virsh destroy baremetalbrbm_brbm1_brbm2_brbm3_$i 2> /dev/null || echo -n ''
- virsh undefine baremetalbrbm_brbm1_brbm2_brbm3_$i --remove-all-storage 2> /dev/null || echo -n ''
- /usr/bin/touch /var/lib/libvirt/images/baremetalbrbm_brbm1_brbm2_brbm3_${i}.qcow2
- virsh vol-delete baremetalbrbm_brbm1_brbm2_brbm3_${i}.qcow2 --pool default 2> /dev/null
- rm -f /var/lib/libvirt/images/baremetalbrbm_brbm1_brbm2_brbm3_${i}.qcow2 2> /dev/null
+ virsh destroy baremetal$i 2> /dev/null || echo -n ''
+ virsh undefine baremetal$i --remove-all-storage 2> /dev/null || echo -n ''
+ /usr/bin/touch /var/lib/libvirt/images/baremetal${i}.qcow2
+ virsh vol-delete baremetal${i}.qcow2 --pool default 2> /dev/null
+ rm -f /var/lib/libvirt/images/baremetal${i}.qcow2 2> /dev/null
done
# Clean off created bridges