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 703332 - autofs fails to find duplicate key after key removal
Summary: autofs fails to find duplicate key after key removal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: autofs
Version: 6.1
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Ian Kent
QA Contact: yanfu,wang
URL:
Whiteboard:
Depends On:
Blocks: 732333
TreeView+ depends on / blocked
 
Reported: 2011-05-10 02:41 UTC by Ian Kent
Modified: 2011-12-06 17:58 UTC (History)
2 users (show)

Fixed In Version: autofs-5.0.5-32
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 732333 (view as bug list)
Environment:
Last Closed: 2011-12-06 17:58:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch - fix map source check in file lookup (1.22 KB, patch)
2011-05-10 04:05 UTC, Ian Kent
no flags Details | Diff
Patch - fix map source check in file lookup (updated) (1.80 KB, patch)
2011-05-18 03:41 UTC, Ian Kent
no flags Details | Diff
Patch - fix prune cache valid check (1.17 KB, patch)
2011-05-18 03:42 UTC, Ian Kent
no flags Details | Diff
Patch - fix map source check in file lookup (updated 2) (2.16 KB, patch)
2011-05-18 08:11 UTC, Ian Kent
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1723 0 normal SHIPPED_LIVE autofs bug fix and enhancement update 2011-12-06 01:02:10 UTC

Description Ian Kent 2011-05-10 02:41:25 UTC
Description of problem:

With an automount that has a key present in a file map and the same
key also present in an included map source, if the file map entry is
removed and a lookup is performed before a re-load is issued the
map lookup fails.

Version-Release number of selected component (if applicable):
autofs-5.0.5-31.el6

How reproducible:
Always.

Steps to Reproduce:
1. Create a file map, /etc/auto.includetest containing:
foo	localhost:/export/foo
+auto.test2

Create /etc/auto.test2 containing:
foo	<server>:/export/foo

Add an entry to the master map:
/includedtest		file:/etc/auto.includedtest


2. Perform a lookup on map key foo using "ls /includedtest/foo"
and wait for it to expire.

3. Remove map key from map /etc/auto.includetest and repeat
the lookup of step 2.
  
Actual results:
The lookup in step 3 fails to find the key in map
/etc/auto.test2.

Expected results:
The lookup in step 3 fails to find the key in map
/etc/auto.test2.

Comment 2 Ian Kent 2011-05-10 04:05:55 UTC
Created attachment 497950 [details]
Patch - fix map source check in file lookup

Comment 3 Ian Kent 2011-05-18 03:41:28 UTC
Created attachment 499512 [details]
Patch - fix map source check in file lookup (updated)

Comment 4 Ian Kent 2011-05-18 03:42:18 UTC
Created attachment 499513 [details]
Patch - fix prune cache valid check

Comment 5 Ian Kent 2011-05-18 08:11:24 UTC
Created attachment 499539 [details]
Patch - fix map source check in file lookup (updated 2)

So, the original patch is actually needed although I'm
not completely convinced this won't have unexpected and
difficult to resolve side effects. But with so many
regression tests now I might be mistaken.

Comment 7 yanfu,wang 2011-08-25 06:07:09 UTC
bz248152 passed when run autofs regression testing, job links pls refer to below:
i386: https://beaker.engineering.redhat.com/jobs/123937
x86_64: https://beaker.engineering.redhat.com/jobs/123442
s390x: https://beaker.engineering.redhat.com/jobs/123318
ppc64: https://beaker.engineering.redhat.com/jobs/123317

Comment 8 errata-xmlrpc 2011-12-06 17:58:40 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/RHBA-2011-1723.html


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