Bug 1644047 - SOSCleaner does not remove all host names from the sosreport
Summary: SOSCleaner does not remove all host names from the sosreport
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: soscleaner
Version: epel7
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-29 20:50 UTC by Stephen Hobbs
Modified: 2019-10-25 02:38 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github jduncan-rva soscleaner issues 66 0 None closed soscleaner does not remove all hostnames and sub domain names 2020-01-27 15:27:12 UTC

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


Note You need to log in before you can comment on or make changes to this bug.