Bug 1591027
Summary: | Update rhui-debug.py to collect information for RHUI 3+ | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Craig Donnelly <cdonnell> | ||||
Component: | Tools | Assignee: | RHUI Bug List <rhui-bugs> | ||||
Status: | CLOSED ERRATA | QA Contact: | Radek Bíba <rbiba> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.0.0 | CC: | lwilliam, mminar, tasander | ||||
Target Milestone: | 3.0.4 | ||||||
Target Release: | 3.0.x | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-07-10 16:00:36 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: | |||||||
Bug Depends On: | 1578678 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Craig Donnelly
2018-06-13 22:41:08 UTC
Created attachment 1451074 [details]
Update rhui-debug for RHUI 3
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.) 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. 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 |