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 1751691 - sssctl domain-list command displays results intermittently
Summary: sssctl domain-list command displays results intermittently
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Pavel Březina
QA Contact: sssd-qe
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-12 11:59 UTC by Sudhir Menon
Modified: 2023-04-20 15:07 UTC (History)
9 users (show)

Fixed In Version: sssd-2.2.3-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 16:56:04 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
sssd_ifp (209.32 KB, text/plain)
2019-09-12 12:04 UTC, Sudhir Menon
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 5047 0 None closed sssctl domain-list command displays results intermittently 2020-08-20 10:51:21 UTC
Red Hat Issue Tracker RHELPLAN-34415 0 None None None 2023-04-20 15:07:09 UTC
Red Hat Issue Tracker SSSD-2006 0 None None None 2023-04-20 15:07:41 UTC
Red Hat Product Errata RHBA-2020:1863 0 None None None 2020-04-28 16:56:17 UTC

Description Sudhir Menon 2019-09-12 11:59:43 UTC
Description of problem: sssctl domain-list command displays results intermittently


Version-Release number of selected component (if applicable):
sssd-2.2.0-19.el8.x86_64
ipa-server-4.8.0-10.module+el8.1.0+4098+f286395e.x86_64
ipa-healthcheck-0.3-4.module+el8.1.0+4098+f286395e.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install IPA server and establish trust
2. Now run the command #sssctl domain-list multiple times

Actual results:
sssctl domain-list displays the output intermittently.

[root@master sssd]# sssctl domain-list
implicit_files
rhel81.test
win2k16.test

[root@master sssd]# sssctl domain-list

2. Also the sssd_ifp log displays the below in debug mode.
(Thu Sep 12 17:18:04 2019) [sssd[ifp]] [sbus_issue_request_done] (0x0040): org.freedesktop.sssd.infopipe.ListDomains: Error [1432158307]: String contains invalid characters

Expected results: sssctl domain-list should display the output everytime.

Additional info: Attaching the sssd_ifp logs for reference

Comment 1 Sudhir Menon 2019-09-12 12:04:56 UTC
Created attachment 1614489 [details]
sssd_ifp

Comment 2 Lukas Slebodnik 2019-09-12 22:02:29 UTC
One liner :-)

https://pagure.io/SSSD/sssd/pull-request/4082

Comment 3 Pavel Březina 2019-09-16 08:43:02 UTC
* `master`
    * f0f0003cebc71fd3c45ce3acd32eabbfe1af520b - IFP: Fix talloc hierarchy for members of struct ifp_list_domains_state

