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

Cannot delete a parent snapshot of non-current branch

    • libvirt-10.0.0-3.el9
    • None
    • Moderate
    • sst_virtualization
    • ssg_virtualization
    • 26
    • None
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • All
    • None

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

      As subject

      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. virsh domblklist rhel
         Target   Source
        ----------------------------------------------
         vda      /var/lib/libvirt/images/rhel.qcow2
      1. virsh list --all
        Id Name State
        --------------------------------
        30 rhel running 

      2. Create snapshot with 2 branches:

      1. snap=s1;virsh snapshot-create-as rhel $snap --memspec /var/lib/libvirt/images/rhel_$snap
        Domain snapshot s1 created
      1. snap=s2;virsh snapshot-create-as rhel $snap --memspec /var/lib/libvirt/images/rhel_$snap
        Domain snapshot s2 created
      1. snap=s3;virsh snapshot-create-as rhel $snap --memspec /var/lib/libvirt/images/rhel_$snap
        Domain snapshot s3 created
      1. virsh snapshot-revert rhel s1
        Domain snapshot s1 reverted
      1. snap=s4;virsh snapshot-create-as rhel $snap --memspec /var/lib/libvirt/images/rhel_$snap
        Domain snapshot s4 created
      1. snap=s5;virsh snapshot-create-as rhel $snap --memspec /var/lib/libvirt/images/rhel_$snap
        Domain snapshot s5 created
      1. virsh snapshot-list rhel --tree
        s1
         
        +- s2
         
        +- s3

      +- s4
       
      +- s5

      1. virsh snapshot-current rhel --name
        s5

      3. Delete the parent snapshot s2

      1. virsh snapshot-delete rhel s2
        error: Failed to delete snapshot s2
        error: invalid argument: could not find base disk source in disk source chain

      Expected results

      Delete s2 without error

      Actual results

      as above

      Logs and XML:

      snapshot.tar.xz

       

            phrdina@redhat.com Pavel Hrdina
            hanhansolo Han Han
            Nannan Li
            Pavel Hrdina Pavel Hrdina
            Meina Li Meina Li
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: