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 1596154

Summary: Automount hangs when accessing a local NFS exported share
Product: Red Hat Enterprise Linux 7 Reporter: Pierguido Lambri <plambri>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED DUPLICATE QA Contact: Filesystem QE <fs-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.5   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-28 10:47:04 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:

Description Pierguido Lambri 2018-06-28 10:38:27 UTC
Description of problem:
When accessing a local NFS share through autofs, the mount hangs.

Version-Release number of selected component (if applicable):
kernel-3.10.0-862.6.3.el7.x86_64
autofs-5.0.7-83.el7.x86_64

How reproducible:
Always


Steps to Reproduce:
1. Configure NFS exports like:

/usr/people   *(rw,async)
/usr/people/test1       *(rw,async)
/usr/people/test2       *(rw,async)

2. Have autofs configured to access these shares through auto.net or just using 
   the default /net facility

# cat /etc/auto.master
...
/net    -hosts
...
/hosts /etc/auto.net  intr,proto=tcp,rw
+auto.master

2. Try to access locally on the same server one of the shares test1 or test2 through /net or /hosts

# cd /net/localhost/usr/people
# cd test1

Actual results:
The mount to test1 hangs

Expected results:
The mount should be successful 

Additional info:
This is the last automount debug messages:

Jun 28 10:53:50 rhel7-test3 automount[15709]: handle_packet: type = 5
Jun 28 10:53:50 rhel7-test3 automount[15709]: handle_packet_missing_direct: token 3, name /hosts/192.168.122.38/usr/people/test2, request pid 15665
Jun 28 10:53:50 rhel7-test3 automount[15709]: attempting to mount entry /hosts/192.168.122.38/usr/people/test2
Jun 28 10:53:50 rhel7-test3 automount[15709]: lookup_mount: lookup(program): /hosts/192.168.122.38/usr/people/test2 -> -intr,proto=tcp,rw,fstype=nfs,hard,intr,nodev,nosuid 192.168.122.38:/usr/people/test2
Jun 28 10:53:50 rhel7-test3 automount[15709]: parse_mount: parse(sun): expanded entry: -intr,proto=tcp,rw,fstype=nfs,hard,intr,nodev,nosuid 192.168.122.38:/usr/people/test2
Jun 28 10:53:50 rhel7-test3 automount[15709]: parse_mount: parse(sun): gathered options: intr,proto=tcp,rw,fstype=nfs,hard,intr,nodev,nosuid
Jun 28 10:53:50 rhel7-test3 automount[15709]: sun_mount: parse(sun): mounting root /hosts/192.168.122.38/usr/people/test2, mountpoint /hosts/192.168.122.38/usr/people/test2, what 192.168.122.38:/usr/people/test2, fstype nfs, options intr,p
roto=tcp,rw,hard,intr,nodev,nosuid
Jun 28 10:53:50 rhel7-test3 automount[15709]: mount_mount: mount(nfs): root=/hosts/192.168.122.38/usr/people/test2 name=/hosts/192.168.122.38/usr/people/test2 what=192.168.122.38:/usr/people/test2, fstype=nfs, options=intr,proto=tcp,rw,har
d,intr,nodev,nosuid
Jun 28 10:53:50 rhel7-test3 automount[15709]: mount_mount: mount(nfs): nfs options="intr,proto=tcp,rw,hard,intr,nodev,nosuid", nobind=0, nosymlink=0, ro=0
Jun 28 10:53:50 rhel7-test3 automount[15709]: mount_mount: mount(nfs): calling mkdir_path /hosts/192.168.122.38/usr/people/test2
Jun 28 10:53:50 rhel7-test3 automount[15709]: mount_mount: mount(nfs): /hosts/192.168.122.38/usr/people/test2 is local, attempt bind mount
Jun 28 10:53:50 rhel7-test3 automount[15709]: mount_mount: mount(bind): calling mkdir_path /hosts/192.168.122.38/usr/people/test2
Jun 28 10:53:50 rhel7-test3 automount[15709]: mount_mount: mount(bind): calling mount --bind -s  -o defaults /usr/people/test2 /hosts/192.168.122.38/usr/people/test2
Jun 28 10:53:50 rhel7-test3 automount[15709]: spawn_bind_mount: mtab link detected, passing -n to mount

Comment 2 Pierguido Lambri 2018-06-28 10:47:04 UTC

*** This bug has been marked as a duplicate of bug 1358887 ***