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.
Description of problem:
sosreport plugin sssd is running into a timeout, if sssd isn't running:
[plugin:sssd] command 'sssctl domain-list' timed out after 300s
Version-Release number of selected component (if applicable): 3.6
How reproducible: Always
Steps to Reproduce:
1. Install sssd-tools
2. Stop sssd (if running)
3. Run sosreport
Actual results:
sosreport plugin sssd times out if sssd isn't running.
Expected results:
sosreport plugin sssd shouldn't run sssctl if sssd isn't running. While it's safe, it takes 5 minutes longer (300 second timeout) and it prints out an error (see description).
The reason is, that sssctl checks if sssd is running or not and awaits input on stdin (yes/no). Either check upfront if sssd is running and if not, do not execute sssctl or simply run it with echo "no" | sssctl.
Additional info:
Customer case will be linked in a hurry.
Link to the line in question: https://github.com/sosreport/sos/blob/d579fb745de0130132beea214edf85e597ffc54d/sos/plugins/sssd.py#L33
> do not execute sssctl or simply run it with echo "no" | sssctl.
Ugh, really? It doesn't provide any command line argument or environment setting to override this?
Bryn,
thanks for getting back to me on this case.
There is only one option, namely to _start_ it:
# sssctl domain-list --help
Usage: sssctl domain-list [OPTIONS...]
Command options:
-s, --start Start SSSD if it is not running
-v, --verbose Show domain list including primary or trusted domain type
Help options:
-?, --help Show this help message
--usage Display brief usage message
But I don't think we want to automatically start sssd upon running sosreport.
Yes, I know, echo-ing something is ugly, but I don't see any better option ATM.
Oliver
Hi Bryn!
Thanks for the update and _many_ thanks for reaching out to the SSSD developers. Since SSSD is a critical part of the system, I'm pretty sure we'll have to wait quite a while until we get this down into our product(s). While I highly appreciate adding this option as a middle-term goal, I'd prefer to get a workaround into sos sooner. Do you think that is feasible?
Oliver
I'd rather not start adding hacks until we at least know what sort of schedule we are talking about. Once we add them it is very hard to ever remove them, and this is a pretty clear deficiency in another component. Once we have had a proper discussion with the SSSD folks and agree a solution then we can consider whether to do anything else here.
(In reply to Bryn M. Reeves from comment #5)
> I've spoken to one of the SSSD developers, and they would be happy to look
> at a request to add a --nostart option or similar. I'll open a bug.
Hi Bryn,
is there a BZ for that? Or potential ETA of sssd fix known?
(In reply to Pavel Moravec from comment #9)
> (In reply to Bryn M. Reeves from comment #5)
> > I've spoken to one of the SSSD developers, and they would be happy to look
> > at a request to add a --nostart option or similar. I'll open a bug.
>
> Hi Bryn,
> is there a BZ for that? Or potential ETA of sssd fix known?
Kindly requesting this needinfo ;-)
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/RHEA-2020:4034
Description of problem: sosreport plugin sssd is running into a timeout, if sssd isn't running: [plugin:sssd] command 'sssctl domain-list' timed out after 300s Version-Release number of selected component (if applicable): 3.6 How reproducible: Always Steps to Reproduce: 1. Install sssd-tools 2. Stop sssd (if running) 3. Run sosreport Actual results: sosreport plugin sssd times out if sssd isn't running. Expected results: sosreport plugin sssd shouldn't run sssctl if sssd isn't running. While it's safe, it takes 5 minutes longer (300 second timeout) and it prints out an error (see description). The reason is, that sssctl checks if sssd is running or not and awaits input on stdin (yes/no). Either check upfront if sssd is running and if not, do not execute sssctl or simply run it with echo "no" | sssctl. Additional info: Customer case will be linked in a hurry. Link to the line in question: https://github.com/sosreport/sos/blob/d579fb745de0130132beea214edf85e597ffc54d/sos/plugins/sssd.py#L33