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

Should not collect the previous.log which not corresponding with the --since/--since-time

XMLWordPrintable

    • Important
    • No
    • False
    • Hide

      None

      Show
      None
    • oc adm inspect --since and --since-time flags were previously not applied when retrieving logs for a pod's previous containers. This fix applies --since and --since-time flags to previous container logs as well as current container logs.
    • Release Note Not Required
    • In Progress

      Description of problem:

      Should not collect the previous.log which not corresponding with the --since/--since-time for `oc adm inspect` command

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

        4.16  

      How reproducible:

          always

      Steps to Reproduce:

          1.  `oc adm inspect --since-time="2024-01-25T01:35:27Z"  ns/openshift-multus`     

      Actual results:

          also collect the previous.log which not corresponding with the specified time.

      Expected results:

          Only collect the logs after the --since/--since-time.

      Additional info:

          

            fmissi Flavian Missi
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: