Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1410389 - [NFS-Ganesha] Acquiring locks in the same data range of the file should fail
Summary: [NFS-Ganesha] Acquiring locks in the same data range of the file should fail
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: nfs-ganesha
Version: rhgs-3.2
Hardware: x86_64
OS: Linux
Target Milestone: ---
: RHGS 3.2.0
Assignee: Soumya Koduri
QA Contact: Arthy Loganathan
Depends On:
Blocks: 1351528
TreeView+ depends on / blocked
Reported: 2017-01-05 11:46 UTC by Arthy Loganathan
Modified: 2017-03-23 06:28 UTC (History)
8 users (show)

Fixed In Version: nfs-ganesha-2.4.1-6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-03-23 06:28:28 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:0493 0 normal SHIPPED_LIVE Red Hat Gluster Storage 3.2.0 nfs-ganesha bug fix and enhancement update 2017-03-23 09:19:13 UTC

Description Arthy Loganathan 2017-01-05 11:46:57 UTC
Description of problem:
If the user tries to acquire a lock in the same data range for which a lock is already exists, then the second lock should fail.

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

How reproducible:

Steps to Reproduce:
1. Create a file of few KB in the nfs-ganesha mount point.
2. From one client, acquire a lock for the file in specific data range.
3. From second client, try to acquire a lock for the same file in the same data range.

Actual results:
It allows to acquire both the locks.

Expected results:
It should not let other locks in the same data range to acquire while a lock is already held on the file.

Additional info:

Comment 2 Soumya Koduri 2017-01-05 11:51:01 UTC
There is an issue with processing conflicting locks in FSAL_GLUSTER layer. Fix posted upstream for review - https://review.gerrithub.io/#/c/308343

This doesn't seem to be an issue at least from the code. I see similar bug in V2.3 code-path as well

Comment 3 Soumya Koduri 2017-01-05 11:51:44 UTC
> This doesn't seem to be an issue at least from the code. I see similar bug
> in V2.3 code-path as well

Sorry I meant this doesn't seem to be regression from earlier nfs-ganesha releases.

Comment 5 Arthy Loganathan 2017-01-27 08:52:25 UTC
Tested by mounting volume with 2 different Virtual Ips on 2 clinets and tried to acquire lock in same data range from both clients. As expected he second lock is not acquired.

Verified the fix in build,

Comment 7 errata-xmlrpc 2017-03-23 06:28:28 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.


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