Bug 1241871 - Symlink mount fails for nfs-ganesha volume
Summary: Symlink mount fails for nfs-ganesha volume
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2015-08-28
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: nfs-ganesha
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: RHGS 3.1.1
Assignee: Jiffin
QA Contact: Apeksha
URL:
Whiteboard:
Depends On:
Blocks: 1188184 1216951 1251815 1252410 1256227 1256616 1257007 1257014
TreeView+ depends on / blocked
 
Reported: 2015-07-10 09:46 UTC by Apeksha
Modified: 2015-10-05 07:19 UTC (History)
12 users (show)

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.
Clone Of:
: 1252410 1257014 (view as bug list)
Environment:
Last Closed: 2015-10-05 07:19:43 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1845 0 normal SHIPPED_LIVE Moderate: Red Hat Gluster Storage 3.1 update 2015-10-05 11:06:22 UTC

Description Apeksha 2015-07-10 09:46:42 UTC
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 11:09:12 UTC
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 14:09:48 UTC
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 21:17:59 UTC
Doc text is edited. Please sign off to be included in Known Issues.

Comment 7 Meghana 2015-07-27 09:14:26 UTC
Doc text looks good to me

Comment 8 Kaleb KEITHLEY 2015-08-04 10:35:20 UTC
stretch goal for 3.1.1

Comment 9 Jiffin 2015-08-11 11:12:47 UTC
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 05:33:36 UTC
The fix in ganesha has posted in https://review.gerrithub.io/#/c/244043/

Comment 14 Apeksha 2015-08-28 12:11:23 UTC
Verified on nfs-ganesha-2.2.0-6.el7rhgs.x86_64

Comment 15 Divya 2015-09-28 06:14:53 UTC
Jiffin,

Could you review and sign-off the edited doc text.

Comment 16 Jiffin 2015-09-28 08:44:48 UTC
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 09:21:02 UTC
Updated the doc text with a minor edit.

Comment 18 Jiffin 2015-09-28 10:27:35 UTC
Doc text looks good to me.

Comment 20 errata-xmlrpc 2015-10-05 07:19:43 UTC
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.