Bug 1701016 - [RHGS] kernel: NFS: directory ... contains a readdir loop... The file: ... has duplicate cookie
Summary: [RHGS] kernel: NFS: directory ... contains a readdir loop... The file: ... h...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: nfs-ganesha
Version: rhgs-3.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Frank Filz
QA Contact: Manisha Saini
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-17 19:17 UTC by Andrew Robinson
Modified: 2019-04-24 11:32 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-23 02:23:27 UTC
Embargoed:


Attachments (Terms of Use)

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.


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