Bug 1946641 - sosreport is not capturing /etc/sssd/sssd.conf
Summary: sosreport is not capturing /etc/sssd/sssd.conf
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.9
Hardware: x86_64
OS: Linux
Target Milestone: rc
: ---
Assignee: Jan Jansky
QA Contact: Maros Kopec
Depends On:
TreeView+ depends on / blocked
Reported: 2021-04-06 14:44 UTC by Maria
Modified: 2021-07-22 08:07 UTC (History)
11 users (show)

Fixed In Version: sos-3.9-5.el7_9.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1967613 (view as bug list)
Last Closed: 2021-07-21 01:06:48 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github sosreport sos pull 2572 0 None closed [sssd] sssd plugin when sssd-common 2021-06-08 11:40:55 UTC
Red Hat Bugzilla 1967613 1 unspecified CLOSED sosreport is not capturing /etc/sssd/sssd.conf 2023-06-06 08:35:23 UTC

Internal Links: 1967613

Description Maria 2021-04-06 14:44:03 UTC
Description of problem:

sosreport is not capturing /etc/sssd/sssd.conf

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


How reproducible:

many customer cases

Comment 4 Jan Jansky 2021-04-06 15:07:26 UTC
Code in question: https://github.com/sosreport/sos/blob/legacy-3.9/sos/plugins/sssd.py

Line in question: https://github.com/sosreport/sos/blob/73524dc167179039e89a5af65f0c10c2b4fa4192/sos/plugins/sssd.py#L25

Did few tests in all was /etc/sssd/sssd.conf collected.

Can you please share with us at least 1 sosreport which is missing /etc/sssd/sssd.conf ?

Comment 5 Jan Jansky 2021-04-06 15:12:05 UTC
# rpm -qa | grep sos

# sosreport --build --batch -o sssd

sosreport (version 3.9)

This command will collect diagnostic and configuration information from
this Red Hat Enterprise Linux system and installed applications.

An archive containing the collected information will be generated in
/var/tmp/sos.ZZ33Pc and may be provided to a Red Hat support

Any information provided to Red Hat will be treated in accordance with
the published support policies at:


The generated archive may contain data considered sensitive and its
content should be reviewed by the originating organization before being
passed to any third party.

No changes will be made to system configuration.

 Setting up archive ...
 Setting up plugins ...
[plugin:sssd] skipped command 'sssctl config-check': required services missing: sssd. 
 Running plugins. Please wait ...

  Starting 1/1   sssd            [Running: sssd]

  Finished running plugins

Your sosreport build tree has been generated in:

# ls -al /var/tmp/sosreport-rhel7-build-2021-04-06-xufvqff/etc/sssd/sssd.conf 
-rw-------. 1 root root 195  6. dub 15.58 /var/tmp/sosreport-rhel7-build-2021-04-06-xufvqff/etc/sssd/sssd.conf

Comment 10 Pavel Moravec 2021-04-09 06:21:28 UTC
I might know what is going on:

sosreport automatically enables the plugin whenever "sssd" package is installed. If a customer runs "sosreport -[o|e] sssd", it will enable the plugin manually and config file will be collected. Since the config file is present (and sssd functionality available) on the system, sosreport should detect "sssd is present" in more broader way. Since:

# yum provides /usr/sbin/sssd
sssd-common-1.16.5-10.el7_9.7.x86_64 : Common files for the SSSD
Repo        : rhel-7-server-rpms
Matched from:
Filename    : /usr/sbin/sssd


and installing sssd-common package, no "sssd" package is present, shouldn't we change

    packages = ('sssd',)


    packages = ('sssd', 'sssd-common')

in sos/plugins/sssd.py#L21 ?

Could somebody with sssd packaging knowledge confirm, if the above test is precise detection of SSSD functionality/feature present on a system?

Comment 11 Pavel Moravec 2021-04-12 08:12:00 UTC
Raising needinfo on the reporter, to validate if "sssd-common" is the right (and the only relevant) package to be added to the test to automatically enable sssd plugin.

Comment 12 Jan Jansky 2021-05-05 12:25:03 UTC
Maria, can you please reply on question above?

Comment 14 Jan Jansky 2021-05-05 13:41:56 UTC
Hi Maria,
question which Pavel asked. Currently is sssd details collected by sosreport when "sssd" package is present as per


And all sosreport you shared does not have package sssd which means sosreport will not run sssd plugin.

Question was if we should run sssd plugin with different conditions for example if "sssd-common" package is installed or with any other package?

Same as for other plugins we will not collect everything every time, so we need to know conditions when to collect sssd related data.

Comment 25 errata-xmlrpc 2021-07-21 01:06:48 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 (sos bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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