From: David Galloway Date: Fri, 30 Nov 2018 15:47:21 +0000 (-0500) Subject: build_utils: Manually clean up vagrant old domain IDs X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6cadb5e6ba8152c33f863790f19cff734e2f18fc;p=ceph-build.git build_utils: Manually clean up vagrant old domain IDs Signed-off-by: David Galloway --- diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index c6d1bfdc..ff79e303 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -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() {