Comment 4 Lukas Slebodnik 2019-09-16 10:01:31 UTC
(In reply to Pavel Březina from comment #3)
> * `master`
>     * f0f0003cebc71fd3c45ce3acd32eabbfe1af520b - IFP: Fix talloc hierarchy
> for members of struct ifp_list_domains_state

I know patch was already pushed but it would be good to
clone BZ to upstream and commit hash there as for the record as well.
Other downstream distributions might be interested in as well.
And it could be hidden in release notes without any upstream issue.

Comment 5 Pavel Březina 2019-09-17 12:39:19 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/4083

Comment 6 Michal Zidek 2020-01-15 12:12:18 UTC
This bug was fixed as part of the rebase we did in RHEL 8.2.0. It would be good to fully ack it and include in the erratum.

Comment 8 Madhuri 2020-02-18 10:00:20 UTC
Verified with
# rpm -qa sssd sssd-tools
sssd-2.2.3-6.el8.x86_64
sssd-tools-2.2.3-6.el8.x86_64


Checked by automation script,

Running the command # sssctl domain-list number of times and checked that it worked every time

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2020-02-18T07:04:17+0000 [ci-vm-10-0-154-53.ho] ::   sssctl domain list
2020-02-18T07:04:17+0000 [ci-vm-10-0-154-53.ho] ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2020-02-18T07:04:18+0000 [ci-vm-10-0-154-238.h] *** Current Time: Tue Feb 18 02:04:16 2020  Localwatchdog at: Wed Feb 19 02:03:16 2020
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [  BEGIN   ] :: Running 'cat /etc/sssd/sssd.conf'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] [sssd]
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] config_file_version = 2
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] services = nss, pam
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] domains = LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] [nss]
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] filter_groups = root
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] filter_users = root
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] [pam]
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] [domain/LDAP]
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] debug_level=0xFFF0
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] id_provider = ldap
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] ldap_uri = ldap://ci-vm-10-0-154-238.hosted.upshift.rdu2.redhat.com
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] ldap_search_base = dc=example,dc=com
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] ldap_tls_cacert = /etc/openldap/certs/cacert.asc
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [   PASS   ] :: Command 'cat /etc/sssd/sssd.conf' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [  BEGIN   ] :: Running 'sssctl domain-list'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] implicit_files
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [   PASS   ] :: Command 'sssctl domain-list' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [  BEGIN   ] :: Running 'sssctl domain-list'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] implicit_files
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [   PASS   ] :: Command 'sssctl domain-list' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [  BEGIN   ] :: Running 'sssctl domain-list'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] implicit_files
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [   PASS   ] :: Command 'sssctl domain-list' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [  BEGIN   ] :: Running 'sssctl domain-list'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] implicit_files
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [   PASS   ] :: Command 'sssctl domain-list' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [  BEGIN   ] :: Running 'sssctl domain-list'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] implicit_files
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [   PASS   ] :: Command 'sssctl domain-list' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [  BEGIN   ] :: Running 'sssctl domain-list'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] implicit_files
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:47 ] :: [   PASS   ] :: Command 'sssctl domain-list' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:48 ] :: [  BEGIN   ] :: Running 'sssctl domain-list'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] implicit_files
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:48 ] :: [   PASS   ] :: Command 'sssctl domain-list' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:48 ] :: [  BEGIN   ] :: Running 'sssctl domain-list'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] implicit_files
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:48 ] :: [   PASS   ] :: Command 'sssctl domain-list' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:48 ] :: [  BEGIN   ] :: Running 'sssctl domain-list'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] implicit_files
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:48 ] :: [   PASS   ] :: Command 'sssctl domain-list' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:48 ] :: [  BEGIN   ] :: Running 'sssctl domain-list'
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] implicit_files
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] LDAP
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] :: [ 02:04:48 ] :: [   PASS   ] :: Command 'sssctl domain-list' (Expected 0, got 0)
2020-02-18T07:04:48+0000 [ci-vm-10-0-154-53.ho] ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


Same checked when service = nss, pam, ifp in sssd section,

[root@ci-vm-10-0-153-130 ~]# cat /etc/sssd/sssd.conf | grep services
services = nss, pam, ifp

