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 1892184 - autofs: return a connection failure until maps have been fetched
Summary: autofs: return a connection failure until maps have been fetched
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: autofs
Version: 8.1
Hardware: All
OS: Linux
low
medium
Target Milestone: pre-dev-freeze
: 8.1
Assignee: Ian Kent
QA Contact: Kun Wang
URL:
Whiteboard: sync-to-jira
Depends On: 1113639
Blocks: 1101782 1679810 1689138
TreeView+ depends on / blocked
 
Reported: 2020-10-28 06:40 UTC by Ian Kent
Modified: 2021-05-18 14:56 UTC (History)
26 users (show)

Fixed In Version: autofs-5.1.4-48.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1113639
Environment:
Last Closed: 2021-05-18 14:55:46 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch - fix lookup_nss_read_master() nsswicth check return (1.07 KB, patch)
2020-11-03 00:18 UTC, Ian Kent
no flags Details | Diff
Patch - fix sss_master_map_wait timing (1.63 KB, patch)
2020-11-03 00:20 UTC, Ian Kent
no flags Details | Diff
Patch - improve lookup_sss() error handling (3.96 KB, patch)
2020-11-03 00:22 UTC, Ian Kent
no flags Details | Diff
Patch - fix lookup_nss_read_master() nsswicth check return (1.18 KB, patch)
2020-11-30 09:06 UTC, Ian Kent
no flags Details | Diff
Patch - fix typo in open_sss_lib() (1.05 KB, patch)
2020-11-30 09:08 UTC, Ian Kent
no flags Details | Diff
Patch - fix sss_master_map_wait timing (1.73 KB, patch)
2020-11-30 09:10 UTC, Ian Kent
no flags Details | Diff
Patch - add sss ECONREFUSED return handling (1.99 KB, patch)
2020-11-30 09:11 UTC, Ian Kent
no flags Details | Diff
Patch - use mapname in sss context for setautomntent() (3.02 KB, patch)
2020-11-30 09:12 UTC, Ian Kent
no flags Details | Diff
Patch - add support for new sss autofs proto version call (3.95 KB, patch)
2020-11-30 09:13 UTC, Ian Kent
no flags Details | Diff
Patch - fix retries check in setautomntent_wait() (1.09 KB, patch)
2020-11-30 09:14 UTC, Ian Kent
no flags Details | Diff
Patch - refactor sss setautomntent() (4.78 KB, patch)
2020-11-30 09:15 UTC, Ian Kent
no flags Details | Diff
Patch - improve sss setautomntent() error handling (3.69 KB, patch)
2020-11-30 09:17 UTC, Ian Kent
no flags Details | Diff
Patch - refactor sss getautomntent() (3.96 KB, patch)
2020-11-30 09:18 UTC, Ian Kent
no flags Details | Diff
Patch - improve sss getautomntent() error handling (4.88 KB, patch)
2020-11-30 09:19 UTC, Ian Kent
no flags Details | Diff
Patch - sss introduce calculate_retry_count() function (3.65 KB, patch)
2020-11-30 09:21 UTC, Ian Kent
no flags Details | Diff
Patch - move readall into struct master (6.51 KB, patch)
2020-11-30 09:22 UTC, Ian Kent
no flags Details | Diff
Patch - sss introduce a flag to indicate map being read (7.20 KB, patch)
2020-11-30 09:23 UTC, Ian Kent
no flags Details | Diff
Patch - update sss timeout documentation (6.25 KB, patch)
2020-11-30 09:24 UTC, Ian Kent
no flags Details | Diff
Patch - refactor sss getautomntbyname() (4.60 KB, patch)
2020-11-30 09:25 UTC, Ian Kent
no flags Details | Diff
Patch - improve sss getautomntbyname() error handling (4.82 KB, patch)
2020-11-30 09:26 UTC, Ian Kent
no flags Details | Diff
Patch - use a valid timeout in lookup_prune_one_cache() (2.37 KB, patch)
2020-11-30 09:27 UTC, Ian Kent
no flags Details | Diff
Patch - dont prune offset map entries (1.48 KB, patch)
2020-11-30 09:28 UTC, Ian Kent
no flags Details | Diff
Patch - simplify sss source stale check (3.37 KB, patch)
2020-11-30 09:29 UTC, Ian Kent
no flags Details | Diff

Comment 12 Ian Kent 2020-11-03 00:18:50 UTC
Created attachment 1726069 [details]
Patch - fix lookup_nss_read_master() nsswicth check return

Comment 13 Ian Kent 2020-11-03 00:20:07 UTC
Created attachment 1726070 [details]
Patch - fix sss_master_map_wait timing

