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 2119373 - sssctl analyze --logdir option requires sssd to be configured
Summary: sssctl analyze --logdir option requires sssd to be configured
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: sssd
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: jstephen
QA Contact: Steeve Goveas
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-18 13:27 UTC by Alexey Tikhonov
Modified: 2022-11-15 13:08 UTC (History)
3 users (show)

Fixed In Version: sssd-2.7.3-3.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 11:17:44 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 6298 0 None open sssctl analyze --logdir option requires sssd to be running 2022-08-18 13:28:03 UTC
Github SSSD sssd pull 6304 0 None open SSSCTL: Allow analyzer to work without SSSD setup 2022-08-18 13:44:28 UTC
Red Hat Issue Tracker RHELPLAN-131412 0 None None None 2022-08-18 13:44:55 UTC
Red Hat Issue Tracker SSSD-4964 0 None None None 2022-08-18 13:39:18 UTC
Red Hat Product Errata RHBA-2022:8325 0 None None None 2022-11-15 11:18:00 UTC

Description Alexey Tikhonov 2022-08-18 13:27:05 UTC
The analyzer tool with --logdir option should be functional on a system where SSSD is not running, or configured. sssctl analyze codepath should circumvent sssd initialization and call the analyze python command.

Comment 1 Alexey Tikhonov 2022-08-18 13:59:17 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/6304

Comment 2 Alexey Tikhonov 2022-08-22 10:48:00 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6314 (backport PR)

* `sssd-2-7`
    * f8704cc24eafe190e6c78dc21535f6029d51d647 - SSSCTL: Allow analyzer to work without SSSD setup

Comment 3 Steeve Goveas 2022-08-25 09:16:49 UTC
[root@ci-vm-10-0-137-137 ~]# systemctl status sssd
○ sssd.service - System Security Services Daemon
     Loaded: loaded (/usr/lib/systemd/system/sssd.service; enabled; vendor preset: enabled)
     Active: inactive (dead)
  Condition: start condition failed at Thu 2022-08-25 04:33:26 EDT; 1min 6s ago
             ├─ ConditionPathExists=|/etc/sssd/sssd.conf was not met
             └─ ConditionDirectoryNotEmpty=|/etc/sssd/conf.d was not met

Aug 25 04:33:26 localhost systemd[1]: System Security Services Daemon was skipped because all trigger condition checks failed.

[root@ci-vm-10-0-137-137 ~]# ls /etc/sssd/
conf.d  pki

[root@ci-vm-10-0-137-137 ~]# yum install sssd-tools -yq
Installed:
  python3-sss-2.7.3-2.el9.x86_64          python3-sssdconfig-2.7.3-2.el9.noarch          python3-systemd-234-18.el9.x86_64          sssd-dbus-2.7.3-2.el9.x86_64          sssd-tools-2.7.3-2.el9.x86_64 

[root@ci-vm-10-0-137-137 ~]# sssctl analyze --logdir tmp/sssd/ request list 
[sssd] [confdb_expand_app_domains] (0x0010): No domains configured, fatal error!
[sssd] [sss_tool_route] (0x0010): Command initialization failed [2] No such file or directory

Add repo for latest sssd

[root@ci-vm-10-0-137-137 ~]# yum update sssd-tools --nogpgcheck -yp
[root@ci-vm-10-0-137-137 ~]# rpm -q sssd-tools
sssd-tools-2.7.3-3.el9.x86_64

RHEL 9.1 logs
[root@ci-vm-10-0-137-137 ~]# sssctl analyze --logdir tmp/sssd/ request list 
2022-08-25  3:59:15: [uid 0] CID #1: id
2022-08-25  3:59:15: [uid 0] CID #2: sshd: foo1@example1

RHEL 8.7 logs
[root@ci-vm-10-0-137-137 ~]# sssctl analyze --logdir tmp8.7/sssd/ request list 
2022-08-25  4:12:47: [uid 0] CID #1: id
2022-08-25  4:12:48: [uid 0] CID #2: /sbin/auditd

Comment 9 errata-xmlrpc 2022-11-15 11:17:44 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 (sssd 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-2022:8325


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