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 1768404

Summary: automount on RHEL7 gives the message 'lookup(sss): setautomntent: No such file or directory'
Product: Red Hat Enterprise Linux 7 Reporter: anuja <amore>
Component: sssdAssignee: Sumit Bose <sbose>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.8CC: grajaiya, jhrozek, ksiddiqu, lmiksik, lslebodn, mzidek, pbrezina, sbose, sgoveas, tom, tscherf
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.16.4-34.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 19:44:37 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 anuja 2019-11-04 10:56:56 UTC
Description of problem:
autofs was unable to mount shares.

Version-Release number of selected component (if applicable):
autofs-5.0.7-109.el7.x86_64
sssd-1.16.4-32.el7.x86_64
[root@client2 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.8 Beta (Maipo)


How reproducible:
Always

Steps to Reproduce:
on ipa-server
1. ipa automountlocation-add Direct_use_sssd_13489
2. ipa automountkey-add Direct_use_sssd_13489 auto.direct --key=/ipashare/public --info="-rw,soft,rsize=8192,wsize=8192  client1.trealm.test:/share/pub"
3. ipa automountlocation-tofiles Direct_use_sssd_13489

on ipa-client
1. ipa-client-automount --server=ipa.trealm.test --location=Direct_use_sssd_13489 -U
2. service sssd stop; sss_cache -A; service sssd restart; service rpcgssd restart; service autofs start; service autofs status  
3. ls -ltr /ipa*

Actual results:
Not able to mount share
[root@client2 ~]# service autofs status
Redirecting to /bin/systemctl status autofs.service
● autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib/systemd/system/autofs.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-11-04 05:17:01 EST; 34min ago
 Main PID: 22817 (automount)
   CGroup: /system.slice/autofs.service
           └─22817 /usr/sbin/automount --systemd-service --dont-check-daemon
................
Nov 04 05:17:01 client2.testrealm.test automount[22817]: problem reading master map, maximum wait exceeded
Nov 04 05:17:01 client2.testrealm.test automount[22817]: /usr/sbin/automount: warning: could not read at least one map s... ...
Nov 04 05:17:01 client2.testrealm.test automount[22817]: setautomntent: lookup(sss): setautomntent: No such file or directory
[root@client2 ~]# 


Expected results:
Able to access share

Comment 6 Sumit Bose 2019-11-04 15:49:44 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/4111

Comment 9 Pavel Březina 2019-11-07 12:17:38 UTC
* `master`
    * 9ba136ce27308e8b0b8ec921c135433da8569531 - ipa: use the right context for autofs

Comment 11 Pavel Březina 2019-11-12 11:14:52 UTC
There is yet one more issue that make these tests fail:
https://pagure.io/SSSD/sssd/issue/4116
https://github.com/SSSD/sssd/pull/936

Comment 12 Pavel Březina 2019-11-14 08:23:59 UTC
Complete set of patches:

* `master`
    * 9ba136ce27308e8b0b8ec921c135433da8569531 - ipa: use the right context for autofs
    * 14b44e721c52207fd17e449cc6ae0a75fbb05369 - autofs: delete possible duplicate of an autofs entry
* `sssd-1-16`
    * 41606494979da8cb7fb09170687131a556a643c7 - autofs: delete possible duplicate of an autofs entry
    * a967afdd0a099d9b4d76bbbda7d37a001f583bbf - ipa: use the right context for autofs

Comment 14 anuja 2019-12-16 07:08:43 UTC
Verified using:
sssd-ipa-1.16.4-35.el7.x86_64
ipa-server-4.6.6-11.el7.x86_64

Adding test-console output: Since it was logged using existing test-suite

Test console output of test [Ensure autofs functional test direct map works with sssd, bz895615]:
----------------------------------------------------------------------------------------------------------
2019-12-14T21:07:34+0000 [ci-vm-10-0-153-154.h] ====== lsof | grep /ipashare_4578 ====
2019-12-14T21:07:35+0000 [ci-vm-10-0-153-154.h] automount 27725          root   23r      DIR               0,43         0     104107 /ipashare_4578/public_10154
2019-12-14T21:07:35+0000 [ci-vm-10-0-153-154.h] automount 27725 27727    root   23r      DIR               0,43         0     104107 /ipashare_4578/public_10154
2019-12-14T21:07:35+0000 [ci-vm-10-0-153-154.h] automount 27725 27728    root   23r      DIR               0,43         0     104107 /ipashare_4578/public_10154
2019-12-14T21:07:35+0000 [ci-vm-10-0-153-154.h] automount 27725 27743    root   23r      DIR               0,43         0     104107 /ipashare_4578/public_10154
2019-12-14T21:07:35+0000 [ci-vm-10-0-153-154.h] automount 27725 27746    root   23r      DIR               0,43         0     104107 /ipashare_4578/public_10154
2019-12-14T21:07:35+0000 [ci-vm-10-0-153-154.h] automount 27725 27747    root   23r      DIR               0,43         0     104107 /ipashare_4578/public_10154
2019-12-14T21:07:35+0000 [ci-vm-10-0-153-154.h] =====================================
2019-12-14T21:07:35+0000 [ci-vm-10-0-153-154.h] /ipashare_4578/public_10154: nfs mount point detected
2019-12-14T21:07:35+0000 [ci-vm-10-0-153-154.h] /ipashare_4578/public_10154: umounted
2019-12-14T21:07:35+0000 [ci-vm-10-0-153-154.h] :: [ 16:07:35 ] :: [   PASS   ] :: umount [/ipashare_4578/public_10154] success 
2019-12-14T21:07:37+0000 [ci-vm-10-0-153-154.h] :: [ 16:07:37 ] :: [   PASS   ] :: clean up ipa-client-automount success 
2019-12-14T21:07:37+0000 [ci-vm-10-0-153-154.h] ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2019-12-14T21:07:37+0000 [ci-vm-10-0-153-154.h] ::   Duration: 37s
2019-12-14T21:07:37+0000 [ci-vm-10-0-153-154.h] ::   Assertions: 7 good, 0 bad
2019-12-14T21:07:37+0000 [ci-vm-10-0-153-154.h] ::   RESULT: PASS (Ensure autofs functional test direct map works with sssd, bz895615)
2019-12-14T21:07:37+0000 [ci-vm-10-0-153-154.h] ** Ensure-autofs-functional-test-direct-map-works-with-sssd-bz895615 PASS Score:0
2019-12-14T21:07:37+0000 [ci-vm-10-0-153-154.h] use_pty:FALSE /usr/share/restraint/plugins/run_task_plugins /usr/share/restraint/plugins/run_plugins
2019-12-14T21:07:38+0000 [ci-vm-10-0-153-154.h] <no matches>
2019-12-14T21:07:38+0000 [ci-vm-10-0-153-154.h] Uploading avc.log 
2019-12-14T21:07:38+0000 [ci-vm-10-0-153-154.h] .done
2019-12-14T21:07:38+0000 [ci-vm-10-0-153-154.h] Uploading resultoutputfile.log 
2019-12-14T21:07:38+0000 [ci-vm-10-0-153-154.h] .done
2019-12-14T21:07:38+0000 [ci-vm-10-0-153-154.h] ::::::::::::::::::::::::::

Since with failure in autofs service tends to fail mount share point.
Using latest version able to mount.
Based on this marking bz as verified.

Comment 17 errata-xmlrpc 2020-03-31 19:44:37 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.

https://access.redhat.com/errata/RHBA-2020:1053