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.

Bug 1535390

Summary: [Improvement] ipa-plugin - add missing log files and differentiate between IPA v3 and v4 installations
Product: Red Hat Enterprise Linux 7 Reporter: Thorsten Scherf <tscherf>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Miroslav HradĂ­lek <mhradile>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: agk, bmr, gavin, lmiksik, mhradile, plambri, salmy, sbradley, tscherf
Target Milestone: rcKeywords: FutureFeature, OtherQA
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-3.5-6.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 18:05:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thorsten Scherf 2018-01-17 09:54:58 UTC
Description of problem:
- Several logs have been missing in ipa plugin.
- The PKI subsystem uses different fpaths in IPA v3 and v4.

The following PRs have been created:
https://github.com/sosreport/sos/pull/1010
https://github.com/sosreport/sos/pull/1163

Please merge and backport to RHEL-7.5 when this is feasible.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Pavel Moravec 2018-01-26 14:15:35 UTC
There was a typo in one of the PRs, fixed via PR 1195.

Comment 4 Pavel Moravec 2018-02-12 13:14:59 UTC
posted to upsetram

business justification for 7.5 inclusion:

- It adds missing log files to the sosreport. At the moment there is a
lot of ping-pong because people need to manually request those log
files from customers. We could save time by having this log files
already available as part of the sosreport. This would ultimately help
to reduce the time it takes to resolve a case.

- The BZ also resolves an issue with certutil where the utility is
using a wrong path in *all* RHEL7 installations and the sosreport only
contains an empty file rather than the output from certutil which is
supposed to show all certificates stored in the PKI NSS database.
Since certificate related issues produce the highest load on CEE (from
IdM perspective), having this BZ resolves would mitigate the need for
support engineers to ask customers to run the certutil command
manually. This would ultimately also help to reduce the time it takes
to resolve a case.

Comment 7 Pavel Moravec 2018-02-12 14:49:58 UTC
Steve,
could you pls. pm_ack and add exception to this bug to 7.5.0?

business justification in c#4, technically it isnt RFE but improvement with biggest code change only in:

https://github.com/sosreport/sos/pull/1163/files

(i.e. no new feature, just typical sosreport plugin enhancement)

Comment 9 Pavel Moravec 2018-02-13 14:19:18 UTC
Thorsten,
could you please verify the BZ against sos-3.5-5 ?


A yum repository for the build of sos-3.5-5.el7 (task 15272478) is available at:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.5/5.el7/

You can install the rpms locally by putting this .repo file in your /etc/yum.repos.d/ directory:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.5/5.el7/sos-3.5-5.el7.repo

RPMs and build logs can be found in the following locations:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.5/5.el7/noarch/

Comment 10 Pavel Moravec 2018-02-13 15:48:10 UTC
If neither v3 or v4 is installed, sosreport -o ipa raises exception:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1252, in setup
    plug.setup()
  File "/usr/lib/python2.7/site-packages/sos/plugins/ipa.py", line 129, in setup
    if ipa_version == "v4":
UnboundLocalError: local variable 'ipa_version' referenced before assignment


Fixed via PR 1214

Comment 11 Pavel Moravec 2018-02-13 16:06:44 UTC
Thorsten,
could you verify against this - hopefully proper - build ?


A yum repository for the build of sos-3.5-6.el7 (task 15274052) is available at:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.5/6.el7/

You can install the rpms locally by putting this .repo file in your /etc/yum.repos.d/ directory:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.5/6.el7/sos-3.5-6.el7.repo

RPMs and build logs can be found in the following locations:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.5/6.el7/noarch/

Comment 18 errata-xmlrpc 2018-04-10 18:05:49 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, 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-2018:0963