-
Bug
-
Resolution: Done
-
Normal
-
Pipelines 1.19.0
-
1
-
False
-
-
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
- Install 1.19 pipelines operator
- Download 1.19 CLI
- Create the attached pipeline & pipelinerun files
- 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):
*
- is depended on by
-
SRVKP-8141 [TRACKER] [release testing] Bug verification
-
- Closed
-