Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1535390 - [Improvement] ipa-plugin - add missing log files and differentiate between IPA v3 and v4 installations
[Improvement] ipa-plugin - add missing log files and differentiate between IP...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos (Show other bugs)
7.4
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Pavel Moravec
Miroslav Hradílek
: FutureFeature, OtherQA
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-17 04:54 EST by Thorsten Scherf
Modified: 2018-04-10 14:07 EDT (History)
9 users (show)

See Also:
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 14:05:49 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github sosreport/sos/pull/1010 None None None 2018-01-26 09:14 EST
Github sosreport/sos/pull/1163 None None None 2018-01-26 09:14 EST
Github sosreport/sos/pull/1195 None None None 2018-01-26 09:15 EST
Github sosreport/sos/pull/1214 None None None 2018-02-13 10:48 EST
Red Hat Product Errata RHEA-2018:0963 None None None 2018-04-10 14:07 EDT

  None (edit)
Description Thorsten Scherf 2018-01-17 04:54:58 EST
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 09:15:35 EST
There was a typo in one of the PRs, fixed via PR 1195.
Comment 4 Pavel Moravec 2018-02-12 08:14:59 EST
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 09:49:58 EST
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 09:19:18 EST
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 10:48:10 EST
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 11:06:44 EST
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 14:05:49 EDT
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

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