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

Details

    • 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.
    • Bug Fix
    • In Progress

    Description

      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:

          

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: