Bug 1386236
Summary: | Contents of subdir v3 mount can't be listed after failover. | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Shashank Raj <sraj> |
Component: | nfs-ganesha | Assignee: | Jiffin <jthottan> |
Status: | CLOSED ERRATA | QA Contact: | Arthy Loganathan <aloganat> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rhgs-3.2 | CC: | jthottan, kkeithle, mzywusko, ndevos, rcyriac, rhinduja, rhs-bugs, sbhaloth, skoduri, storage-qa-internal |
Target Milestone: | --- | ||
Target Release: | RHGS 3.2.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | nfs-ganesha-2.4.1-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-23 06:24:28 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: | 1351528 |
Description
Shashank Raj
2016-10-18 13:01:40 UTC
The issue is seen only in v3 mount.(I guess, it should be reproduced in FSAL_VFS as well, I didn't try it) Steps to reproduce : export same gluster volume via two different servers say server1 and server2 mount the volume using server1 and create a subdir inside it now mount the volume on server2 using that subdir and then perform ls on the mount point which throws the same error as mentioned above Initial RCA : In nfs3_readdirplus() performs a lookup on parent directory which returns invalid error for parent. In mdc_lookup, ganehsa is trying to read parent entry from cache(but it is not cached before) which end up in this failure nfs3_readdirplus->fsal_lookupp->mdcache_lookup->mdc_lookup->mdcache_locate_keyed (here value of name is passed as "..") At mdcache_locate_keyed when try to find cache entry using key results in EINVAL (valu of key->kv is NULL) The patch got merged upstream https://review.gerrithub.io/#/c/299022/ and available in latest nfs-ganesha rpms Executed the tests with both nfs v3 and v4 mount combinations and is passing now. Verified the fix in build, nfs-ganesha-2.4.1-1.el7rhgs.x86_64 glusterfs-ganesha-3.8.4-5.el7rhgs.x86_64 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://rhn.redhat.com/errata/RHEA-2017-0493.html |