Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-2399

entries "epo" and "map" in hostname_map section of default_mappings change the "sosreport" file name

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • rhel-8.8.0
    • sos
    • sst_cee_supportability
    • None
    • False
    • Hide


    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:

      When the hostname_map section in /etc/sos/cleaner/default_mapping contains
      entries like these,

      Version-Release number of selected component (if applicable):

      How reproducible:


      Steps to Reproduce:

      1. Ensure that sos report will find hosts with name "epo" and "map"

      1. echo epo.map.example.com epo map >> /etc/hosts

      2. Remove the existing default mapping

      1. rm -f /etc/sos/cleaner/default_mapping

      3. Generate the report

      1. sos report --batch --case-id 00000000 --clean

      Actual results:

      sosreport-<hostname>-00000000-2023-08-04-zddhrim : Beginning obfuscation...
      sosreport-<hostname>-00000000-2023-08-04-zddhrim : Obfuscation completed [removed 920 unprocessable files]

      Successfully obfuscated 1 report(s)

      Creating compressed archive...

      A mapping of obfuscated elements is available at

      Your sosreport has been generated and saved in:

      Size 6.36MiB
      Owner root
      sha256 3c9e8df05545a6d57c058e03ea0d474dbdf8720b6d59a8493d3985b309cf1b75

      Please send this file to your support representative.

      Expected results:

      Your sosreport has been generated and saved in:

      Additional info:

            rhn-support-pmoravec Pavel Moravec
            rhn-support-casantos Carlos Santos
            Pavel Moravec Pavel Moravec
            Daniel Zalezak Daniel Zalezak
            1 Vote for this issue
            10 Start watching this issue