[Bug 882579] Re: Some Commands return: "Timed out during operation: cannot acquire state change lock"
nutznboltz
882579 at bugs.launchpad.net
Mon Oct 31 11:57:52 UTC 2011
** Changed in: libvirt (Ubuntu)
Status: Incomplete => Confirmed
** Description changed:
+ To reproduce:
+
+ apt-get source linux-image-2.6.38-12-generic
+
+ examine linux-lts-backport-natty-2.6.38/arch/x86/kvm/x86.c
+
+ See missing patch:
+
+ diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
+ index 980317a..0556e05 100644
+ --- a/arch/x86/kvm/x86.c
+ +++ b/arch/x86/kvm/x86.c
+ @@ -2100,8 +2100,8 @@ void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
+ if (check_tsc_unstable()) {
+ kvm_x86_ops->adjust_tsc_offset(vcpu, -tsc_delta);
+ vcpu->arch.tsc_catchup = 1;
+ - kvm_make_request(KVM_REQ_CLOCK_UPDATE, vcpu);
+ }
+ + kvm_make_request(KVM_REQ_CLOCK_UPDATE, vcpu);
+ if (vcpu->cpu != cpu)
+ kvm_migrate_timers(vcpu);
+ vcpu->cpu = cpu;
+
+ =====
+
While attempting to use "virsh" commands this error occurs:
Oct 27 08:52:22 boron libvirtd: 08:52:23.000: 25851: error :
qemuDomainObjBeginJobWithDriver:453 : Timed out during operation: cannot
acquire state change lock
While the error state is present certain commands like "virsh shutdown"
and "virsh destroy" elicit that error message and fail to work
completely I found that if I kill the kvm guest processes
$ kill -9 $(ps ax | grep '/usr/bin/kvm.*guestname' | awk '{print $1}')
Then "virsh start guestname" would work.
I'm not certain that the number of VM guests is the issue, however, this
happens more frequently to me on systems with larger numbers of guests.
We have one with 14 guests and another with 53.
- There seems to be a corresponding Red Hat bug at:
+ There seems to be a corresponding Red Hat bug at:
https://bugzilla.redhat.com/show_bug.cgi?id=676205
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libvirt-bin 0.8.8-1ubuntu6.5
ProcVersionSignature: Ubuntu 2.6.38-12.51-generic 2.6.38.8
Uname: Linux 2.6.38-12-generic x86_64
Architecture: amd64
Date: Thu Oct 27 09:41:23 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
- LANGUAGE=en_US:en
- PATH=(custom, user)
- LANG=en_US.UTF-8
- SHELL=/bin/bash
+ LANGUAGE=en_US:en
+ PATH=(custom, user)
+ LANG=en_US.UTF-8
+ SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: Upgraded to natty on 2011-05-26 (153 days ago)
** Description changed:
To reproduce:
+ On Lucid run:
apt-get source linux-image-2.6.38-12-generic
examine linux-lts-backport-natty-2.6.38/arch/x86/kvm/x86.c
See missing patch:
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 980317a..0556e05 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2100,8 +2100,8 @@ void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
- if (check_tsc_unstable()) {
- kvm_x86_ops->adjust_tsc_offset(vcpu, -tsc_delta);
- vcpu->arch.tsc_catchup = 1;
+ if (check_tsc_unstable()) {
+ kvm_x86_ops->adjust_tsc_offset(vcpu, -tsc_delta);
+ vcpu->arch.tsc_catchup = 1;
- kvm_make_request(KVM_REQ_CLOCK_UPDATE, vcpu);
- }
+ }
+ kvm_make_request(KVM_REQ_CLOCK_UPDATE, vcpu);
- if (vcpu->cpu != cpu)
- kvm_migrate_timers(vcpu);
- vcpu->cpu = cpu;
+ if (vcpu->cpu != cpu)
+ kvm_migrate_timers(vcpu);
+ vcpu->cpu = cpu;
=====
While attempting to use "virsh" commands this error occurs:
Oct 27 08:52:22 boron libvirtd: 08:52:23.000: 25851: error :
qemuDomainObjBeginJobWithDriver:453 : Timed out during operation: cannot
acquire state change lock
While the error state is present certain commands like "virsh shutdown"
and "virsh destroy" elicit that error message and fail to work
completely I found that if I kill the kvm guest processes
$ kill -9 $(ps ax | grep '/usr/bin/kvm.*guestname' | awk '{print $1}')
Then "virsh start guestname" would work.
I'm not certain that the number of VM guests is the issue, however, this
happens more frequently to me on systems with larger numbers of guests.
We have one with 14 guests and another with 53.
There seems to be a corresponding Red Hat bug at:
https://bugzilla.redhat.com/show_bug.cgi?id=676205
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libvirt-bin 0.8.8-1ubuntu6.5
ProcVersionSignature: Ubuntu 2.6.38-12.51-generic 2.6.38.8
Uname: Linux 2.6.38-12-generic x86_64
Architecture: amd64
Date: Thu Oct 27 09:41:23 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: Upgraded to natty on 2011-05-26 (153 days ago)
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/882579
Title:
Some Commands return: "Timed out during operation: cannot acquire
state change lock"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/882579/+subscriptions
More information about the Ubuntu-server-bugs
mailing list