Skip to content

Commit

Permalink
Cleanup virsh volumes in Vagrant CI (kubernetes-sigs#6688)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miouge1 authored and LuckySB committed Jan 16, 2021
1 parent c962925 commit f6b0c80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/scripts/vagrant_clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f6b0c80

Please sign in to comment.