Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1458504

Summary: mount.nfs: NFSv4 specified mount need to start negotiation with v4.1 the same as the default NFS mount protocol
Product: Red Hat Enterprise Linux 7 Reporter: Yongcheng Yang <yoyang>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Yongcheng Yang <yoyang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.4CC: bfields, eguan, jiyin, steved, swhiteho, tlavigne, yoyang
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nfs-utils-1.3.0-0.48.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 19:50:23 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:

Comment 14 Yongcheng Yang 2017-06-16 03:11:27 UTC
Moving to VERIFIED according to test logs of comment #13 above.

Comment 15 Steve Dickson 2017-06-19 15:35:52 UTC
Change back to ON_QA since I found a bug in the nfsmount.conf was being processed.

Comment 16 Steve Dickson 2017-06-19 16:11:23 UTC
It the upcoming build -48 fixes the problem of setting Defaultvers=4.0 /etc/nfsmount.conf. The problem is the mount is trying 4.1 not 4.0

Comment 17 Yongcheng Yang 2017-06-20 01:59:07 UTC
(In reply to Steve Dickson from comment #16)
> It the upcoming build -48 fixes the problem of setting Defaultvers=4.0
> /etc/nfsmount.conf. The problem is the mount is trying 4.1 not 4.0

Thanks for your reminder!

Have verified this problem is already fixed in nfs-utils-1.3.0-0.48.el7.
Moving to VERIFIED again.

### Reproduced on version -47 ###
-----------------------------------------------------------------------------
[root@ ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.47.el7.x86_64
[root@ ~]# grep ^[^#] /etc/nfsmount.conf
[ NFSMount_Global_Options ]
 Defaultvers=4.0
[root@ ~]# mount 127.0.0.1:/export_test/ /mnt/mnt_test/ -vvv
mount.nfs: timeout set for Mon Jun 19 21:53:58 2017
mount.nfs: trying text-based options 'vers=4.1,addr=127.0.0.1,clientaddr=127.0.0.1'
[root@ ~]# nfsstat -m
/mnt/mnt_test from 127.0.0.1:/export_test
 Flags:	rw,relatime,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=127.0.0.1,local_lock=none,addr=127.0.0.1

[root@ ~]# umount /mnt/mnt_test/

### Verified on version -48 ###
-----------------------------------------------------------------------------
[root@ ~]# rpm -Uvh nfs-utils-1.3.0-0.48.el7.x86_64.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:nfs-utils-1:1.3.0-0.48.el7       ################################# [ 50%]
Cleaning up / removing...
   2:nfs-utils-1:1.3.0-0.47.el7       ################################# [100%]
[root@ ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.48.el7.x86_64
[root@ ~]# grep ^[^#] /etc/nfsmount.conf
[ NFSMount_Global_Options ]
 Defaultvers=4.0
[root@ ~]# mount 127.0.0.1:/export_test/ /mnt/mnt_test/ -vvv
mount.nfs: timeout set for Mon Jun 19 21:54:27 2017
mount.nfs: trying text-based options 'vers=4.0,addr=127.0.0.1,clientaddr=127.0.0.1'
[root@ ~]# nfsstat -m 
/mnt/mnt_test from 127.0.0.1:/export_test
 Flags:	rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=127.0.0.1,local_lock=none,addr=127.0.0.1

[root@ ~]# umount /mnt/mnt_test/

Will upate testcase to cover this issue now.

Comment 18 errata-xmlrpc 2017-08-01 19:50:23 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://access.redhat.com/errata/RHBA-2017:2233