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 2018549

Summary: [RFE] Add plugin for Discovery product
Product: Red Hat Enterprise Linux 8 Reporter: Paul Dudley <pdudley>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Miroslav HradĂ­lek <mhradile>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: agk, bmr, jcastillo, jjansky, mhradile, mkluson, plambri, pmoravec, sbradley, theute, wlehman
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-4.3-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 10:50:23 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 Paul Dudley 2021-10-29 16:31:47 UTC
Product documentation:
https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/installing_and_configuring_discovery/index

https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/using_discovery/index

Product-specific RPMs:
discovery-0.9.3-1.el8d.noarch
discovery-tools-0.2.3-1.el8d.noarch

Files to capture:
- /root/discovery/db/volume/data/userdata/pg_log/*
- /root/discovery/server/volumes/log/{app.log,discovery-server.log}

Commands to capture:
- podman logs discovery
- podman logs dsc-db

Comment 2 Jose Castillo 2021-11-01 10:02:52 UTC
Paul, will any of the following command outputs have any sensitive data that we need to obfuscate, like passwords or keys? I imagine it's just logs, but better to be on the safe side:

- podman logs discovery
- podman logs dsc-db

Comment 3 Jose Castillo 2021-11-01 15:34:34 UTC
Hi Paul, 

I've sent a first version of the plugin to upstream sos, and you can find the pull request here:

https://github.com/sosreport/sos/pull/2739

Jake has made some very good points about it. The main point is deciding if using the already existing 'podman' plugin vs a newly created 'discovery' plugin.

Comment 4 Paul Dudley 2021-11-03 20:01:16 UTC
Jose,

Thanks! I was out a couple of days, I see that merge is completed now, we appreciate your work. If we think of other items to add we'll update this BZ.

Comment 6 Pavel Moravec 2021-12-06 21:25:10 UTC
Assuming the upstream PR will be merged soon, we will have this in sos-4.3 hence in RHEL8.7 / 9.1.

Comment 7 Pavel Moravec 2022-03-18 10:58:46 UTC
Hello,
as our QE might not have available systems for testing the fix, would you be able to verify the fix once available (as a candidate package for 8.7)?

Comment 10 Paul Dudley 2022-05-24 13:41:52 UTC
Thought I had updated this. I can test this. Is there a link to the 4.3-1 build to use?

Comment 19 Pavel Moravec 2022-06-10 06:50:11 UTC
Thanks for the testing, much appreciated. Our QE will move the BZ to Verified once they get to it.

Comment 23 errata-xmlrpc 2022-11-08 10:50:23 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 (sos bug fix and enhancement update), 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-2022:7732