Comment 14 Ian Kent 2020-11-03 00:22:44 UTC
Created attachment 1726071 [details]
Patch - improve lookup_sss() error handling

There are a number of comments in this patch and the description
also claims to understand the various cases.

Please verify my understanding of what sss is doing is correct.

Comment 20 Ian Kent 2020-11-30 09:06:48 UTC
Created attachment 1734755 [details]
Patch - fix lookup_nss_read_master() nsswicth check return

Comment 21 Ian Kent 2020-11-30 09:08:25 UTC
Created attachment 1734756 [details]
Patch - fix typo in open_sss_lib()

Comment 22 Ian Kent 2020-11-30 09:10:03 UTC
Created attachment 1734757 [details]
Patch - fix sss_master_map_wait timing

Comment 23 Ian Kent 2020-11-30 09:11:13 UTC
Created attachment 1734758 [details]
Patch - add sss ECONREFUSED return handling

Comment 24 Ian Kent 2020-11-30 09:12:29 UTC
Created attachment 1734759 [details]
Patch - use mapname in sss context for setautomntent()

Comment 25 Ian Kent 2020-11-30 09:13:37 UTC
Created attachment 1734760 [details]
Patch - add support for new sss autofs proto version call

Comment 26 Ian Kent 2020-11-30 09:14:41 UTC
Created attachment 1734761 [details]
Patch - fix retries check in setautomntent_wait()

Comment 27 Ian Kent 2020-11-30 09:15:50 UTC
Created attachment 1734762 [details]
Patch - refactor sss setautomntent()

Comment 28 Ian Kent 2020-11-30 09:17:08 UTC
Created attachment 1734763 [details]
Patch - improve sss setautomntent() error handling

Comment 29 Ian Kent 2020-11-30 09:18:35 UTC
Created attachment 1734764 [details]
Patch - refactor sss getautomntent()

Comment 30 Ian Kent 2020-11-30 09:19:57 UTC
Created attachment 1734765 [details]
Patch - improve sss getautomntent() error handling

Comment 31 Ian Kent 2020-11-30 09:21:19 UTC
Created attachment 1734766 [details]
Patch - sss introduce calculate_retry_count() function

Comment 32 Ian Kent 2020-11-30 09:22:13 UTC
Created attachment 1734767 [details]
Patch - move readall into struct master

Comment 33 Ian Kent 2020-11-30 09:23:14 UTC
Created attachment 1734768 [details]
Patch - sss introduce a flag to indicate map being read

Comment 34 Ian Kent 2020-11-30 09:24:21 UTC
Created attachment 1734769 [details]
Patch - update sss timeout documentation

Comment 35 Ian Kent 2020-11-30 09:25:34 UTC
Created attachment 1734770 [details]
Patch - refactor sss getautomntbyname()

Comment 36 Ian Kent 2020-11-30 09:26:46 UTC
Created attachment 1734771 [details]
Patch - improve sss getautomntbyname() error handling

Comment 37 Ian Kent 2020-11-30 09:27:46 UTC
Created attachment 1734772 [details]
Patch - use a valid timeout in lookup_prune_one_cache()

Comment 38 Ian Kent 2020-11-30 09:28:57 UTC
Created attachment 1734773 [details]
Patch - dont prune offset map entries

Comment 39 Ian Kent 2020-11-30 09:29:57 UTC
Created attachment 1734774 [details]
Patch - simplify sss source stale check

Comment 40 Pavel Březina 2020-12-04 10:57:29 UTC
SSSD Part wash pushed upstream:
Pushed PR: https://github.com/SSSD/sssd/pull/5343

* `master`
    * 075519bceca7a8f4fa28a0b7c538f2f50d552d13 - configure: check for stdatomic.h
    * 8a22d4ad45f5fc8e888be693539495093c2b3c35 - autofs: correlate errors for different protocol versions
    * 34c519a4851194164befc150df8e768431e66405 - autofs: disable fast reply
    * 9098108a7142513fa04afdf92a2c1b3ac002c56e - autofs: translate ERR_OFFLINE to EHOSTDOWN
    * e50258da70b67ff1b0f928e2e7875bc2fa32dfde - autofs: return ERR_OFFLINE if we fail to get information from backend and cache is empty
    * 3f0ba4c2dcf9126b0f94bca4a056b516759d25c1 - cache_req: allow cache_req to return ERR_OFFLINE if all dp request failed

Comment 48 errata-xmlrpc 2021-05-18 14:55:46 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 (autofs bug fix and enhancement update), 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-2021:1621


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