Bug 2358626 - Unable to restore snapshot on libvirt-client 11.2.0-1
Summary: Unable to restore snapshot on libvirt-client 11.2.0-1
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL: https://artifacts.dev.testing-farm.io...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-09 13:52 UTC by Tomáš Matuš
Modified: 2025-08-24 14:57 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-08-24 14:57:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.