2020-02-18 09:54:21,358 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd48 - DEBUG - Exit code: 0
2020-02-18 09:54:21,851 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN ['systemctl', 'start', 'sssd']
2020-02-18 09:54:21,851 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd49 - DEBUG - RUN ['systemctl', 'start', 'sssd']
2020-02-18 09:54:23,115 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd49 - DEBUG - Exit code: 0
2020-02-18 09:54:33,348 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN sssctl domain-list
2020-02-18 09:54:33,348 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd50 - DEBUG - RUN sssctl domain-list
2020-02-18 09:54:34,153 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd50 - DEBUG - implicit_files
2020-02-18 09:54:34,153 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd50 - DEBUG - example1
2020-02-18 09:54:34,155 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd50 - DEBUG - Exit code: 0
2020-02-18 09:54:34,606 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN sssctl domain-list
2020-02-18 09:54:34,606 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd51 - DEBUG - RUN sssctl domain-list
2020-02-18 09:54:35,361 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd51 - DEBUG - implicit_files
2020-02-18 09:54:35,361 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd51 - DEBUG - example1
2020-02-18 09:54:35,363 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd51 - DEBUG - Exit code: 0
2020-02-18 09:54:35,854 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN sssctl domain-list
2020-02-18 09:54:35,855 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd52 - DEBUG - RUN sssctl domain-list
2020-02-18 09:54:36,610 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd52 - DEBUG - implicit_files
2020-02-18 09:54:36,610 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd52 - DEBUG - example1
2020-02-18 09:54:36,612 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd52 - DEBUG - Exit code: 0
2020-02-18 09:54:37,104 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN sssctl domain-list
2020-02-18 09:54:37,105 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd53 - DEBUG - RUN sssctl domain-list
2020-02-18 09:54:37,856 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd53 - DEBUG - implicit_files
2020-02-18 09:54:37,856 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd53 - DEBUG - example1
2020-02-18 09:54:37,857 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd53 - DEBUG - Exit code: 0
2020-02-18 09:54:38,350 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN sssctl domain-list
2020-02-18 09:54:38,350 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd54 - DEBUG - RUN sssctl domain-list
2020-02-18 09:54:39,103 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd54 - DEBUG - implicit_files
2020-02-18 09:54:39,103 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd54 - DEBUG - example1
2020-02-18 09:54:39,105 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd54 - DEBUG - Exit code: 0
2020-02-18 09:54:39,596 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN sssctl domain-list
2020-02-18 09:54:39,597 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd55 - DEBUG - RUN sssctl domain-list
2020-02-18 09:54:40,350 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd55 - DEBUG - implicit_files
2020-02-18 09:54:40,350 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd55 - DEBUG - example1
2020-02-18 09:54:40,352 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd55 - DEBUG - Exit code: 0
2020-02-18 09:54:40,844 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN sssctl domain-list
2020-02-18 09:54:40,844 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd56 - DEBUG - RUN sssctl domain-list
2020-02-18 09:54:41,604 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd56 - DEBUG - implicit_files
2020-02-18 09:54:41,604 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd56 - DEBUG - example1
2020-02-18 09:54:41,606 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd56 - DEBUG - Exit code: 0
2020-02-18 09:54:42,098 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN sssctl domain-list
2020-02-18 09:54:42,099 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd57 - DEBUG - RUN sssctl domain-list
2020-02-18 09:54:42,864 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd57 - DEBUG - implicit_files
2020-02-18 09:54:42,864 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd57 - DEBUG - example1
2020-02-18 09:54:42,864 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd57 - DEBUG - Exit code: 0
2020-02-18 09:54:43,355 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN sssctl domain-list
2020-02-18 09:54:43,356 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd58 - DEBUG - RUN sssctl domain-list
2020-02-18 09:54:44,109 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd58 - DEBUG - implicit_files
2020-02-18 09:54:44,110 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd58 - DEBUG - example1
2020-02-18 09:54:44,111 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd58 - DEBUG - Exit code: 0
2020-02-18 09:54:44,603 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN sssctl domain-list
2020-02-18 09:54:44,603 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd59 - DEBUG - RUN sssctl domain-list
2020-02-18 09:54:45,361 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd59 - DEBUG - implicit_files
2020-02-18 09:54:45,361 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd59 - DEBUG - example1
2020-02-18 09:54:45,363 - sssd.testlib.common.qe_class.QeHost.hostname3.cmd59 - DEBUG - Exit code: 0
PASSED2020-02-18 09:54:45,856 - sssd.testlib.common.qe_class.QeHost.hostname3.ParamikoTransport - INFO - RUN cp -f /etc/sssd/sssd.conf.orig /etc/sssd/sssd.conf

Comment 9 anuja 2020-02-25 11:33:19 UTC
Verified using : 
[root@master ~]# rpm -qa sssd-ipa ssd-tools
sssd-ipa-2.2.3-16.el8.x86_64
sssd-tools-2.2.3-16.el8.x86_64

Steps:
1:install ipa-server with trust established
2: check sssctl domain-list shows output consistently.

[root@master ~]# 
[root@master ~]# cat ad.sh 
for((i=1; i<10; i++))
do
     sssctl domain-list
     echo "------------"
done

[root@master ~]# sh ad.sh 
implicit_files
testrelm.test
ipaad2k16cin.test
------------
implicit_files
testrelm.test
ipaad2k16cin.test
------------
implicit_files
testrelm.test
ipaad2k16cin.test
------------
implicit_files
testrelm.test
ipaad2k16cin.test
------------
implicit_files
testrelm.test
ipaad2k16cin.test
------------
implicit_files
testrelm.test
ipaad2k16cin.test
------------
implicit_files
testrelm.test
ipaad2k16cin.test
------------
implicit_files
testrelm.test
ipaad2k16cin.test
------------
implicit_files
testrelm.test
ipaad2k16cin.test
------------

Comment 11 errata-xmlrpc 2020-04-28 16:56:04 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:1863


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