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

CLI : Getting error "Failed to watch" err="context canceled" logger="UnhandledError" reflector="k8s.io/client-go/informers/factory.go:160" type="*v1.Pod" when streaming pipelineRun logs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • Pipelines 1.20.0
    • Tekton CLI
    • 2
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      CLI : Getting error "Failed to watch" err="context canceled" logger="UnhandledError" reflector="k8s.io/client-go/informers/factory.go:160" type="*v1.Pod" when streaming pipelineRun logs

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. Install 1.20 operator & download 1.20 opc/tkn cli 
      2. Create a new test namespace
      3. Apply the below files in the test namespace and create pipelineRun
        https://raw.githubusercontent.com/openshift-pipelines/release-tests/refs/heads/master/testdata/ecosystem/pipelines/cache-stepactions-python.yaml
        {}https://raw.githubusercontent.com/openshift-pipelines/release-tests/refs/heads/master/testdata/pvc/pvc.yaml
      4. Check the logs of the pipelineRun using opc/tkn CLI

      Actual results:

      Getting below error when using tkn/opc to fetch the logs

      "Failed to watch" err="context canceled" logger="UnhandledError" reflector="k8s.io/client-go/informers/factory.go:160" type="*v1.Pod"

       

      $ tkn version
      Client version: 0.42.0
      Chains version: v0.25.1
      Pipeline version: v1.3.1
      Triggers version: v0.33.0
      Operator version: v0.77.0
      Hub version: v1.22.3
      
      $ opc version
      OpenShift Pipelines Client: 1.20.0
      Tekton CLI: 0.42.0
      Pipelines as Code CLI: 0.37.0
      Tekton Results CLI: 0.16.0
      Manual Approval Gate CLI: 0.7.0
       

      Expected results:

      Logs should be streamed without any errors when using CLI

      Reproducibility (Always/Intermittent/Only Once):

      Intermittent

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

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

       

       *

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

                Created:
                Updated: