Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 664614

Summary: app-emulation/libvirt-4.5.0-r1 virsh snapshot-create-as fails when called with option --quiesce: "Timed out during operation: cannot acquire state change lock"
Product: Gentoo Linux Reporter: toon <toon>
Component: Current packagesAssignee: Matthias Maier <tamiko>
Status: RESOLVED OBSOLETE    
Severity: major CC: jstein, virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://www.redhat.com/archives/libvir-list/2018-July/msg00258.html
See Also: https://bugs.gentoo.org/show_bug.cgi?id=664164
Whiteboard:
Package list:
Runtime testing required: ---

Description toon 2018-08-26 08:03:08 UTC
See summary.
If I leave the option --quiesce out, the snapshot completes successfully.
This bug has already been reported to upstream, see:
https://bugzilla.redhat.com/show_bug.cgi?id=1598084

Reproducible: Always

Steps to Reproduce:
1. virsh -q snapshot-create-as "$domain_name" "$SNAPSHOT_PREFIX-$timestamp" --no-metadata --disk-only --atomic --quiesce
2.
3.
Actual Results:  
"Timed out during operation: cannot acquire state change lock"

Expected Results:  
First a request to quiesce the filesystems is sent to the qemu guest agent on the client.
Subsequently snapshots are made of the images of the client KVM machine.

As a work-around I now leave out the --quiesce option when making nightly snapshots.  This is of course suboptimal.
Comment 1 Matthias Maier gentoo-dev 2018-11-04 04:57:55 UTC
The patch should have made it into 4.6.0 according to the git repository:

https://www.redhat.com/archives/libvir-list/2018-July/msg00258.html