Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4048

[Machines] The vm can not be deleted with internal&external snapshot

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • Moderate
    • rhel-cockpit
    • ssg_front_door
    • None
    • QE ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:
      [Machines] The vm can not be deleted with internal&external snapshot

      Version-Release number of selected components (if applicable):
      cockpit-machines-291-1.el9.noarch
      cockpit-292-1.el9.x86_64
      libvirt-dbus-1.4.1-5.el9.x86_64
      libvirt-client-9.3.0-2.el9.x86_64

      How reproducible:
      100%

      Steps to Reproduce:
      1. Prepare a vm , like cirros

      2. Enter vm details page, click "Create snapshot", fillin :
      Name: test1
      Description: internal_snapshot

      3. On the host, use virsh to create a external_snapshot :

      1. virsh snapshot-create-as --domain cirros --name test2 --description 'external_snapshot' --disk-only

      4. Refresh the vm details page

      5. Try to delete the test2, there will be error:
      Snapshot test2 could not be deleted
      Operation not supported: deleting external snapshot that has internal snapshot as parent not supported

      6. Try to delete the test1, there will be error:
      Snapshot test1 could not be deleted
      Operation not supported: disk image 'vda' for internal snapshot 'test1' is not the same as disk image currently used by VM

      7. Try to delete the vm, there will be error:
      Danger alert:Could not delete cirros
      Operation not supported: deleting external snapshot that has internal snapshot as parent not supported

      Actual results:
      See step5 & step6 & step7.

      Expected results:
      Can delete in step5/6/7, at least can delete the vm at last.

      Additional info:

              Unassigned Unassigned
              xchen@redhat.com Xiang Hua Chen
              Simon Kobyda Simon Kobyda (Inactive)
              Yunming Yang Yunming Yang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: