Bug 800735

Summary: NLM on IPv6 does not work as expected
Product: [Community] GlusterFS Reporter: Sachidananda Urs <sac>
Component: nfsAssignee: Vinayaga Raman <vraman>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: pre-releaseCC: divya, gluster-bugs, rwheeler
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-04 10:30:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: DP CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Program to test locks none

Description Sachidananda Urs 2012-03-07 05:51:40 UTC
Description of problem:

- Open a file and lock a certain region and write data.
- Allow another process to lock the file, it should block - blocks.
- Check data to ensure that it has blocked.
- Now unlock the region and the other process should lock and write data

Unlocks but the other process does not lock the file and write data. Process goes into D state.

The same exercise works on FUSE, local FS, and Kernel NFS.

Find the attached program.

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

glusterfs-3.3.0qa25

How reproducible:

Always. Program attached.

Comment 1 Sachidananda Urs 2012-03-07 05:52:19 UTC
Created attachment 568142 [details]
Program to test locks

Comment 2 Krishna Srinivas 2012-03-08 13:46:58 UTC
This is because pmap_getport does not support AF_INET6. doing "ifconfig eth0 del <ipv6 addr>" fixes the behavior seen above.

Need to investigate on IPv6 support for NLM, for now making it work on Ipv4 only for QA.

Comment 3 Anand Avati 2012-03-10 09:09:34 UTC
CHANGE: http://review.gluster.com/2909 (nlm: support ipv4 only) merged in master by Vijay Bellur (vijay)

Comment 4 Sachidananda Urs 2012-03-26 09:22:53 UTC
Works on latest code, but not sure whether to close this. Since the fix is not complete but just a work around for now.

Comment 5 Sachidananda Urs 2012-04-25 12:32:35 UTC
Kris/Divya can you confirm if this is documented. If so, I can mark this as verified.

Comment 6 Divya 2012-04-25 12:55:24 UTC
I have added it as Known Issue in Release Notes and it is available on the staging server at: http://documentation-stage.bne.redhat.com/docs/en-US/Red_Hat_Storage/2/html/2.0_Release_Notes/chap-Release_Notes-Known_Issues.html