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 1946641 - sosreport is not capturing /etc/sssd/sssd.conf
Summary: sosreport is not capturing /etc/sssd/sssd.conf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.9
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jan Jansky
QA Contact: Maros Kopec
URL:
Whiteboard:
Depends On:
Blocks:
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)
Environment:
Last Closed: 2021-07-21 01:06:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
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-13 09:18:38 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):

sos-3.9-5.el7_9.2.noarch

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
Example
# rpm -qa | grep sos
sos-3.9-5.el7_9.2.noarch

# 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
representative.

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

  https://access.redhat.com/support/

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:
  /var/tmp/sosreport-rhel7-build-2021-04-06-xufvqff


# 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',)

to:

    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

https://github.com/sosreport/sos/blob/master/sos/report/plugins/sssd.py#L22

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.

https://access.redhat.com/errata/RHBA-2021:2804


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