Uploaded image for project: 'oVirt - virtualization made easy'
  1. OVIRT-1417

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

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Highest
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: OVIRT-INFRA-JUN-2017
    • Components: oVirt CI
    • Labels:
      None

      Description

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

      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:

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

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

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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Barak Korren
                Reporter:
                Barak Korren
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: