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 1164957

Summary: The default installed autofs.conf doesn't have default nfs protocol set to 4
Product: Red Hat Enterprise Linux 7 Reporter: Ian Kent <ikent>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED ERRATA QA Contact: XuWang <xuw>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: eguan, ovasik, xuw
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: autofs-5.0.7-48 Doc Type: Bug Fix
Doc Text:
Cause: The autofs configuration file has changed with the most recent changes but the RedHat customized version of this hasn't been copied during package install. Consequence: Currently the only difference between the default installed configuration is the entry which sets mount_nfs_default_protocol to 4. This can result in NFS version 4 mounts to incorrectly fail. Fix: Copy the RedHat customized configuration file into place during package install. Result: Installed configuration is as expected.
Story Points: ---
Clone Of:
: 1164958 (view as bug list) Environment:
Last Closed: 2015-03-05 13:24:28 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:
Bug Depends On:    
Bug Blocks: 1164958    

Description Ian Kent 2014-11-18 00:53:44 UTC
Description of problem:

The recent update to autofs fails to overwrite the default
installed /etc/autofs.conf with its customized one.

This results in the configuration entry mount_nfs_default_protocol
not being set to 4.

This can cause mount problems in NFSv4 only environments that 
that block NFSv3 via firewall rules.


Version-Release number of selected component (if applicable):
autofs-5.0.7-47.

How reproducible:
always.

Steps to Reproduce:
1. Install rhel-7.1 autofs.
2. Check mount_nfs_default_protocol in /etc/autofs.conf.

Actual results:
mount_nfs_default_protocol is commented out in /etc/autofs.conf
leading to mount_nfs_default_protocol = 3 being the setting used.

Expected results:
mount_nfs_default_protocol = 4 present in /etc/autofs.conf.

Comment 2 XuWang 2014-11-27 10:59:34 UTC
I communicated with Ian today, we should fix this bug in RHEL7.1.

Comment 4 XuWang 2014-12-19 06:23:41 UTC
autofs-5.0.7-47.el7's /etc/autofs.conf
#
#mount_nfs_default_protocol = 3
#
# append_options - append to global options instead of replace.
#

autofs-5.0.7-48.el7's /etc/autofs.conf
#                              the default automatically we need to
#                              set it in our configuration.
#
#mount_nfs_default_protocol = 3
mount_nfs_default_protocol = 4

also, got this like in autofs.SPEC of autofs-5.0.7-48.el7:
install -m 644 redhat/autofs.conf $RPM_BUILD_ROOT/etc/autofs.conf

So I think the status of this problem can be verified.

Comment 6 errata-xmlrpc 2015-03-05 13:24:28 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/RHBA-2015-0525.html