Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1241871 - Symlink mount fails for nfs-ganesha volume
Symlink mount fails for nfs-ganesha volume
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: nfs-ganesha (Show other bugs)
3.1
x86_64 Linux
high Severity medium
: ---
: RHGS 3.1.1
Assigned To: Jiffin
Apeksha
: ZStream
Depends On:
Blocks: 1188184 1216951 1251815 1252410 1256227 1256616 1257007 1257014
  Show dependency treegraph
 
Reported: 2015-07-10 05:46 EDT by Apeksha
Modified: 2015-10-05 03:19 EDT (History)
12 users (show)

See Also:
Fixed In Version: nfs-ganesha-2.2.0-6
Doc Type: Bug Fix
Doc Text:
Previously, if the mount path for NFSv3 contained symbolic links, then NFSv3 mount failed. With this fix, NFS server resolves the symbolic links in the mount path before sending to the client, hence mount will succeed.
Story Points: ---
Clone Of:
: 1252410 1257014 (view as bug list)
Environment:
Last Closed: 2015-10-05 03:19:43 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1845 normal SHIPPED_LIVE Moderate: Red Hat Gluster Storage 3.1 update 2015-10-05 07:06:22 EDT

  None (edit)
Description Apeksha 2015-07-10 05:46:42 EDT
Description of problem:
Symlink mount fails for nfs-ganesha volume

Version-Release number of selected component (if applicable):
nfs-ganesha-gluster-2.2.0-3.el6rhs.x86_64
glusterfs-3.7.1-7.el6rhs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Create a ganesha volume say nfsvol and enable ganesha on it.
2. mount volume nfsvol at /mnt/nfsvol
3. mkdir /mnt/nfsvol/subdir
4. create symlink ln -s /mnt/nfsvol/subdir /mnt/nfsvol/symlink-subdir
umount
5. now mount using symlink volname/symlink-subdir - it fails

[root@vm8 ~]# mount -t nfs -o vers=3 10.70.46.59:/testvol/symlink-subdir /mnt/nfs1436550075.6
mount.nfs: an incorrect mount option was specified

Actual results: Symlink mount gives an error

Expected results: Should be able to do a symlink mount


Additional info:
Comment 2 Soumya Koduri 2015-07-10 07:09:12 EDT
NFSv4 Mount of symlink works but there seem to be an issue with only NFSv3 mount.
Investigating the same.

[root@skoduri export1]# mount -t nfs -o vers=3 192.168.122.205:/vol1/dir1_link /tmp/mnt
mount.nfs: an incorrect mount option was specified
[root@skoduri export1]# mount -t nfs -o vers=4 192.168.122.205:/vol1/dir1_link /tmp/mnt
[root@skoduri export1]#
Comment 3 Soumya Koduri 2015-07-10 10:09:48 EDT
nfs-ganesha doesn't resolve symlinks during mount. NFSv4 clients seem to be resolving those symlink filehandle but that is not the case with NFSv3.

Based on the discussions we had within the team (& also as per http://docstore.mik.ua/orelly/networking_2ndEd/nfs/ch06_04.htm), we have agreed that nfs server should resolve the symlinks before returning the filehandle during mount. 
This needs change in both Gluster and NFS-ganesha source code.
Comment 6 monti lawrence 2015-07-22 17:17:59 EDT
Doc text is edited. Please sign off to be included in Known Issues.
Comment 7 Meghana 2015-07-27 05:14:26 EDT
Doc text looks good to me
Comment 8 Kaleb KEITHLEY 2015-08-04 06:35:20 EDT
stretch goal for 3.1.1
Comment 9 Jiffin 2015-08-11 07:12:47 EDT
Gluster side fix got posted in http://review.gluster.org/#/c/11883/. Ganesha side fix requires this patch to be mergeed
Comment 13 Jiffin 2015-08-26 01:33:36 EDT
The fix in ganesha has posted in https://review.gerrithub.io/#/c/244043/
Comment 14 Apeksha 2015-08-28 08:11:23 EDT
Verified on nfs-ganesha-2.2.0-6.el7rhgs.x86_64
Comment 15 Divya 2015-09-28 02:14:53 EDT
Jiffin,

Could you review and sign-off the edited doc text.
Comment 16 Jiffin 2015-09-28 04:44:48 EDT
Needs certain modification to Doc text.

Previously , if the mount path for NFSv3 contained symbolic links, then NFSv3 mount failed. With this fix, NFS server resolves the symbolic links in the mount path before sending to client, hence mount will succeed.
Comment 17 Divya 2015-09-28 05:21:02 EDT
Updated the doc text with a minor edit.
Comment 18 Jiffin 2015-09-28 06:27:35 EDT
Doc text looks good to me.
Comment 20 errata-xmlrpc 2015-10-05 03:19:43 EDT
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/RHSA-2015-1845.html

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