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

Support reversion of disk-snapshots (--disk-only)

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-9.4
    • libvirt
    • None
    • None
    • rhel-sst-virtualization
    • ssg_virtualization
    • 8
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • None
    • 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:

      qemu-kvm-8.2.0-2.el9.x86_64

      libvirt v10.0.0-rc2-2-g10042f0253

      How reproducible:

      100%

      Steps to reproduce

      1.  Start a domain
      2.  Create the disk-only snapshot. Then revert to the snapshot with --force

      ➜  ~ virsh snapshot-create-as fedora s1 --disk-only 
      Domain snapshot s1 created

      ➜  ~ virsh snapshot-revert fedora s1 --force
      error: Failed to revert snapshot s1
      error: internal error: Invalid target domain state 'disk-snapshot'. Refusing snapshot reversion

      ➜  ~ virsh destroy fedora                   
      Domain 'fedora' destroyed

      ➜  ~ virsh snapshot-revert fedora s1 --force
      error: Failed to revert snapshot s1
      error: internal error: Invalid target domain state 'disk-snapshot'. Refusing snapshot reversion

      Expected results

      Enable to revert to the disk-snapshot with --force. And add the document for that case with --force option.

      Actual results

      As above

       

      virtqemud.log

       

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

                Created:
                Updated: