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 894302 - sssd fails to update to changes on autofs maps
Summary: sssd fails to update to changes on autofs maps
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.4
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: Jakub Hrozek
QA Contact: Kaushik Banerjee
URL:
Whiteboard:
Depends On:
Blocks: 902691
TreeView+ depends on / blocked
 
Reported: 2013-01-11 11:28 UTC by Kaushik Banerjee
Modified: 2020-05-02 17:14 UTC (History)
7 users (show)

Fixed In Version: sssd-1.9.2-76.el6
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Clone Of:
Environment:
Last Closed: 2013-02-21 09:43:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 2800 0 None None None 2020-05-02 17:14:04 UTC
Red Hat Product Errata RHSA-2013:0508 0 normal SHIPPED_LIVE Low: sssd security, bug fix and enhancement update 2013-02-20 21:30:10 UTC

Description Kaushik Banerjee 2013-01-11 11:28:42 UTC
Description of problem:
sssd fails to read modification to autofs maps

Version-Release number of selected component (if applicable):
1.9.2-65

How reproducible:
Always

Steps to Reproduce:
1. On the Client machine, access a autofs mount:
# cd /testproj1
# mount | grep nfsrv
nfsrv.example.com:/export/project1 on /testproj1 type nfs (rw,sloppy,vers=4,addr=192.168.122.99,clientaddr=192.168.122.155) 

2. Now, modify the location /export/project1 to /export/project2 on the ldap server.

3. On the client, verify if the new location is being picked up by sssd:

# umount /testproj1
# sss_cache -A
# cd /testproj1
# mount | grep nfsrv
nfsrv.example.com:/export/project1 on /testproj1 type nfs (rw,sloppy,vers=4,addr=192.168.122.99,clientaddr=192.168.122.155) 


# umount /testproj1
# service autofs restart
Stopping automount:                                        [  OK  ]
Starting automount:                                        [  OK  ]
# service sssd restart
Stopping sssd:                                             [  OK  ]
Starting sssd:                                             [  OK  ]
# cd /proj1
# cd
# mount | grep nfsrv
nfsrv.example.com:/export/project1 on /testproj1 type nfs (rw,sloppy,vers=4,addr=192.168.122.99,clientaddr=192.168.122.155) 
# automount -m | grep testproj1
  /testproj1 | -fstype=nfs,rw nfsrv.example.com:/export/project1 <== Should show /export/project2
  
Actual results:
Restarting sssd or autofs does not pull in the changes made on the ldap server.

Expected results:
Modifications to the maps should be pulled in by sssd.

Additional info:

Comment 3 Jakub Hrozek 2013-01-11 17:45:48 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/1758

Comment 7 Kaushik Banerjee 2013-01-30 06:06:50 UTC
Verified in version 1.9.2-82

Output of beaker automation run:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: autofs10 - change key,location
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Stopping sssd: [  OK  ]
Starting sssd: [  OK  ]
[  OK  ]
:: [11:53:19] ::  Sleeping for 5 seconds
Stopping automount: [  OK  ]
Starting automount: [  OK  ]
/mnt/tests/CoreOS/sssd-RHEL6.4/Functional/Automount
:: [   PASS   ] :: Running 'cd /folder1/folder2/projects;cd -'
hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects on /folder1/folder2/projects type nfs (rw,sloppy,vers=4,addr=10.16.66.68,clientaddr=10.16.64.53)
:: [   PASS   ] :: Running 'mount | grep /folder1/folder2/projects | grep hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects'
:: [   PASS   ] :: File '/var/log/sssd/sssd_LDAP.log' should contain 'Searching for automount map entries with base \[ou=mount,dc=example,dc=com\]'
NFSv4 mount point detected
hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects umounted
modifying entry "cn=/folder1/folder2/projects,nisMapName=auto.direct,ou=mount,dc=example,dc=com"

