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

sos clean on an existing archive fails to clean anything

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • rhel-9.4.z
    • rhel-8.9.0.z, rhel-9.3.0.z
    • sos
    • None
    • sos-4.7.1-3.el8_9
    • Major
    • sst_cee_supportability
    • False
    • Hide

      None

      Show
      None
    • All

      What were you trying to do that didn't work?

       

      See https://github.com/sosreport/sos/pull/3616 and reproducer there. We need to backport that to RHEL8 and RHEL9.

      Please provide the package NVR for which bug is seen:

      sos-4.5.2 or newer

       

      How reproducible:

      100%

       

      Steps to reproduce

      1. # sos report -o host --batch
        ..
        Your sosreport has been generated and saved in:
                /var/tmp/sosreport-pmoravec-rhel8-2024-04-23-dxyytjg.tar.xz
        # rm -f /etc/sos/cleaner/default_mapping
        # sos clean --batch -vv /var/tmp/sosreport-pmoravec-rhel8-2024-04-23-dxyytjg.tar.xz
        ..
        [cleaner:sosreport-pmoravec-rhel8-2024-04-23-dxyytjg] Loaded /var/tmp/sosreport-pmoravec-rhel8-2024-04-23-dxyytjg.tar.xz as type sos report archive
        [cleaner] Pre-loading all archives into obfuscation maps
        [cleaner:sosreport-pmoravec-rhel8-2024-04-23-dxyytjg] Unable to retrieve sos_commands/host/hostname: no such file in archive
        ..
        # 
      1. .. and check if/what was cleaned inside the archive (at least hostnames should)
      2. .. and check if /etc/sos/cleaner/default_mapping was created with that mapping

      Expected results

      2. and 3.: at least hosts cleaning applied

      Actual results

      2. and 3.: no cleaning applied at all

       

            rhn-support-pmoravec Pavel Moravec
            rhn-support-pmoravec Pavel Moravec
            Pavel Moravec Pavel Moravec
            Miroslav Hradilek Miroslav Hradilek
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: