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 866271

Summary: When browse option is used, failed mounts by AutoFS leave broken directories
Product: Red Hat Enterprise Linux 6 Reporter: Ian Kent <ikent>
Component: kernelAssignee: Ian Kent <ikent>
Status: CLOSED ERRATA QA Contact: yanfu,wang <yanwang>
Severity: high Docs Contact:
Priority: high    
Version: 6.3CC: tschweikle, yanwang
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-337.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 866937 876808 1116719 (view as bug list) Environment:
Last Closed: 2013-02-21 06:50:30 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: 866937, 876808, 1116719    
Attachments:
Description Flags
Patch - autofs4 - fix reset pending flag on mount fail none

Description Ian Kent 2012-10-15 00:53:48 UTC
Description of problem:
When using the browse option a mount fail when accessing an
automounted directory results in the attributes of the directory
(owner, group, mode, access time) are being listed as unknown.

Version-Release number of selected component (if applicable):
All kernel versions.

How reproducible:
Always with the steps below.

Steps to Reproduce:

Make sure you have BROWSE_MODE="yes" in /etc/sysconfig/autofs.

1. Add a simple indirect mount map (it's required that
   the server does NOT export the /notexported directory):

# cat /etc/auto.master
/nfs    /etc/auto.nfs

# cat /etc/auto.nfs
v2      server:/notexported

2. Restart AutoFS and try to access the directory:

# cd /nfs/v2
-bash: cd: /nfs/v2: No such file or directory

3. List the contents of the indirect mount directory.

# ls -la /nfs
ls: cannot access /nfs/v2: No such file or directory
total 4
drwxr-xr-x  3 root root    0 Sep 24 21:43 .
drwxr-xr-x 28 root root 4096 Sep 24 21:25 ..
d?????????  ? ?    ?       ?            ? v2


Actual results:
As above in step 3.

Expected results:
Sensible attributes, in this case attributes of the directory
as they should be in the autofs file system.

Comment 2 Ian Kent 2012-10-15 01:05:05 UTC
Created attachment 627155 [details]
Patch - autofs4 - fix reset pending flag on mount fail

Comment 3 RHEL Program Management 2012-10-15 01:10:43 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.

Comment 5 Jarod Wilson 2012-10-29 18:51:16 UTC
Patch(es) available on kernel-2.6.32-337.el6

Comment 8 yanfu,wang 2012-11-01 08:03:43 UTC
Reproduced on kernel 2.6.32-330.el6.x86_64:
:: [   LOG    ] :: /CoreOS/autofs/Regression/bz866271-when-browse-option-is-used-directory-attributes-broken/Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Running 'cd /nfs/v2'
:: [   FAIL   ] :: /nfs/v2 shows correct user and group (Expected 0, got 2)
:: [   LOG    ] :: Duration: 0s
:: [   LOG    ] :: Assertions: 1 good, 1 bad
:: [   FAIL   ] :: RESULT: /CoreOS/autofs/Regression/bz866271-when-browse-option-is-used-directory-attributes-broken/Test


Verified on kernel 2.6.32-337.el6 and got pass result:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: /CoreOS/autofs/Regression/bz866271-when-browse-option-is-used-directory-attributes-broken/Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Running 'cd /nfs/v2'
:: [   PASS   ] :: /nfs/v2 shows correct user and group
:: [   LOG    ] :: Duration: 0s
:: [   LOG    ] :: Assertions: 2 good, 0 bad
:: [   PASS   ] :: RESULT: /CoreOS/autofs/Regression/bz866271-when-browse-option-is-used-directory-attributes-broken/Test

Comment 9 Ian Kent 2012-12-05 12:56:10 UTC
*** Bug 883812 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2013-02-21 06:50:30 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.

http://rhn.redhat.com/errata/RHSA-2013-0496.html