:: [11:53:28] ::  Sleeping for 40 seconds...
/mnt/tests/CoreOS/sssd-RHEL6.4/Functional/Automount
:: [   PASS   ] :: Running 'cd /folder1/folder2/projects;cd -'
hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects on /folder1/folder2/projects type nfs (rw,sloppy,vers=4,addr=10.16.66.68,clientaddr=10.16.64.53)
:: [   PASS   ] :: Running 'mount | grep /folder1/folder2/projects | grep hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects'
:: [   PASS   ] :: File '/var/log/sssd/sssd_LDAP.log' should not contain 'Searching for automount map entries with base \[ou=mount,dc=example,dc=com\]'
:: [11:54:09] ::  Sleeping for 30 seconds...
NFSv4 mount point detected
hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects umounted
Stopping automount: [  OK  ]
Starting automount: [  OK  ]
/mnt/tests/CoreOS/sssd-RHEL6.4/Functional/Automount
:: [   PASS   ] :: Running 'cd /folder1/folder2/projects;cd -'
hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects_new on /folder1/folder2/projects type nfs (rw,sloppy,vers=4,addr=10.16.66.68,clientaddr=10.16.64.53)
:: [   PASS   ] :: Running 'mount | grep /folder1/folder2/projects | grep hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects_new'
:: [   PASS   ] :: File '/var/log/sssd/sssd_LDAP.log' should contain 'Searching for automount map entries with base \[ou=mount,dc=example,dc=com\]'
modifying entry "cn=/folder1/folder2/projects,nisMapName=auto.direct,ou=mount,dc=example,dc=com"

'42491ae1-64c3-48bb-a0f2-8621e1e5292c'
autofs10-change-key-location result: PASS


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: autofs11 - change key,map
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Stopping sssd: [  OK  ]
Starting sssd: [  OK  ]
[  OK  ]
:: [11:54:47] ::  Sleeping for 5 seconds
Stopping automount: [  OK  ]
Starting automount: [  OK  ]
/mnt/tests/CoreOS/sssd-RHEL6.4/Functional/Automount
:: [   PASS   ] :: Running 'cd /folder1/folder2/projects;cd -'
hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects on /folder1/folder2/projects type nfs (rw,sloppy,vers=4,addr=10.16.66.68,clientaddr=10.16.64.53)
:: [   PASS   ] :: Running 'mount | grep /folder1/folder2/projects | grep hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects'
:: [   PASS   ] :: File '/var/log/sssd/sssd_LDAP.log' should contain 'Searching for automount map entries with base \[ou=mount,dc=example,dc=com\]'
ldap_initialize( ldap://hp-dl165g7-01.rhts.eng.bos.redhat.com:389/??base )
deleting entry "cn=/folder1/folder2/projects,nisMapName=auto.direct,ou=mount,dc=example,dc=com"
:: [11:54:56] ::  Sleeping for 40 seconds...
/mnt/tests/CoreOS/sssd-RHEL6.4/Functional/Automount
:: [   PASS   ] :: Running 'cd /folder1/folder2/projects;cd -'
hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects on /folder1/folder2/projects type nfs (rw,sloppy,vers=4,addr=10.16.66.68,clientaddr=10.16.64.53)
:: [   PASS   ] :: Running 'mount | grep /folder1/folder2/projects | grep hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects'
:: [   PASS   ] :: File '/var/log/sssd/sssd_LDAP.log' should not contain 'Searching for automount map entries with base \[ou=mount,dc=example,dc=com\]'
:: [11:55:36] ::  Sleeping for 30 seconds...
NFSv4 mount point detected
hp-dl165g7-01.rhts.eng.bos.redhat.com:/export/projects umounted
Reloading maps
/usr/share/beakerlib/testing.sh: line 740: cd: /folder1/folder2/projects: No such file or directory
/usr/share/beakerlib/testing.sh: line 740: cd: /folder1/folder2/projects: No such file or directory
:: [   PASS   ] :: Cannot access the automount path since the key has been deleted from ldap server
/dev/mapper/vg_hpz40001-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/vg_hpz40001-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
:: [   PASS   ] :: Running 'mount | grep -v /folder1/folder2/projects'
:: [   PASS   ] :: File '/var/log/sssd/sssd_LDAP.log' should contain 'Searching for automount map entries with base \[ou=mount,dc=example,dc=com\]'
'388711ca-cf15-4611-a2cc-6e00fd9835c8'
autofs11-change-key-map result: PASS

Comment 8 errata-xmlrpc 2013-02-21 09:43:10 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-0508.html


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