summaryrefslogtreecommitdiffstats
path: root/build/instack.sh
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2015-11-17 19:13:37 -0500
committerDan Radez <dradez@redhat.com>2015-11-18 15:50:19 -0500
commitb49a0d6835c6981b285c73c90c06f9743eea124c (patch)
treea3d0766c94243c9cbe4241e75ca1b948a0906461 /build/instack.sh
parent3f256fe8fdb4d37387314ab4657b08b7ade364cf (diff)
adding cleanup for build
Change-Id: If748e8fade74d3764c624f2b3a790421be4667e2
Diffstat (limited to 'build/instack.sh')
-rwxr-xr-xbuild/instack.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/build/instack.sh b/build/instack.sh
index b682c8d9..9b900698 100755
--- a/build/instack.sh
+++ b/build/instack.sh
@@ -87,15 +87,10 @@ fi
sudo rm -f /tmp/instack.answers
# ensure that no previous undercloud VMs are running
+sudo ../ci/clean.sh
# and rebuild the bare undercloud VMs
ssh -T ${SSH_OPTIONS[@]} stack@localhost <<EOI
set -e
-virsh destroy instack 2> /dev/null || echo -n ''
-virsh undefine instack --remove-all-storage 2> /dev/null || echo -n ''
-for i in \$(seq 0 $vm_index); do
- virsh destroy baremetalbrbm_brbm1_\$i 2> /dev/null || echo -n ''
- virsh undefine baremetalbrbm_brbm1_\$i --remove-all-storage 2> /dev/null || echo -n ''
-done
NODE_COUNT=5 NODE_CPU=2 NODE_MEM=8192 TESTENV_ARGS="--baremetal-bridge-names 'brbm brbm1'" instack-virt-setup
EOI