Bug 2128133

Summary: The 'sos report --clean' confuses version with IP address.
Product: Red Hat Enterprise Linux 8 Reporter: Abhijeet Joshi <abjoshi>
Component: sosAssignee: Jan Jansky <jjansky>
Status: CLOSED CURRENTRELEASE QA Contact: Supportability QE <supportability-qe>
Severity: high Docs Contact:
Priority: high    
Version: 8.6CC: agk, bmr, plambri, pmoravec, sbradley, theute, vikas.goel
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sos-4.4-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-16 21:35:04 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 Abhijeet Joshi 2022-09-20 02:57:37 UTC
Description of problem:
--------------------------

The SOS cleaner confuses version with IP address. When a version string is in a.b.c.d format, e.g. 10.2.1.0, the 'sos report --clean' takes it as an IP address and masks the information. This is impacting as it will mask important product information while collecting issue evidence. The fix is required to make sure Veritas Flex product does not lose important product version information in the SOS reports generated.

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
* RHEL 8.6
* sos-4.*


How reproducible:
---------------------
Always reproducible. 


Steps to Reproduce:
1. Execute the below command:

# sos report --clean

Actual results:
--------------------
The utility will mask the release version of the products. 


Expected results:
-------------------
The utility should only mask the IP address and should not confuse version with IP address.


Additional info:
------------------

* The details of the issue can be found at (https://github.com/sosreport/sos/issues/2962). 
* The issue is already fixed in 8.7 with PR  "https://github.com/sosreport/sos/pull/2965". The customer is requesting it to be backported. 
* The RFE has been requested to make the 'sos report --clean' aware to not mask versions stored in files named after "release" and "version"

Comment 1 Pavel Moravec 2022-09-20 06:15:29 UTC
I doubt we would backport this to 8.6 - if requesting so, please provide business justification for such z-stream request and raise needinfo to cww to decide.

The upstream fix is not yet in RHEL8.7 even - despite we do rebase sos in each and every RHEL Y release, the fix is present in 4.4 only while 8.7 is based on 4.3.

I can offer RHEL8.8 candidate (not a final one, for sure) that does fix this issue:

https://people.redhat.com/pmoravec/sos-4.4-1/

You can use it for testing purposes, at least.

Comment 4 Pavel Moravec 2022-10-26 06:32:24 UTC
Thanks for confirmation it is fixed in sos-4.4-1 . Then we will release the fix officially in RHEL8.8 .

Comment 5 Pavel Moravec 2023-03-16 21:35:04 UTC
Closing the bugzilla as the fix has been delivered in sos-4.5.0-1.el8 released via https://access.redhat.com/errata/RHBA-2023:1300 errata.