Bug 2358626

Summary: Unable to restore snapshot on libvirt-client 11.2.0-1
Product: [Fedora] Fedora Reporter: Tomáš Matuš <tmatus>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: berrange, clalancette, crobinso, jforbes, jiyin, laine, libvirt-maint, mpitt, suraj.ghimire7, virt-maint
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://artifacts.dev.testing-farm.io/a1b52a78-2de7-4acc-b029-3ab6fe3c2bed/
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-08-24 14:57:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomáš Matuš 2025-04-09 13:52:46 UTC
When I create snapshots of a domain the snapshots are successfully created. However when I try to restore any snapshot the process fails with the following error and the VM is shut down.

virtqemud[855]: operation failed: load of internal snapshot 'snapshotB' job failed: Device 'libvirt-1-format' is writable but does not support snapshots

This does not happen in libvirt-client 11.0.0-1 on Fedora 42.

Reproducible: Always

Steps to Reproduce:
1. virsh detach-disk --domain subVmTest1 --target vda --config
2. qemu-img create -f qcow2 /var/lib/libvirt/images/foobar.qcow2 1M
3. virsh attach-disk --domain subVmTest1 --source /var/lib/libvirt/images/foobar.qcow2 --target vdb --subdriver qcow2 --config
4. virsh snapshot-create-as --domain subVmTest1 --name snapshotA --description 'Description of snapshotA'
5. virsh snapshot-create-as --domain subVmTest1 --name snapshotB --description 'Description of snapshotB'
6. virsh snapshot-current --domain subVmTest1 --snapshotname snapshotA
7. virsh snapshot-revert --domain subVmTest1 --snapshotname snapshotB
Actual Results:  
error: Failed to revert snapshot snapshotB
error: operation failed: load of internal snapshot 'snapshotB' job failed: Device 'libvirt-1-format' is writable but does not support snapshots

Expected Results:  
Domain snapshot snapshotB reverted

Comment 3 Martin Pitt 2025-08-24 14:57:51 UTC
Our automatic tracker https://github.com/cockpit-project/bots/issues/7648 hasn't seen this any more in the last 25 days, so apparently fixed now.