Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipelinerun keeps retrying even when encountering a permanent error until it times out. #6298

Closed
l-qing opened this issue Mar 5, 2023 · 0 comments · Fixed by #6297
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@l-qing
Copy link
Contributor

l-qing commented Mar 5, 2023

Expected Behavior

Pipelinerun can fail quickly.

Actual Behavior

Pipelinerun keeps retrying even when encountering a permanent error until it times out.

tekton controller logs:

{"level":"error","ts":"2023-03-05T09:36:10.614Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"bd14ab0b-5765-419c-b309-122e7f8dfacf","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:10.618Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"292fa55a-bcda-4f7f-be65-0394ed539f25","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:10.625Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"7108b95f-9194-437f-b76d-772cfa396e09","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:10.650Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"86e9a5dd-22d2-4ad5-b03e-3724d648a5bc","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:10.695Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"01fda33b-e322-4f9e-b0ef-f3d359fa42d9","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:10.781Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"cd12f673-cfd8-4e0d-a7b1-0f5460b06fb5","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:10.946Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"160a8b95-c14e-40f9-b79c-2b73fb3abee9","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:11.273Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"de67fc3e-9253-4161-a5c6-af6f06cfb416","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:11.918Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"f0657415-31a9-4b0d-8dfd-c18328080201","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:13.227Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"fc601da9-7d0c-4911-8918-b988769312d5","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:15.791Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"a8dcf9c0-9065-4958-9ca8-bdc1d4d621fa","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:20.917Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"7be24714-6de1-4051-a6b4-0e8e185cd196","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:31.162Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"ff4130f7-abdf-4d4a-89bb-cf797981fe21","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:36:51.648Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"46399380-7575-4618-af28-4455557f0b03","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:37:32.613Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"629d1c85-2fbe-428d-9485-0539671a0812","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:38:54.538Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"0e520fee-9e76-48e4-b77f-4fd72e9991ff","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}
{"level":"error","ts":"2023-03-05T09:41:38.383Z","logger":"tekton-pipelines-controller","caller":"pipelinerun/reconciler.go:294","msg":"Returned an error","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler","knative.dev/kind":"tekton.dev.PipelineRun","knative.dev/traceid":"6b5823af-5ced-45e6-82c8-ff40931338c1","knative.dev/key":"default/test-pipeline-run-with-create-run-failed","targetMethod":"ReconcileKind","error":"1 error occurred:\n\t* error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace \"source\" to be provided by pipelinerun for pipeline task \"hello-world\"\n\n","stacktrace":"github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun.(*reconcilerImpl).Reconcile\n\tgithub.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1beta1/pipelinerun/reconciler.go:294\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20221011175852-714b7630a836/controller/controller.go:491"}

Steps to Reproduce the Problem

  1. create resources:
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
  name: unit-test-task
  namespace: default
spec:
  workspaces:
  - name: source
  steps:
  - image: alpine:latest
    name: test
    script: |
      echo "hello world"
    workspaces:
    - name: source
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
  name: test-pipeline-run-with-create-run-failed
  namespace: default
spec:
  pipelineSpec:
    tasks:
    - name: hello-world
      taskRef:
        name: unit-test-task
      workspaces:
      - name: source
  1. describe pr
$ kubectl get pipelineruns.tekton.dev -n default test-pipeline-run-with-create-run-failed -w
test-pipeline-run-with-create-run-failed   Unknown     Started   2s
...
test-pipeline-run-with-create-run-failed   False       PipelineRunTimeout   87m         16m

$ kubectl describe pipelineruns.tekton.dev -n default test-pipeline-run-with-create-run-failed

Status:
  Conditions:
    Last Transition Time:  2023-03-05T11:05:10Z
    Reason:                Started
    Status:                Unknown
    Type:                  Succeeded
  Pipeline Spec:
    Tasks:
      Name:  hello-world
      Task Ref:
        Kind:  Task
        Name:  unit-test-task
      Workspaces:
        Name:  source
  Start Time:  2023-03-05T11:05:10Z
Events:
  Type     Reason                 Age                 From         Message
  ----     ------                 ----                ----         -------
  Normal   Started                46s                 PipelineRun
  Warning  TaskRunCreationFailed  36s (x12 over 46s)  PipelineRun  Failed to create TaskRun "test-pipeline-run-with-create-run-failed-hello-world": expected workspace "source" to be provided by pipelinerun for pipeline task "hello-world"
  Warning  InternalError          36s (x12 over 46s)  PipelineRun  1 error occurred:
           * error creating TaskRun called test-pipeline-run-with-create-run-failed-hello-world for PipelineTask hello-world from PipelineRun test-pipeline-run-with-create-run-failed: expected workspace "source" to be provided by pipelinerun for pipeline task "hello-world"

Additional Info

  • Kubernetes version:

    Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.2", GitCommit:"fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b", GitTreeState:"clean", BuildDate:"2023-02-22T13:32:21Z", GoVersion:"go1.20.1", Compiler:"gc", Platform:"darwin/arm64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.13", GitCommit:"592eca05be27f7d927d0b25cbb4241d75a9574bf", GitTreeState:"clean", BuildDate:"2022-10-12T10:50:48Z", GoVersion:"go1.17.13", Compiler:"gc", Platform:"linux/amd64"}
  • Tekton Pipeline version:

    Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'

 v0.41.0
@l-qing l-qing added the kind/bug Categorizes issue or PR as related to a bug. label Mar 5, 2023
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 5, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 7, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 9, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 10, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 11, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 14, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 16, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 17, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 18, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 20, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 21, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
l-qing added a commit to l-qing/pipeline that referenced this issue Mar 21, 2023
fixes tektoncd#6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
tekton-robot pushed a commit that referenced this issue Mar 22, 2023
fixes #6298

When creating taskrun and other run resources in pipelinerun,
if a permanent error occurs due to missing workspace configuration,
it will fail immediately instead of continuously retrying until timeout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant