]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
build_utils: Manually clean up vagrant old domain IDs 1212/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 30 Nov 2018 15:47:21 +0000 (10:47 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 30 Nov 2018 17:24:23 +0000 (12:24 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
scripts/build_utils.sh

index c6d1bfdc9f5e0cb563b25bd724b83e1724e3898d..ff79e30346f3ca3eab59b5665f8440ac6a150b0a 100644 (file)
@@ -840,6 +840,12 @@ teardown_vagrant_tests() {
         sudo virsh net-destroy $network || true
         sudo virsh net-undefine $network || true
     done
+
+    # For when machines get stuck in state: preparing
+    # https://github.com/SUSE/pennyworth/wiki/Troubleshooting#missing-domain
+    for dir in $(sudo find $WORKSPACE | grep '.vagrant/machines'); do
+      rm -rf "$dir/*"
+    done
 }
 
 get_nr_build_jobs() {