summaryrefslogtreecommitdiffstats
path: root/ci/clean.sh
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-02-04 15:25:12 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-02-04 15:25:12 +0000
commit1c448e3d0694db04fc1ddda32883d66a8ede0042 (patch)
treeed01454af604c0dcace824110a04983982c68046 /ci/clean.sh
parent410fbd645cd5f257734813694b4d0170572013c9 (diff)
parent1a2a9580cbd5dccdc11399d2cae47d02217be860 (diff)
Merge "Touch baremetal images before vol-delete" into stable/brahmaputra
Diffstat (limited to 'ci/clean.sh')
-rwxr-xr-xci/clean.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/ci/clean.sh b/ci/clean.sh
index 8b0c9bbc..f05b9136 100755
--- a/ci/clean.sh
+++ b/ci/clean.sh
@@ -34,6 +34,7 @@ rm -f /var/lib/libvirt/images/instack.qcow2 2> /dev/null
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
done