Bug 1686615 - QEMU IOTEST 153 fails intermittently with "failed to get 'write' lock"
Summary: QEMU IOTEST 153 fails intermittently with "failed to get 'write' lock"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: 8.1
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 8.1
Assignee: Sergio Lopez
QA Contact: Tingting Mao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-07 20:38 UTC by Karen Mezick
Modified: 2019-11-06 07:13 UTC (History)
13 users (show)

Fixed In Version: qemu-kvm-4.0.0-3.module+el8.1.0+3265+26c4ed71
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-06 07:13:36 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Log file verification that iotest 153 now passes on rhel-av-8.1.0/master-4.0.0 branch (9.49 MB, text/plain)
2019-06-11 15:59 UTC, Karen Mezick
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3723 0 None None None 2019-11-06 07:13:56 UTC

Comment 4 Sergio Lopez 2019-03-14 10:45:16 UTC
I think I know what's happening here. Test 153 has a number of actions that must be executed sequentially in an specific order. But some of those actions are driven using "_send_qemu_cmd()" without specifying an expected return value. The absence of this return value, means this function writes to QMP without waiting for an answer. This means that, while unlikely, the next action can be executed while the first one didn't have yet an effect.

I suppose this behavior can be exacerbated on machines with limited resources or highly loaded.

I'll produce a patch to discuss this possibility upstream.

Thanks,
Sergio.

Comment 6 Sergio Lopez 2019-04-10 13:43:48 UTC
Upstream has a patch addressing this issue, included in qemu-4.0:

https://lists.nongnu.org/archive/html/qemu-devel/2019-03/msg05181.html

Comment 8 CongLi 2019-06-05 01:38:40 UTC
Hi Karen,

Could you please help verify this bug ?

Thanks.

Comment 11 Karen Mezick 2019-06-11 15:59:02 UTC
Created attachment 1579463 [details]
Log file verification that iotest 153 now passes on  rhel-av-8.1.0/master-4.0.0 branch

Comment 14 errata-xmlrpc 2019-11-06 07:13:36 UTC
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-2019:3723


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