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

      Show
      None
    • 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:

      Always

      Steps to Reproduce:

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

      1. echo 192.168.122.1 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
      /var/tmp/sosrhost1rt-host140-00000000-2023-08-04-zddhrim-private_map

      Your sosreport has been generated and saved in:
      /var/tmp/sosrhost141rt-host14140-00000000-2023-08-04-zddhrim-obfuscated.tar.xz

      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:
      /var/tmp/sosreport-host14140-00000000-2023-08-04-zddhrim-obfuscated.tar.xz

      Additional info:

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

              Created:
              Updated:
              Resolved: