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

sos captures of some ceph commands in json format contain extra lines

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-8.8.0, rhel-10.0, rhel-9.7
    • sos
    • No
    • None
    • rhel-sst-cee-supportability
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      When we capture some outputs in ceph plugins, we add stderr to the file with the capture. An example can be found below:

      [root@mgmt-0 sosreport-mgmt-0-2024-12-12-iomdfym]# tail sos_commands/ceph_mon/ceph_report 
          "logm_first_committed": 46431,
          "logm_last_committed": 47024,
          "paxos": {
              "first_committed": 113955,
              "last_committed": 114461,
              "last_pn": 17400,
              "accepted_pn": 17400
          }
      }
      report 1248506449
      [root@mgmt-0 sosreport-mgmt-0-2024-12-12-iomdfym]# tail sos_commands/ceph_mon/json_output/ceph_pg_dump_--format_json-pretty 
                      "data_compressed": 0,
                      "data_compressed_allocated": 0,
                      "data_compressed_original": 0,
                      "omap_allocated": 0,
                      "internal_metadata": 0
                  }
              ]
          }
      }
      dumped all

      This causes problems when trying to parse these json outputs.

              rhn-support-jcastillo Jose Castillo
              rhn-support-jcastillo Jose Castillo
              se cee-supportability se cee-supportability
              RHEL Supportability QE Bot RHEL Supportability QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: