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 1665388

Summary: SSSD netgroups do not honor entry_cache_nowait_percentage
Product: Red Hat Enterprise Linux 8 Reporter: Niranjan Mallapadi Raghavender <mniranja>
Component: sssdAssignee: Pavel Březina <pbrezina>
Status: CLOSED ERRATA QA Contact: sssd-qe <sssd-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0CC: apeetham, dbula, grajaiya, jhrozek, lslebodn, mzidek, pbrezina, sgoveas, tscherf
Target Milestone: rcFlags: dbula: mirror+
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: sssd-2.2.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1614296 Environment:
Last Closed: 2019-11-05 22:34:01 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:
Bug Depends On: 1614296, 1682305    
Bug Blocks:    

Comment 1 Jakub Hrozek 2019-02-22 15:10:58 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/3947

Comment 2 Jakub Hrozek 2019-03-14 21:24:58 UTC
* master: 486b5523b7430a071016fe64c1a472ac4c135ab1

Comment 4 Amith 2019-08-28 00:19:37 UTC
Verified the bug on SSSD version: sssd-2.2.0-16.el8.x86_64 

This bug is already automated and is part of ldap_provider/ldap_id_ldap_auth test suite. In order to verify the issue, i executed the following beaker job:
https://beaker.engineering.redhat.com/jobs/3753320

We got a GREEN run for this case, below are the snippets from beaker log output.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   netgroups do not honor entry cache nowait percentage bz822236
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

adding new entry "cn=netgrp_nowait,ou=Netgroup,dc=example,dc=com"

:: [ 05:26:31 ] :: [  BEGIN   ] :: Running 'systemctl stop sssd; rm -rvf /var/lib/sss/db/*.ldb; systemctl start sssd'
removed '/var/lib/sss/db/cache_implicit_files.ldb'
removed '/var/lib/sss/db/cache_LDAP.ldb'
removed '/var/lib/sss/db/config.ldb'
removed '/var/lib/sss/db/sssd.ldb'
removed '/var/lib/sss/db/timestamps_implicit_files.ldb'
removed '/var/lib/sss/db/timestamps_LDAP.ldb'
:: [ 05:26:32 ] :: [   PASS   ] :: Command 'systemctl stop sssd; rm -rvf /var/lib/sss/db/*.ldb; systemctl start sssd' (Expected 0, got 0)
:: [ 05:26:32 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:26:32 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:26:32 ] :: [   LOG    ] :: Initial response: .086072255
:: [ 05:26:38 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:26:39 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:26:39 ] :: [   LOG    ] :: Loop response: .063892199
:: [ 05:26:39 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:26:45 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:26:45 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:26:45 ] :: [   LOG    ] :: Loop response: .079466651
:: [ 05:26:45 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:26:51 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:26:51 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:26:51 ] :: [   LOG    ] :: Loop response: .068659921
:: [ 05:26:51 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:26:57 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:26:57 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:26:57 ] :: [   LOG    ] :: Loop response: .066285097
:: [ 05:26:57 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:27:03 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:27:03 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:27:03 ] :: [   LOG    ] :: Loop response: .062964022
:: [ 05:27:03 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:27:09 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:27:09 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:27:09 ] :: [   LOG    ] :: Loop response: .065896408
:: [ 05:27:09 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:27:15 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:27:15 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:27:15 ] :: [   LOG    ] :: Loop response: .072127583
:: [ 05:27:15 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:27:21 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:27:21 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:27:22 ] :: [   LOG    ] :: Loop response: .066976908
:: [ 05:27:22 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:27:28 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:27:28 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:27:28 ] :: [   LOG    ] :: Loop response: .069405211
:: [ 05:27:28 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:27:34 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:27:34 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:27:34 ] :: [   LOG    ] :: Loop response: .068985168
:: [ 05:27:34 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:27:40 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:27:40 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:27:40 ] :: [   LOG    ] :: Loop response: .072049084
:: [ 05:27:40 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:27:46 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:27:46 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:27:46 ] :: [   LOG    ] :: Loop response: .065980170
:: [ 05:27:46 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:27:52 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:27:52 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:27:52 ] :: [   LOG    ] :: Loop response: .073706983
:: [ 05:27:52 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:27:58 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:27:58 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:27:58 ] :: [   LOG    ] :: Loop response: .074754645
:: [ 05:27:58 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:28:04 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:28:04 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:28:04 ] :: [   LOG    ] :: Loop response: .069518966
:: [ 05:28:05 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:28:11 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:28:11 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:28:11 ] :: [   LOG    ] :: Loop response: .070767346
:: [ 05:28:11 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:28:17 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:28:17 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:28:17 ] :: [   LOG    ] :: Loop response: .070695967
:: [ 05:28:17 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:28:23 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:28:23 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:28:23 ] :: [   LOG    ] :: Loop response: .069597471
:: [ 05:28:23 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
:: [ 05:28:29 ] :: [  BEGIN   ] :: Running 'getent netgroup netgrp_nowait'
netgrp_nowait         (host1,kau10,example.com)
:: [ 05:28:29 ] :: [   PASS   ] :: Command 'getent netgroup netgrp_nowait' (Expected 0, got 0)
:: [ 05:28:29 ] :: [   LOG    ] :: Loop response: .069321224
:: [ 05:28:29 ] :: [   PASS   ] :: Test pass as the cache response time is lower. 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 118s
::   Assertions: 40 good, 0 bad
::   RESULT: PASS (netgroups do not honor entry cache nowait percentage bz822236)

** netgroups-do-not-honor-entry-cache-nowait-percentage-bz822236 PASS Score:0

Comment 6 errata-xmlrpc 2019-11-05 22:34:01 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:3651