Bug 1717076

Summary: nfs-ganesha: Release state lock in case of error in LOCK fop
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Soumya Koduri <skoduri>
Component: nfs-ganeshaAssignee: Frank Filz <ffilz>
Status: CLOSED ERRATA QA Contact: Manisha Saini <msaini>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.5CC: dang, ffilz, grajoria, jthottan, mbenjamin, rhs-bugs, skoduri, storage-qa-internal, vdas
Target Milestone: ---   
Target Release: RHGS 3.5.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: nfs-ganesha-2.7.3-4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-30 12:15:39 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:
Bug Depends On:    
Bug Blocks: 1696809    

Description Soumya Koduri 2019-06-04 16:20:31 UTC
Description of problem:

While processing LOCK operation, if we do not find appropriate fd (because of any PERM/OPEN issues), we do not unlock state lock. This may result in nfs-ganesha server being unresponsive.

This issue is fixed already in upstream. This bug is to backport the fix to dowsntream

https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/430415

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 6 Manisha Saini 2019-06-24 09:35:27 UTC
Verified this BZ with 

# rpm -qa | grep ganesha
nfs-ganesha-gluster-2.7.3-4.el7rhgs.x86_64
glusterfs-ganesha-6.0-6.el7rhgs.x86_64
nfs-ganesha-2.7.3-4.el7rhgs.x86_64

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.7 Beta (Maipo)


Ran file locking test,cthon lock test,pynfs(v4.0,v4.1) on v3,v4.1 mount. More lock related tests will be run as part of regression cases.
Moving this BZ to verified state.

Locking test failure reported on v3 mount due to selinux issue - https://bugzilla.redhat.com/show_bug.cgi?id=1722392

Comment 8 errata-xmlrpc 2019-10-30 12:15:39 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/RHEA-2019:3252