From b56b60c934970daba820e2e3f05541f3e9767f80 Mon Sep 17 00:00:00 2001 From: Miouge1 Date: Wed, 16 Sep 2020 09:06:40 +0200 Subject: [PATCH] Cleanup virsh volumes in Vagrant CI --- tests/scripts/vagrant_clean.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/scripts/vagrant_clean.sh b/tests/scripts/vagrant_clean.sh index a29b52191fe..b0488183640 100755 --- a/tests/scripts/vagrant_clean.sh +++ b/tests/scripts/vagrant_clean.sh @@ -9,4 +9,11 @@ for i in $(virsh list --name) do virsh destroy "$i" virsh undefine "$i" +done + + +# Cleanup domain volumes +for i in $(virsh vol-list default|grep \.img |grep -v VAGRANTSLASH | cut -f 2 -d ' ') +do + virsh vol-delete "$i" --pool default done \ No newline at end of file