RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 961675 - nfsv4 local mount failed, version3 mount success.
Summary: nfsv4 local mount failed, version3 mount success.
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfs-utils
Version: 7.0
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-10 09:04 UTC by JianHong Yin
Modified: 2013-05-10 10:45 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-10 10:45:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description JianHong Yin 2013-05-10 09:04:11 UTC
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 JianHong Yin 2013-05-10 09:22:27 UTC
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 JianHong Yin 2013-05-10 09:25:06 UTC
use ipv4 127.0.0.1, get the same result.

Comment 4 JianHong Yin 2013-05-10 10:41:07 UTC
(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.