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 - When browse option is used, failed mounts by AutoFS leave broken directories
Summary: When browse option is used, failed mounts by AutoFS leave broken directories
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.3
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Ian Kent
QA Contact: yanfu,wang
URL:
Whiteboard:
: 883812 (view as bug list)
Depends On:
Blocks: 866937 876808 1116719
TreeView+ depends on / blocked
 
Reported: 2012-10-15 00:53 UTC by Ian Kent
Modified: 2014-07-07 06:58 UTC (History)
2 users (show)

Fixed In Version: kernel-2.6.32-337.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 866937 876808 1116719 (view as bug list)
Environment:
Last Closed: 2013-02-21 06:50:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch - autofs4 - fix reset pending flag on mount fail (1.22 KB, patch)
2012-10-15 01:05 UTC, Ian Kent
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0496 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 6 kernel update 2013-02-20 21:40:54 UTC

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


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