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

[4.19] The error logs inside gather.json didn't include meaningful context

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • Done
    • None
    • N/A
    • None
    • None
    • None
    • None

      Description of problem:

      At present, the way of gather.json to print some error logs is as below:

       ["unexpected end of JSON input","unexpected end of JSON input","unexpected end of JSON input"]

      It's OK in most cases, but for the cluster that has more worker nodes, for example, if in a cluster has 100 worker nodes, this file is going to include 100 duplicate error logs, so we should organize these logs in a better way.

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

          

      How reproducible:

          1. Update the IO image to the debugging image, so IO can request the target pods instead of the true extractor pods, which can mock the abnormal scenarios.
      2. Create several pods to mock extractor pods to return responses without the right JSON format.
      3. Restarting IO.
      4. View the content of gather.json in the Insights archive.

      Steps to Reproduce:

          1. Update the IO image to the debugging image, so IO can request the target pods instead of the true extractor pods, which can mock the abnormal scenarios.
      2. Create several pods to mock extractor pods to return responses without the right JSON format.
      3. Restarting IO.
      4. View the content of gather.json in the Insights archive.     

      Actual results:

          4. gather.json includes some duplicate error logs

      Expected results:

          4. Should optimize printing method to display the error logs better.

      Additional info:

          Suggestion: Will it make more sense to print the relevant node IP of the error log?.

              jmesnil1@redhat.com Jeff Mesnil
              rh-ee-bazhou Baiyang Zhou
              None
              None
              Jeff Mesnil Jeff Mesnil
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: