Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 249758

Summary: locking in 5.1 breaks rgmanager
Product: Red Hat Enterprise Linux 5 Reporter: Lon Hohberger <lhh>
Component: rgmanagerAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.1CC: cluster-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0580 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-07 16:46:25 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:
Attachments:
Description Flags
Fix
none
Smaller patch. none

Description Lon Hohberger 2007-07-26 20:27:19 UTC
Description of problem:

The changes to libdlm from 5.0->5.1 break rgmanager.  This is most likely due to
rgmanager relying on a particular errant behavior in libdlm (where either
dlm_dispatch or dlm_ls_lock would return -1 on convert w/ no-queue).

The correction is to simply have rgmanager always look at the lock status prior
to accepting a lock grant.

This is easily reproducible with the locktest program in src/clulib.

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

How reproducible: 100%

Steps to Reproduce:
1. run locktest on one node
2. run locktest on another node
  
Actual results: Both locktest acquire an EX lock, or appear to.

Expected results: One locktest acquires an EX lock; the other hangs.

Additional info:

Comment 1 Lon Hohberger 2007-07-26 20:27:19 UTC
Created attachment 160070 [details]
Fix

Comment 2 Lon Hohberger 2007-07-26 20:30:08 UTC
Created attachment 160071 [details]
Smaller patch.

Comment 3 Lon Hohberger 2007-07-26 20:49:15 UTC
Patch in head RHEL51 RHEL5

Comment 7 errata-xmlrpc 2007-11-07 16:46:25 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0580.html