Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1211575

Summary: Hanging FDs left over by dmeventd
Product: Red Hat Enterprise Linux 6 Reporter: Nenad Peric <nperic>
Component: lvm2Assignee: Marian Csontos <mcsontos>
lvm2 sub component: dmeventd (RHEL6) QA Contact: cluster-qe <cluster-qe>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, cmarthal, heinzm, jbrassow, msnitzer, prajnoha, prockai, thornber, zkabelac
Version: 6.7   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lvm2-2.02.140-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-11 01:16:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nenad Peric 2015-04-14 11:03:25 UTC
Description of problem:

A lot of dmeventd FDs (/dev/mapper/control) remain open after running a test suite. 

Version-Release number of selected component (if applicable):

lvm2-2.02.118-1.el6.x86_64

How reproducible:

Everytime

Steps to Reproduce:

No real simple steps to reproduce for now (will look into it). 
running revolution_9 test suite causes dmeventd to behave this way easilly. 
The problem was ran into while testing the patch for Bug 1130245.

Test which was ran:

/revolution_9 -i 2 -j 1 -w EXT -F -o node-name

Actual results:

Hundreds (in my test 390) open FDs left.

Expected results:

extraneous FDs should be cleaned up and removed.

Comment 2 Nenad Peric 2015-04-14 13:39:10 UTC
Narrowed down to one test which generates these hanging FDs:

./revolution_9 -i 2 -j 1 -w EXT -F -o tardis-02 -e kill_random_legs 

So creating raid devices, having some I/O and killing off legs causes this issue.

Comment 3 Peter Rajnoha 2015-04-14 13:45:59 UTC
(In reply to Nenad Peric from comment #2)
> Narrowed down to one test which generates these hanging FDs:
> 
> ./revolution_9 -i 2 -j 1 -w EXT -F -o tardis-02 -e kill_random_legs 
> 
> So creating raid devices, having some I/O and killing off legs causes this
> issue.

Can you paste exact commands that were run?

Comment 4 Jonathan Earl Brassow 2015-04-15 16:15:05 UTC
that may be difficult, as the test is a looping test designed to stress LVM RAID by doing I/O, killing legs, checking for survival, reviving the devices, and repeating - all while doing 'lvs', 'pvs', and other operations.

It would be nice to know which commands are the ones resulting in the stray FDs.

Comment 5 Marian Csontos 2015-10-16 12:34:12 UTC
Zdenek has made a lot of changes recently. This may well be fixed. I will retest with upstream and either close it or get it fixed.

Comment 6 Zdenek Kabelac 2015-10-29 12:36:58 UTC
New dmevent in lvm2 2.02.133 handles resources in a better way.
Previously there used to be a race on access & close of control fd which may have lead to desctriptor leakage.

Comment 10 Corey Marthaler 2016-02-22 17:41:18 UTC
Marking verified in the latest rpms. I ran many iterations of this test case and never saw more than two or three open FDs during or after the test completed.


2.6.32-615.el6.x86_64
lvm2-2.02.141-2.el6    BUILT: Wed Feb 10 07:49:03 CST 2016
lvm2-libs-2.02.141-2.el6    BUILT: Wed Feb 10 07:49:03 CST 2016
lvm2-cluster-2.02.141-2.el6    BUILT: Wed Feb 10 07:49:03 CST 2016
udev-147-2.71.el6    BUILT: Wed Feb 10 07:07:17 CST 2016
device-mapper-1.02.115-2.el6    BUILT: Wed Feb 10 07:49:03 CST 2016
device-mapper-libs-1.02.115-2.el6    BUILT: Wed Feb 10 07:49:03 CST 2016
device-mapper-event-1.02.115-2.el6    BUILT: Wed Feb 10 07:49:03 CST 2016
device-mapper-event-libs-1.02.115-2.el6    BUILT: Wed Feb 10 07:49:03 CST 2016
device-mapper-persistent-data-0.6.2-0.1.rc1.el6    BUILT: Wed Feb 10 09:52:15 CST 2016
cmirror-2.02.141-2.el6    BUILT: Wed Feb 10 07:49:03 CST 2016

Comment 12 errata-xmlrpc 2016-05-11 01:16:30 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://rhn.redhat.com/errata/RHBA-2016-0964.html