Bug 2222134

Summary: Discovery plugin no longer capturing data.
Product: Red Hat Enterprise Linux 9 Reporter: Paul Dudley <pdudley>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Daniel Záležák <dzalezak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.2CC: agk, dzalezak, jcastillo, jjansky, mhradile, plambri, sbradley, theute
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-4.6.0-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2238730 (view as bug list) Environment:
Last Closed: 2023-09-26 09:18:20 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:    
Bug Blocks: 2238730    

Description Paul Dudley 2023-07-11 23:34:50 UTC
There are no longer package names shipped as part of Red Hat Discovery. Previously we looked for;
~~~
    packages = ('discovery', 'discovery-tools',)
~~~

But these no longer exist. Only container deployment on base rhel is the delivery method now. The container names remain the same and 'discovery' and 'dsc-db' logs are still the most important. Without RPMs though I'm unsure how sos would determine how to enable the plugin.

New log locations are;
~~~
/var/lib/containers/storage/volumes/dsc-data/_data/userdata/log/ (psql logs)
/var/discovery/server/volumes/log/ (app and quipucords log)
~~~

Comment 1 Jose Castillo 2023-07-12 07:27:41 UTC
Thank you for the bug report Paul. We can check if a container with a certain name is running, and if so, capture the data. Just to verify, the container names will contain 'discovery' and/or 'discovery-tools'?

Comment 2 Paul Dudley 2023-07-12 13:04:57 UTC
Excellent, thank you. The container names to grab data from are 'dsc-db' and 'discovery'.

Comment 3 Pavel Moravec 2023-08-02 06:59:30 UTC
I raised https://github.com/sosreport/sos/pull/3324 . I left the current plugin triggers (packages) there for legacy reasons.

Let me know if whole directories are required to be collected, or (e.g. due to log size limit imposed by default) just some specific log files should be grabbed.

Comment 14 errata-xmlrpc 2023-09-26 09:18:20 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-2023:5354