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

deleting snapshot that had multiple branches doesn't correctly update data in non-original branches

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-9.5
    • rhel-9.4
    • libvirt / Storage
    • None
    • libvirt-10.3.0-1.el9
    • sst_virtualization_storage
    • ssg_virtualization
    • 3
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • Red Hat Enterprise Linux
    • 10.3.0

      What were you trying to do that didn't work?

      Please provide the package NVR for which bug is seen:

      kernel-5.14.0-413.el9.x86_64
      libvirt-10.0.0-2.el9.x86_64
      qemu-kvm-8.2.0-3.el9.x86_64

      How reproducible:

      100%

      Steps to reproduce

      1. Prepare a running VM:
        1. virt-install --name rhel --memory 1024 --disk size=1 --import --osinfo rhel9.3 --noautoconsole
      2. Create snapshots with two branches:
        1. snap=s1;virsh snapshot-create-as rhel $snap --memspec /tmp/rhel_$snap
        2. snap=s2;virsh snapshot-create-as rhel $snap --memspec /tmp/rhel_$snap
        3. virsh snapshot-revert rhel s3
        4. snap=s3;virsh snapshot-create-as rhel $snap --memspec /tmp/rhel_$snap
      3. Delete the snapshot in original branch:
        1. virsh snapshot-delete rhel s2
      4. Delete the first snapshot that had multiple branches:
        1. virsh snapshot-delete rhel s1
      5. Delete the last snapshot that was not correctly updated:
        1. virsh snapshot-delete rhel s3

      Expected results

      Snapshot is deleted.

      Actual results

      error: Failed to delete snapshot s3
      error: operation failed: snapshot VM disk source and parent disk source are not the same

            phrdina@redhat.com Pavel Hrdina
            phrdina@redhat.com Pavel Hrdina
            Pavel Hrdina Pavel Hrdina
            Meina Li Meina Li
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: