Bug 1392974 - [RFE] SOS Reports Should Include sssctl commands related with domain/status/config
Summary: [RFE] SOS Reports Should Include sssctl commands related with domain/status/c...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Pavel Moravec
QA Contact: BaseOS QE - Apps
URL: https://github.com/sosreport/sos/pull...
Whiteboard:
Depends On:
Blocks: 1473612
TreeView+ depends on / blocked
 
Reported: 2016-11-08 15:04 UTC by mpanaous
Modified: 2017-08-10 20:18 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-10 20:18:55 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description mpanaous 2016-11-08 15:04:41 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:


Description of problem:
Support team is heavily relies on the provided sosreports as to isolate issues and to move forward with tshoot. Focusing on IDM, after the release of RHEL 7.3
there are some new features that were added to a tool for sssd tshoot - sssctl - It would be beneficial to have the information related commands of this tool gathered withing the sosreport

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

Steps to Reproduce:
1. Generate SOS report

Actual results:

# sssctl domain-list
jstephen.local
ADCORP.jstephen.local
example.com

# sssctl domain-status -o jstephen.local
Online status: Online


# sssctl config-check

Expected results:

To see the above output in the sos_commands dir (under sssctl for example. if the system is configured and have the appropriate packages installed)

Additional info:

requirements as seen in the docs
1) Ensure you are running SSSD 1.14 version or higher and install the 
sssd-tools rpm

# rpm -q sssd
# yum install sssd-tools

2) Add ifp to the services section in sssd.conf
[sssd]
services = nss, pam, sudo, ifp

---

for now I am just adding
a. this article that explains a plethora of them
https://access.redhat.com/articles/2751311

b. the official doc 
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html-single/System-Level_Authentication_Guide/index.html#sssctl

Comment 1 Bryn M. Reeves 2016-11-08 15:54:28 UTC
> under sssctl for example. if the system is configured and have the appropriate 
> packages installed

The default location would be 'sos_commands/sssd/sssctl_$CMD_OPTS' - a new command added to the existing 'sssd' plugin (there doesn't seem to be any justification for a whole new plugin here).

> 2) Add ifp to the services section in sssd.conf
> [sssd]
> services = nss, pam, sudo, ifp

What does mean for sos, in terms of calling the sssctl command?

If this configuration change is required then we will only be able to collect this from customer systems where this change has already been made - sos does not modify customer configurations under any circumstances.

Comment 2 mpanaous 2016-11-09 08:12:58 UTC
(In reply to Bryn M. Reeves from comment #1)

Hello,

> > under sssctl for example. if the system is configured and have the appropriate 
> > packages installed
> 
> The default location would be 'sos_commands/sssd/sssctl_$CMD_OPTS' - a new
> command added to the existing 'sssd' plugin (there doesn't seem to be any
> justification for a whole new plugin here).
> 

ok, thanks for the clarification

> > 2) Add ifp to the services section in sssd.conf
> > [sssd]
> > services = nss, pam, sudo, ifp
> 
> What does mean for sos, in terms of calling the sssctl command?
> 
> If this configuration change is required then we will only be able to
> collect this from customer systems where this change has already been made -
> sos does not modify customer configurations under any circumstances.

no, not at all, my apologies for the inconvenience. I just wanted to highlight how this should be configured. This command is working only if this ifp parameter is in place and I am not aware if you have to specify any kind of checks similar to if this option then execute

Regards
M.Panaousis

Comment 6 Pavel Moravec 2017-08-10 20:18:55 UTC
This bug shall be fixed in package:

sos-3.4-6.el7.noarch.rpm

available via errata:

https://access.redhat.com/errata/RHBA-2017:2331


Thus I am closing this bug report.


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