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

Kubelet will not output logs after log file is rotated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • 4.14, 4.15
    • Node / Kubelet
    • Important
    • None
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, when running `oc logs -f <pod>`, the logs would not output anything after the log file was rotated. With this release, kubelet will output a log file after it has been rotated and the issue is resolved. (link:https://issues.redhat.com/browse/OCPBUGS-38959[*OCPBUGS-38959*])
      Show
      * Previously, when running `oc logs -f <pod>`, the logs would not output anything after the log file was rotated. With this release, kubelet will output a log file after it has been rotated and the issue is resolved. (link: https://issues.redhat.com/browse/OCPBUGS-38959 [* OCPBUGS-38959 *])
    • Bug Fix
    • In Progress

      This is a clone of issue OCPBUGS-38861. The following is the description of the original issue:

      Description of problem:

      In OpenShift 4.14 and 4.15 when running `oc logs <pod>` when the log file is rotated, it's stopped of getting more logs on the screen
      
      A good reference for this is the pull request https://github.com/kubernetes/kubernetes/pull/115702 where it should be present in OpenShift 4.16, but not backported.

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

      4.14.z
      4.15.z

      How reproducible:

      Always

      Steps to Reproduce:

          1. Generate logs in a pod
          2. Run `oc logs -f <pod>` and when the log file is rotated, not more logs are visible not following the rotated file.
          3.
          

      Actual results:

      `oc logs -f <pod>` is not able to follow the logs from the pod when they are rotated

      Expected results:

      `oc logs -f <pod>` is able to follow the logs from the pod when they are rotated

      Additional info:

          

              rh-ee-kehannon Kevin Hannon
              openshift-crt-jira-prow OpenShift Prow Bot
              Sunil Choudhary Sunil Choudhary
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: