Bug 1701016

Summary: [RHGS] kernel: NFS: directory ... contains a readdir loop... The file: ... has duplicate cookie
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Andrew Robinson <anrobins>
Component: nfs-ganeshaAssignee: Frank Filz <ffilz>
Status: CLOSED NOTABUG QA Contact: Manisha Saini <msaini>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.4CC: amukherj, dang, ffilz, grajoria, jthottan, mbenjamin, rhs-bugs, sankarshan, skoduri, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-23 02:23:27 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 Andrew Robinson 2019-04-17 19:17:30 UTC
Description of problem:

The customer says directory listing under nfs-ganesha mount of gluster volume shows incorrect entries. He then points to these error messages:

root@n-gpx1-c201 ganesha-logs]# sudo cat /var/log/messages |grep NFS
Apr 17 19:57:45 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor.  The file: RTLN7000000000315002_20190319083633.mpg-1553024701 has duplicate cookie 648048
Apr 17 19:57:45 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor.  The file: RTLN7000000000315002_20190319083633.mpg-1553024701 has duplicate cookie 648048
Apr 17 19:59:10 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor.  The file: RTLN7000000000330313_20190416045106.mpg-1555426502 has duplicate cookie 922035
Apr 17 19:59:10 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor.  The file: RTLN7000000000330313_20190416045106.mpg-1555426502 has duplicate cookie 922035
Apr 17 19:59:36 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor.  The file: RTLN7000000000283166_20190118040019.xml-1547824201 has duplicate cookie 15894
Apr 17 19:59:36 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor.  The file: RTLN7000000000283166_20190118040019.xml-1547824201 has duplicate cookie 15894



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

RHGS 3.4

glusterfs-3.12.2-40.el7rhgs.x86_64
glusterfs-api-3.12.2-40.el7rhgs.x86_64
glusterfs-client-xlators-3.12.2-40.el7rhgs.x86_64
glusterfs-cli-3.12.2-40.el7rhgs.x86_64
glusterfs-events-3.12.2-40.el7rhgs.x86_64
glusterfs-fuse-3.12.2-40.el7rhgs.x86_64
glusterfs-ganesha-3.12.2-40.el7rhgs.x86_64
glusterfs-geo-replication-3.12.2-40.el7rhgs.x86_64
glusterfs-libs-3.12.2-40.el7rhgs.x86_64
glusterfs-rdma-3.12.2-40.el7rhgs.x86_64
glusterfs-server-3.12.2-40.el7rhgs.x86_64


nfs-ganesha-2.5.5-11.el7rhgs.x86_64
nfs-ganesha-gluster-2.5.5-11.el7rhgs.x86_64


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Daniel Gryniewicz 2019-04-22 15:55:42 UTC
The client has readdir chunking on.  This is not a supported setup.  They should turn it off by uncommenting #Dir_Chunk = 0;

Comment 7 Daniel Gryniewicz 2019-04-23 17:32:22 UTC
In /etc/ganesha/ganesha.conf

Disabling readdir chunking will make readdir work again.  Chunking was known to be broken in that release, which is why it's not supported.