Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-8019

[Results CLI] Document no support of live logs in the Results CLI commands

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Improve the error message if the user is trying to query logs for the running PipelineRun/TaskRun in opc results
    • Pipelines Sprint Crookshank 35

      Description of problem:

      New results CLI :Unable to stream livelogs for pipelinerun/taskrun | Getting Error: failed to copy logs: failed to get log: client error: Failed to stream logs err: there's no completion in pipelinerun/taskrun (code: 500)

      Also there in no -f flag which was present in opc pr logs command
       -f, --follow                        stream live logs

      Prerequisites (if any, like setup, operators/versions):
      1.19 pipelines operator with 1.19 cli

      Steps to Reproduce

      1. Install 1.19 pipelines operator
      2. Download 1.19 CLI
      3. Create the attached pipeline & pipelinerun files
      4. Fetch the live stream logs of pipelinerun/taskrun using opc results CLI

      Actual results:

      $ oc create -f pipelinerun.yaml 
      pipelinerun.tekton.dev/pipeline-results-24bk7 created
      
      $ opc results pr ls | grep Running
      pipeline-results-24bk7   8b4f753b-8df6-44c4-8718-c7f7b396bed5   3s ago    ---        Running
      
      $ opc results pr logs pipeline-results-24bk7
      Error: failed to copy logs: failed to get log: client error: Failed to stream logs err: there's no completion in pipelinerun
       (code: 500)
      
      $ opc results tr ls | grep Running
      pipeline-results-24bk7-hello     cc1d938a-af00-4e5f-90b5-053dbf5e2074   24s ago   ---        Running
      
      $ opc results tr logs pipeline-results-24bk7-hello
      Error: failed to copy logs: failed to get log: client error: Failed to stream logs err: there's no completion in taskrun
       (code: 500)
      

      Expected results:

      **

      $ oc create -f pipelinerun.yaml 
      pipelinerun.tekton.dev/pipeline-results-kv82l created
      
      $ opc pr ls | grep Running
      pipeline-results-kv82l   9 seconds ago    ---        Running
      
      $ opc pr logs pipeline-results-kv82l
      Pipeline still running ...
      
      $ opc pr logs -f pipeline-results-kv82l
      [hello : hello] [hello task] Sleeping for 59 seconds...
      [hello : hello] [hello task] Sleeping for 58 seconds...
      [hello : hello] [hello task] Sleeping for 57 seconds...
      [hello : hello] [hello task] Sleeping for 56 seconds...
      [hello : hello] [hello task] Sleeping for 55 seconds...
      [hello : hello] [hello task] Sleeping for 54 seconds...
      [hello : hello] [hello task] Sleeping for 53 seconds...
      [hello : hello] [hello task] Sleeping for 52 seconds...
      [hello : hello] [hello task] Sleeping for 51 seconds...
      [hello : hello] [hello task] Sleeping for 50 seconds...
      [hello : hello] [hello task] Sleeping for 49 seconds...
      [hello : hello] [hello task] Sleeping for 48 seconds...
       

       

      Reproducibility (Always/Intermittent/Only Once):

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

      pipeline.yaml

       *

        1. image-2025-09-15-12-17-58-682.png
          43 kB
          Sai Raju Manthina
        2. pipeline.yaml
          1.0 kB
          Sai Raju Manthina
        3. pipelinerun.yaml
          0.1 kB
          Sai Raju Manthina

              diagrawa Divyanshu Agrawal
              rh-ee-smanthin Sai Raju Manthina
              Sai Raju Manthina Sai Raju Manthina
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: