Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1591027 - Update rhui-debug.py to collect information for RHUI 3+
Update rhui-debug.py to collect information for RHUI 3+
Status: CLOSED ERRATA
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools (Show other bugs)
3.0.0
Unspecified Unspecified
unspecified Severity unspecified
: 3.0.4
: 3.0.x
Assigned To: RHUI Bug List
Radek Bíba
:
Depends On: 1578678
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-13 18:41 EDT by Craig Donnelly
Modified: 2018-07-10 12:00 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-07-10 12:00:36 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)
Update rhui-debug for RHUI 3 (10.64 KB, patch)
2018-06-13 18:51 EDT, Craig Donnelly
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2153 None None None 2018-07-10 12:00 EDT

  None (edit)
Description Craig Donnelly 2018-06-13 18:41:08 EDT
Description of problem:
rhui-debug.py that was shipped in RHUI 3 is the same as RHUI 2.
Since it was not updated, we receive no information in a rhui-debug from RHUI 3+.

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


How reproducible: 100%


Steps to Reproduce:
1. Run rhui-debug.py

Actual results:
No useful data collected.

Expected results:
Full rhui-debug with data pertinent to RHUI 3.

Additional info:
Have created a patch to work with RHUI 3 useful information, plus a few additional new features for one-off rhui-debug runs. (Can grab mongodb logs and auto-xz compress the debug into a tar.)

Will add patch here after BZ creation.
Comment 3 Craig Donnelly 2018-06-13 18:51 EDT
Created attachment 1451074 [details]
Update rhui-debug for RHUI 3
Comment 7 Radek Bíba 2018-06-27 02:37:24 EDT
The problem is that in RHUI 3 the /usr/share/rh-rhua/rhui-debug.py script is part of the rh-rhui-tools package, which is NOT installed on CDS nodes. Therefore, "sosreport -o rhui" only produces:

[root@cds01 sosreport-cds01.example.com-20180627053658]# find
.
./sos_commands
./sos_commands/rhui
./sos_commands/rhui/rhui-debug
./sos_logs
./sos_logs/sos.log
./sos_logs/ui.log
./sos_reports
./sos_reports/sos.html
./sos_reports/sos.txt
./version.txt

And:

# cat sos_commands/rhui/rhui-debug
python: can't open file '/usr/share/rh-rhua/rhui-debug.py': [Errno 2] No such file or directory

It's not really feasible to want to install rh-rhui-tools by hand in order to be able to get nice sos reports from the CDS as there's a pretty wild dependency tree, including pulp-rpm-plugins, which tries to touch /var/lib/pulp, which is a symlink to a read-only filesystem on the CDS, so the installation fails.

Moreover, /usr/lib/python2.7/site-packages/sos/plugins/rhui.py (from the sos package) reads:

        if self.is_installed("pulp-cds"):
            cds = "--cds"
        else:
            cds = ""

But there's no pulp-cds in RHUI 3 anymore. When I hack this part of rhui.py and also copy rhui-debug.py to the CDS by hand, I get a tarball with a collection of the expected files. So it seems we need an update of sos and I guess we'll have to move debug.py to the rh-rhui-tools-libs, which IS installed on the CDS.

(This is not a regression in the updated debug.py file as the root cause is in rhui.py, so I think we can move on for now.)
Comment 8 Radek Bíba 2018-06-27 05:00:37 EDT
I think I should add that everything is fine on the RHUA node. I also tried running debug.py directly (outside of sos) and with -m, and got a collection including mongodb config files and log.
Comment 12 errata-xmlrpc 2018-07-10 12:00:36 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/RHBA-2018:2153

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