Bug 1644047

Summary: SOSCleaner does not remove all host names from the sosreport
Product: [Fedora] Fedora EPEL Reporter: Stephen Hobbs <shobbs>
Component: soscleanerAssignee: Orphan Owner <extras-orphan>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: epel7   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-09 15:38:59 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 Stephen Hobbs 2018-10-29 20:50:10 UTC
Description of problem:
SoSCleaner does not remove other hostnames from the sosreport.

Version-Release number of selected component (if applicable):
soscleaner-0.2.2-13.fc28.noarch

How reproducible:
100%

Steps to Reproduce:
1. Have hostnames in the system (either in /etc/hosts or in messages)
2. Run sosreport
3. Run soscleaner

Actual results:
$ cat etc/hosts
10.230.230.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.230.230.23 host1.example.com
10.230.230.113 robocop.usersys.redhat.com  

The hostname of the local system is changed to host1.  However other hostnames in /etc/hosts are not changed.  This goes for other system hostnames in other locations in the sosreport as well.

Oct 29 13:11:01 host0 NetworkManager[698]: <info>  [1540833061.8365] dhcp4 (eth0):   domain name 'hq.gsslab.rdu.redhat.com'

Expected results:
The cleaner should remove all hostnames from the sosreport that may include any sub domains of the parent hostname.

In this case the hostname of the host is:
dhcp-10-12-211-147.hq.gsslab.rdu.redhat.com

It would be nice to remove anything in the sosreport containing any domain in the redhat.com space.

Additional info:

Comment 1 Jamie Duncan 2019-02-25 18:22:04 UTC
SOSCleaner 0.4.0 is GA and should remedy these issues: 
https://github.com/jduncan-rva/soscleaner/releases/tag/v0.4.0

Comment 3 Troy Dawson 2024-07-09 15:38:59 UTC
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.  EPEL 7 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.