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 1559295 - autofs: can't mount nfs vers=2
Summary: autofs: can't mount nfs vers=2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: autofs
Version: 6.10
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Ian Kent
QA Contact: xiaoli feng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-22 08:43 UTC by xiaoli feng
Modified: 2018-06-19 05:22 UTC (History)
5 users (show)

Fixed In Version: autofs-5.0.5-138.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-19 05:22:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch - fix NFS version mask usage (2.34 KB, patch)
2018-03-23 07:05 UTC, Ian Kent
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:1917 0 None None None 2018-06-19 05:22:41 UTC

Description xiaoli feng 2018-03-22 08:43:55 UTC
Description of problem:
Specify nfs version in /etc/auto.master. It works when vers=3 or vers=4. But failed for vers=2.0.

server side:

#Provide nfs server
[root@kvm-guest-06 ~]# cat /etc/exports 
/exports  *(rw,no_root_squash)

client side:
[root@kvm-02-guest02 ~]# cat /etc/auto.master 
/autofs /etc/nfs.misc vers=2
[root@kvm-02-guest02 ~]# cat /etc/nfs.misc 
nfs  nfsserver:/exports


Version-Release number of selected component (if applicable):

autofs-5.0.5-137.el6.x86_64
How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Ian Kent 2018-03-23 01:15:00 UTC
(In reply to xiaoli feng from comment #0)
> Description of problem:
> Specify nfs version in /etc/auto.master. It works when vers=3 or vers=4. But
> failed for vers=2.0.

Oops, I think I added a RHEL-7 patch to RHEL-6 that I
shouldn't have for bug 1463004.

* Mon Feb 05 2018 Ian Kent <ikent> - 5.0.5-135
- bz1463004 - Server availability probe broke tunneling nfs via localhost
  - remove some redundant rpc library code.
  - add port parameter to rpc_ping().
  - dont probe NFSv2 by default.
  - add version parameter to rpc_ping().
- Resolves: rhbz#1463004

Fortunately the "dont probe NFSv2 by default" patch is
a one line change so I should be able to drop it without
any side effects.

I'll have a look at it and make a test build.

Comment 4 Ian Kent 2018-03-23 02:15:44 UTC
(In reply to Ian Kent from comment #3)
> (In reply to xiaoli feng from comment #0)
> > Description of problem:
> > Specify nfs version in /etc/auto.master. It works when vers=3 or vers=4. But
> > failed for vers=2.0.
> 
> Oops, I think I added a RHEL-7 patch to RHEL-6 that I
> shouldn't have for bug 1463004.

It looks to me like this change should not cause this problem.
It looks like it should work but we can see that the NFS version
parameter isn't right:
get_nfs_info: called with host nfsserver(10.16.69.154) proto 6 version 0x0

I think version above should be 0x10.

Ian

Comment 5 Ian Kent 2018-03-23 07:05:07 UTC
Created attachment 1411967 [details]
Patch - fix NFS version mask usage

Found it!

Comment 6 Ian Kent 2018-03-23 07:21:26 UTC
Could you try the scratch build located here please:
http://download.eng.pek2.redhat.com/brew_scratch/scratch/ikent/task_15622062/

Comment 9 xiaoli feng 2018-03-23 08:14:50 UTC
(In reply to Ian Kent from comment #6)
> Could you try the scratch build located here please:
> http://download.eng.pek2.redhat.com/brew_scratch/scratch/ikent/task_15622062/

It works fine from my test.

Thanks.

Comment 12 Ian Kent 2018-03-23 09:06:11 UTC
(In reply to xiaoli feng from comment #9)
> (In reply to Ian Kent from comment #6)
> > Could you try the scratch build located here please:
> > http://download.eng.pek2.redhat.com/brew_scratch/scratch/ikent/task_15622062/
> 
> It works fine from my test.

Great, now all we need is acks!

Comment 27 errata-xmlrpc 2018-06-19 05:22:12 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-2018:1917


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