Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715494 - app-emulation/libvirt-6.0.0-r1 libvirt fails to take snapshot via virsh - exit code: 1, error: Timed out during operation: cannot acquire state change lock (held by agent=remoteDispatchDomainSetTime)'
Summary: app-emulation/libvirt-6.0.0-r1 libvirt fails to take snapshot via virsh - exi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-03-30 18:32 UTC by toon
Modified: 2020-04-12 06:40 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description toon 2020-03-30 18:32:47 UTC
I use a script to take automated snapshots of my VM's.
It has been working for many years.
After an upgrading to app-emulation/libvirt-6.0.0-r1 it doesn't work anymore.
The script calls virsh snapshot-create-as <domain> <timestamp> --no-metadata --disk-only --atomic
Error message: Timed out during operation: cannot acquire state change lock (held by agent=remoteDispatchDomainSetTime)'

Reproducible: Always

Steps to Reproduce:
1. Take external snapshot using virsh
2. Get error.
3.
Actual Results:  
The snapshot fails.

Expected Results:  
The snapshot completes successfully.

It appears that a fix has already been implemented.
See https://bugzilla.redhat.com/show_bug.cgi?id=1792723
Time to dash forward to the next release?  This one doesn't seem too stable...
Comment 1 toon 2020-03-30 19:03:00 UTC
As an extra data point:

# equery list libvirt
 * Searching for libvirt ...
[IP-] [  ] app-emulation/libvirt-6.0.0-r1:0/6.0.0

# equery list qemu
 * Searching for qemu ...
[IP-] [  ] app-emulation/qemu-4.2.0-r2:0
Comment 2 Larry the Git Cow gentoo-dev 2020-04-05 17:19:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5231c7fa687892e2ccfc71e38a60d69a59c977d0

commit 5231c7fa687892e2ccfc71e38a60d69a59c977d0
Author:     Michal Privoznik <mprivozn@redhat.com>
AuthorDate: 2020-04-04 07:45:31 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2020-04-05 17:19:16 +0000

    app-emulation/libvirt-6.0.0: And the agent job in qemuDomainSetTimeAgent
    
    Cherry-pick of d61f95cf6a6fbd564e104c168d325581acd9cd8d from the
    libvirt's upstream repo.
    
    Closes: https://bugs.gentoo.org/715494
    
    Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 ...d-the-agent-job-in-qemuDomainSetTimeAgent.patch | 39 ++++++++++++++++++++++
 ...irt-6.0.0-r1.ebuild => libvirt-6.0.0-r2.ebuild} |  1 +
 2 files changed, 40 insertions(+)
Comment 3 toon 2020-04-12 06:40:54 UTC
Yes, this fix solved it.
Thanks!