Bug 668438 - Error shutting down domain: Timed out during operation: cannot acquire state change lock
Summary: Error shutting down domain: Timed out during operation: cannot acquire state ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 15
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-10 14:26 UTC by Andreas Schwab
Modified: 2012-06-07 00:10 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-07 00:10:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andreas Schwab 2011-01-10 14:26:00 UTC
libvirt-0.8.3-2.fc14

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 832, in destroy_domain
    vm.destroy()
  File "/usr/share/virt-manager/virtManager/domain.py", line 1355, in destroy
    self._backend.destroy()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 349, in destroy
    if ret == -1: raise libvirtError ('virDomainDestroy() failed', dom=self)
libvirtError: Timed out during operation: cannot acquire state change lock

Comment 1 S P Arif Sahari Wibowo 2011-01-17 18:22:38 UTC
Using command line gave similar error:

# virsh destroy myvm
error: Failed to destroy domain myvm
error: Timed out during operation: cannot acquire state change lock


libvirt-0.8.3-2.fc14.x86_64

Comment 2 Andreas Schwab 2011-02-15 11:05:11 UTC
Error starting domain: Timed out during operation: cannot acquire state change lock

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 878, in run_domain
    vm.startup()
  File "/usr/share/virt-manager/virtManager/domain.py", line 1321, in startup
    self._backend.create()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 333, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: Timed out during operation: cannot acquire state change lock

Comment 3 Fedora Admin XMLRPC Client 2011-09-22 17:58:30 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2011-09-22 18:02:09 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Jeff Layton 2011-10-10 15:21:21 UTC
Resetting this to f15 and setting to high/high sev/pri. I'm still getting this on f15 as well, even though from what I've read on random internet posts says that this was supposedly fixed upstream a year ago:

$ sudo virsh -d5 destroy rawhide
destroy: domain(optdata): rawhide
destroy: found option <domain>: rawhide
destroy: <domain> trying as domain NAME
error: Failed to destroy domain rawhide
error: Timed out during operation: cannot acquire state change lock

The domain in question here hung while rebooting for some reason, but I can't destroy it. I'm running a relatively recent version of libvirt:

$ rpm -q libvirt
libvirt-0.8.8-7.fc15.x86_64

Comment 6 Fedora Admin XMLRPC Client 2011-11-30 20:04:18 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora Admin XMLRPC Client 2011-11-30 20:04:31 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Fedora Admin XMLRPC Client 2011-11-30 20:08:36 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 9 Fedora Admin XMLRPC Client 2011-11-30 20:08:40 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Charlie Brady 2012-03-12 15:14:22 UTC
I'm seeing a similar problem when running "telinit 6" in a CentOS6 guest running in F15 x86_64.

[Has this component really just had six different owners, none of whom have any troubrleshooting contributions to make?]

Error shutting down domain: Timed out during operation: cannot acquire state change lock

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 66, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1158, in destroy
    self._backend.destroy()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 346, in destroy
    if ret == -1: raise libvirtError ('virDomainDestroy() failed', dom=self)
libvirtError: Timed out during operation: cannot acquire state change lock

[charlieb@localhost WIP]$ rpm -q libvirt
libvirt-0.8.8-7.fc15.x86_64
[charlieb@localhost WIP]$ uname -a
Linux localhost.localdomain 2.6.42.3-2.fc15.x86_64 #1 SMP Thu Feb 9 01:42:06 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[charlieb@localhost WIP]$

Comment 11 Charlie Brady 2012-03-12 15:44:34 UTC
Bug 676205 refers to many fixes to RHEL6.2. Which of those, if any, have been backported to Fedora15? Can libvirt 9.0 be used with F15?

Comment 13 Cole Robinson 2012-06-07 00:10:07 UTC
Sorry for the general lack of response, but since F15 is very close to EOL, closing this as WONTFIX. If anyone can still reliably reproduce this issue on F16 or higher, please reopen.


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