From 6cadb5e6ba8152c33f863790f19cff734e2f18fc Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 30 Nov 2018 10:47:21 -0500 Subject: [PATCH] build_utils: Manually clean up vagrant old domain IDs Signed-off-by: David Galloway --- scripts/build_utils.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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() { -- 2.39.5