diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2018-08-29 10:40:31 +0200 |
---|---|---|
committer | Fatih Degirmenci <fdegir@gmail.com> | 2018-08-29 10:43:40 +0200 |
commit | 5e73ff3357d30db737095b4f2ac88f2ae9af5aca (patch) | |
tree | d253f276a02404f2e742c8232c9cf3bab5f8ed9b | |
parent | 15ccaf5db6e057878c2ebd12abdf6c0636adc29b (diff) |
xci: Remove leftover VMs before proceeding with the deployment
Change-Id: I12e1dc7d79ca74df1ba02e16e55e91f4f47a818c
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
-rw-r--r-- | jjb/xci/xci-daily-jobs.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/jjb/xci/xci-daily-jobs.yaml b/jjb/xci/xci-daily-jobs.yaml index 47bd83c8a..3627d1806 100644 --- a/jjb/xci/xci-daily-jobs.yaml +++ b/jjb/xci/xci-daily-jobs.yaml @@ -300,6 +300,15 @@ set -o errexit set -o pipefail + echo "Cleaning the leftovers from the earlier run" + echo "---------------------------------------------------------------------------------" + for vm in $(sudo virsh list --all --name | grep -v xci_vm); do + echo "Removing $vm" + sudo virsh destroy $vm > /dev/null 2>&1 || true + sudo virsh undefine $vm > /dev/null 2>&1 || true + done + echo "---------------------------------------------------------------------------------" + cd $WORKSPACE/xci && ./xci-deploy.sh echo "Prepare OPNFV VM for Functest" |