mock_cleanup.sh script does not erash shut-down VMs well

Description

'mock_cleanup.sh' includes the following code to cleanup VMs:

1 2 3 4 5 for UUID in $(virsh list --all --uuid); do virsh destroy $UUID || : sleep 2 virsh undefine --remove-all-storage --storage vda --snapshots-metadata $UUID || : done

This code probably worked at some point, but doesn't any more, instead if there are shut down VMs left on the machine, we get this error message:

1 error: Specified both --storage and --remove-all-storage

Need to fix this, the following was verified to work:

1 virsh undefine --remove-all-storage --snapshots-metadata $UUID

Status

Assignee

Barak Korren

Reporter

Barak Korren

Blocked By

None

Components

Priority

Highest