Skip to content

[cleaner] Regression in hostname cleanup #4109

@arif-ali

Description

@arif-ali

As part of our testing to upload 4.10.0 to Debian, we have now found that the cleaner doesn't clean the hostname in ui.log, sos.log and manifest.josb, especially with the hostname in the filename scenario

below the hostname is autopkgtest

!!! TEST FAILED: hostname not obfuscated in all places !!!
/tmp/sosreport_test/sos_logs/ui.log:2025-08-20 14:53:38,619 INFO: Obfuscating /tmp/sos.8x8hjlm8/sosreport-autopkgtest-2025-08-20-bpmbueo
/tmp/sosreport_test/sos_logs/ui.log:2025-08-20 14:53:38,619 INFO: sosreport-autopkgtest-2025-08-20-bpmbueo :         Beginning obfuscation...
/tmp/sosreport_test/sos_logs/ui.log:2025-08-20 14:53:42,364 INFO: sosreport-autopkgtest-2025-08-20-bpmbueo :         Obfuscation completed [removed 42 unprocessable files]
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:32,767 INFO: [archive:TarFileArchive] initialised empty FileCacheArchive at '/tmp/sos.8x8hjlm8/sosreport-autopkgtest-2025-08-20-bpmbueo'
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,603 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Loaded /tmp/sos.8x8hjlm8/sosreport-autopkgtest-2025-08-20-bpmbueo as type sos report directory
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,717 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'usr/share/zoneinfo/Etc/UTC' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,780 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/01.1' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,782 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/01.5' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,784 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/1f.0' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,786 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/01/00.5' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,786 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/00.0' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,787 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/01/00.1' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,788 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/01.3' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,789 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/03/00.0' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,790 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/01.7' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,792 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/1f.3' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,794 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/01/00.3' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,796 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/02/00.0' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,797 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/05/00.0' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,807 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/01.0' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,808 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/01.4' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,810 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/02.0' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,812 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/01/00.6' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,814 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/01/00.2' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:38,815 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/03/00.1' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:39,107 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/01.2' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:39,110 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/01.6' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:39,112 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/00/1f.2' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:39,114 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/01/00.4' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:39,117 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/01/00.0' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:39,120 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/bus/pci/04/00.0' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:39,161 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/irq/2/effective_affinity_list' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:39,316 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/sys/net/ipv4/ip_local_reserved_ports' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:39,507 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'proc/2555/net/rt_acct' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,191 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/system/cpu/isolated' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,377 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/virtual/dmi/id/board_asset_tag' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,425 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/virtual/dmi/id/product_family' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,476 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/virtual/dmi/id/board_serial' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,476 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/virtual/dmi/id/chassis_serial' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,480 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/virtual/dmi/id/product_sku' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,494 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/pci0000:00/0000:00:1f.2/ata1/host1/scsi_host/host1/em_message_supported' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,515 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/pci0000:00/0000:00:1f.2/ata4/host4/scsi_host/host4/em_message_supported' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,536 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/pci0000:00/0000:00:1f.2/ata5/host5/scsi_host/host5/em_message_supported' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,537 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'var/log/apt/eipp.log.xz' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,679 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/virtual/dmi/id/chassis_asset_tag' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,682 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/virtual/dmi/id/product_serial' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:40,754 INFO: [cleaner[sosreport-autopkgtest-2025-08-20-bpmbueo]] Removing binary file 'sys/devices/pci0000:00/0000:00:01.3/0000:04:00.0/drm/card0/card0-Virtual-1/edid' from archive
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:42,199 INFO: [cleaner] Obfuscating directory names in archive sosreport-autopkgtest-2025-08-20-bpmbueo
/tmp/sosreport_test/sos_logs/sos.log:2025-08-20 14:53:42,294 INFO: [cleaner:sosreport-autopkgtest-2025-08-20-bpmbueo] Obfuscating symlink names
/tmp/sosreport_test/sos_reports/manifest.json:            "sosreport-autopkgtest-2025-08-20-bpmbueo": {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Kind/BugSomething is not working, and this fixes the issueKind/cleanercleaner component of sos

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions