Bug 1497195
| Summary: | Calling virDomain.getMemoryStats and virDomain.diskErrors may block the entire process [rhel-7.3.z] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Oneata Mircea Teodor <toneata> |
| Component: | libvirt-python | Assignee: | Pavel Hrdina <phrdina> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.4 | CC: | chhu, dyuan, fromani, gveitmic, gwatson, jentrena, jherrman, jiyan, jsuchane, lcheng, lhuang, libvirt-maint, lmen, mkalinin, mtessun, nsoffer, pkrempa, weizhan, xuzhang |
| Target Milestone: | rc | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-python-2.0.0-2.el7_3.1 | Doc Type: | Bug Fix |
| Doc Text: |
When the storage of a guest hosted on a Red Hat Virtualization Hypervisor system became inaccessible, the host in some cases became unresponsive. This update fixes the behavior of the virDomainMemoryStats() function, which prevents the described problem from occurring.
|
Story Points: | --- |
| Clone Of: | 1496517 | Environment: | |
| Last Closed: | 2017-10-31 15:52:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1496517 | ||
| Bug Blocks: | |||
|
Description
Oneata Mircea Teodor
2017-09-29 12:53:21 UTC
According to bug 1497197 comment 5, I can reproduce this issue on libvirt-python-2.0.0-2.el7.x86_64. The log as follows: ********** 90:print time: 2017-10-18 11:38:13.668930 91:print time: 2017-10-18 11:38:14.669992 92:print time: 2017-10-18 11:38:15.671124 93:print time: 2017-10-18 11:38:16.672246 start memoryStats: 2017-10-18 11:38:16.675239 <---------- here the time libvirt: QEMU Driver error : Timed out during operation: cannot acquire state change lock (held by remoteDispatchConnectGetAllDomainStats) 94:print time: 2017-10-18 11:38:46.724654 Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner self.run() File "/usr/lib64/python2.7/threading.py", line 764, in run self.__target(*self.__args, **self.__kwargs) File "./test.py", line 19, in memory_stats dom.memoryStats() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1463, in memoryStats if ret is None: raise libvirtError ('virDomainMemoryStats() failed', dom=self) libvirtError: Timed out during operation: cannot acquire state change lock (held by remoteDispatchConnectGetAllDomainStats) 95:print time: 2017-10-18 11:38:47.726096 <-------------- here the time 96:print time: 2017-10-18 11:38:48.727195 97:print time: 2017-10-18 11:38:49.728284 98:print time: 2017-10-18 11:38:50.729395 ************* On libvirt-python-2.0.0-2.el7_3.1.x86_64, the print will finished without hang, so move to VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:3090 |