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 1677355 - NSS responder does no refresh domain list when busy
Summary: NSS responder does no refresh domain list when busy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: SSSD Maintainers
QA Contact: sssd-qe
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-14 15:49 UTC by Sumit Bose
Modified: 2020-05-02 19:07 UTC (History)
10 users (show)

Fixed In Version: sssd-1.16.4-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-06 13:02:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 4940 0 None None None 2020-05-02 19:07:19 UTC
Red Hat Product Errata RHSA-2019:2177 0 None None None 2019-08-06 13:03:05 UTC

Description Sumit Bose 2019-02-14 15:49:27 UTC
Description of problem:

The NSS responder maintains a timeout to not check for new domains all the time. Unfortunately this timeout is reset with every request in sss_dp_get_domains_send() and as a result on a busy system to timeout never expires and the domain list is never refresh.

Comment 2 Sumit Bose 2019-02-22 18:35:27 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/3967

Comment 3 Sumit Bose 2019-02-25 10:48:24 UTC
How to test:

- use an AD or IPA setup with sub-domains, i.e. either other domains in the AD forest (AD) or a trust to an AD forest (IPA).
- start the client in offline mode with an empty cache, e.g. by removing all entries nameserver from /etc/resolv.conf.
- start a lookup for a sub-domain user ever 30s in a loop, it is expected that the lookup fails while offline
- add the nameserver entries back to /etc/resolve.conf
- with a fixed version the user lookup in the loop should succeed after about 2 minute (1 minute default offline timeout + 1 minute default domain refresh timeout) or shorter
- with a broken version the user lookup in the loop should never succeed

Comment 4 Jakub Hrozek 2019-02-26 21:50:48 UTC
* master: c013643
* sssd-1-16: 3824008

Comment 7 shridhar 2019-06-20 19:28:28 UTC
verified with sssd-1.16.4-21.el7.x86_64



Issue reproduced with following version:
[root@vm-idm-016 ~]# rpm -q sssd
sssd-1.16.2-13.el7.x86_64

script used for testing
[root@vm-idm-016 ~]# cat new.sh 
#!/bin/bash

cat /etc/resolv.conf > /etc/resolv.conf.bk
echo "Printing backed up resolv.conf.bk"
cat /etc/resolv.conf.bk
echo > /etc/resolv.conf
echo "Printing Modified resolv.conf"
cat /etc/resolv.conf
service sssd stop ; rm -rf /var/lib/sss/db/* ; rm -rf /var/log/sssd/* ; systemctl start sssd
echo " SSSD is starting in offline mode"
for i in `seq 4`; do id administrator.com; echo 'delay 30 secs' ; sleep 30 ; done
echo "Printing restored resolv.conf"
cat /etc/resolv.conf.bk > /etc/resolv.conf
cat /etc/resolv.conf
for i in `seq 12`; do id administrator.com; echo 'delay 30 sec'; sleep 30 ; done


[root@vm-idm-016 ~]# 



-016 ~]# bash new.sh 
Printing backed up resolv.conf.bk
nameserver 22.65.207.47
#nameserver 22.65.201.89
#nameserver 22.68.5.26

Printing Modified resolv.conf

Redirecting to /bin/systemctl stop sssd.service
 SSSD is starting in offline mode
id: administrator.com: no such user
delay 30 secs
id: administrator.com: no such user
delay 30 secs
id: administrator.com: no such user
delay 30 secs
id: administrator.com: no such user
delay 30 secs
Printing restored resolv.conf
nameserver 10.65.207.47
#nameserver 10.65.201.89
#nameserver 10.68.5.26

id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec




[root@vm-idm-016 ~]# yum update sssd
Loaded plugins: product-id, search-disabled-repos, subscription-manager
.
[........]
.
  Verifying  : libsss_autofs-1.16.2-13.el7.x86_64                                                                                                                                                                     29/30 
  Verifying  : sssd-proxy-1.16.2-13.el7.x86_64                                                                                                                                                                        30/30 

Updated:
  sssd.x86_64 0:1.16.4-21.el7                                                                                                                                                                                               

Dependency Updated:
  libipa_hbac.x86_64 0:1.16.4-21.el7      libsss_autofs.x86_64 0:1.16.4-21.el7         libsss_idmap.x86_64 0:1.16.4-21.el7      libsss_sudo.x86_64 0:1.16.4-21.el7          python-sssdconfig.noarch 0:1.16.4-21.el7     
  sssd-ad.x86_64 0:1.16.4-21.el7          sssd-client.x86_64 0:1.16.4-21.el7           sssd-common.x86_64 0:1.16.4-21.el7       sssd-common-pac.x86_64 0:1.16.4-21.el7      sssd-ipa.x86_64 0:1.16.4-21.el7              
  sssd-krb5.x86_64 0:1.16.4-21.el7        sssd-krb5-common.x86_64 0:1.16.4-21.el7      sssd-ldap.x86_64 0:1.16.4-21.el7         sssd-proxy.x86_64 0:1.16.4-21.el7          

Complete!



[root@vm-idm-016 ~]# rpm -q sssd
sssd-1.16.4-21.el7.x86_64


[root@vm-idm-016 ~]# bash new.sh 
Printing backed up resolv.conf.bk
nameserver 22.65.207.47
#nameserver 22.65.201.89
#nameserver 22.68.5.26

Printing Modified resolv.conf

Redirecting to /bin/systemctl stop sssd.service
 SSSD is starting in offline mode
id: administrator.com: no such user
delay 30 secs
id: administrator.com: no such user
delay 30 secs
id: administrator.com: no such user
delay 30 secs
id: administrator.com: no such user
delay 30 secs
Printing restored resolv.conf
nameserver 22.65.207.47
#nameserver 22.65.201.89
#nameserver 22.68.5.26

id: administrator.com: no such user
delay 30 sec
id: administrator.com: no such user
delay 30 sec
uid=651800500(administrator.com) gid=651800500(administrator.com) groups=651800500(administrator.com),651800520(group policy creator owners.com),651800512(domain admins.com),651800513(domain users.com)
delay 30 sec
uid=651800500(administrator.com) gid=651800500(administrator.com) groups=651800500(administrator.com),651800520(group policy creator owners.com),651800512(domain admins.com),651800513(domain users.com)
delay 30 sec
^C
[root@vm-idm-016 ~]#

Comment 9 errata-xmlrpc 2019-08-06 13:02:47 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/RHSA-2019:2177


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