Bug 961675 - nfsv4 local mount failed, version3 mount success.
nfsv4 local mount failed, version3 mount success.
Status: CLOSED INSUFFICIENT_DATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfs-utils (Show other bugs)
7.0
All Linux
unspecified Severity unspecified
: rc
: ---
Assigned To: Steve Dickson
Red Hat Kernel QE team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-10 05:04 EDT by Yin.JianHong
Modified: 2013-05-10 06:45 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-05-10 06:45:58 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)

  None (edit)
Description Yin.JianHong 2013-05-10 05:04:11 EDT
Description of problem:
nfsv4 local mount failed.

Version-Release number of selected component (if applicable):
nfs-utils-1.2.6-11.el7.x86_64 3.7.0-0.36.el7.x86_64
nfs-utils-1.2.6-6.fc17.x86_64 3.8.11-100.fc17.x86_64

How reproducible:
always

Steps to Reproduce:
1.mkdir /exports /exports_refer
2.echo "/exports_refer	*(rw,no_root_squash)" > /etc/exports
  echo "/exports	*(rw,no_root_squash,refer=/exports_refer@[${IPV6}])" >> /etc/exports
3.service nfs restart
  mount -t nfs4 $serv:/exports /mnt/testarea
  mount -vvv -t nfs4 $serv:/exports /mnt/testarea
  
Actual results:
mount failed

Expected results:
mount success

Additional info:
In other machine nfsv4 can mount success, but local failed.
Comment 2 Yin.JianHong 2013-05-10 05:22:27 EDT
1. when selinux on, the mount verbose info:
drwxr-xr-x. 2 root root 4096 May 10 17:19 /exports
drwxr-xr-x. 2 root root 4096 May 10 17:19 /exports_refer

Redirecting to /bin/systemctl restart  nfs.service

/exports_refer	<world>
/exports      	<world>

mount.nfs4: timeout set for Fri May 10 17:21:26 2013
mount.nfs4: trying text-based options 'addr=::1,clientaddr=::1'
mount.nfs4: mount(2): Input/output error
mount.nfs4: mount system call failed


2. when off selinux, the mount verbose info:
drwxr-xr-x. 2 root root 4096 May 10 17:21 /exports
drwxr-xr-x. 2 root root 4096 May 10 17:21 /exports_refer
Redirecting to /bin/systemctl restart  nfs.service
/exports_refer	<world>
/exports      	<world>
mount.nfs4: timeout set for Fri May 10 17:23:08 2013
mount.nfs4: trying text-based options 'addr=::1,clientaddr=::1'
mount.nfs4: mount(2): Permission denied
mount.nfs4: access denied by server while mounting localhost:/exports
Comment 3 Yin.JianHong 2013-05-10 05:25:06 EDT
use ipv4 127.0.0.1, get the same result.
Comment 4 Yin.JianHong 2013-05-10 06:41:07 EDT
(In reply to comment #0)
> Description of problem:
> nfsv4 local mount failed.
> 
> Version-Release number of selected component (if applicable):
> nfs-utils-1.2.6-11.el7.x86_64 3.7.0-0.36.el7.x86_64
> nfs-utils-1.2.6-6.fc17.x86_64 3.8.11-100.fc17.x86_64
> 
> How reproducible:
> always
> 
> Steps to Reproduce:
> 1.mkdir /exports /exports_refer
> 2.echo "/exports_refer	*(rw,no_root_squash)" > /etc/exports
>   echo "/exports	*(rw,no_root_squash,refer=/exports_refer@[${IPV6}])" >>
> /etc/exports
> 3.service nfs restart
>   mount -t nfs4 $serv:/exports /mnt/testarea
>   mount -vvv -t nfs4 $serv:/exports /mnt/testarea
>   
> Actual results:
> mount failed
> 
> Expected results:
> mount success
> 
> Additional info:

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