Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-17676

Pod Logs in OpenShift Web Console do not maintain white-space


    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.15.0
    • 4.13, 4.12, 4.11, 4.10
    • Management Console
    • None
    • +
    • Moderate
    • No
    • Rejected
    • False

      Description of problem:

      When multiple consecutive spaces are present in Pod logs, the spaces are collapsed and white-space is not retained when reviewing logs via the OpenShift Web Console. The white-space is retained when reviewing via the 'raw' output and via the `oc logs` command but the white-space is collapsed when reviewing via the `logs` panel in the OpenShift Web Console. 
      This mangles the output of tables in the logs.

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


      How reproducible:


      Steps to Reproduce:

      1. Create a Pod which outputs a table in the logs
      2. Review the output table in the Pod logs via the OpenShift Web Console

      Actual results:

      The spaces in the table are collapsed

      Expected results:

      The table formatting should be maintained

      Additional info:

      - During testing, I have added the `white-space:pre` styling for the log lines and this has resolved the white space issues. The styling of the logs do not appear to styled to retain the white-space formatting
      - Tested on OCP 4.10.53 and 4.13.4 and both have the issue

            pakratoc@redhat.com Pavel Kratochvil (Inactive)
            rhn-support-mwasher Michael Washer
            Yanping Zhang Yanping Zhang
            0 Vote for this issue
            9 Start watching this issue