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

[API] Get apis/v1beta1/runs/${run-id} didn't get the full status, if custom task was defined in the pipeline #488

Closed
fenglixa opened this issue Mar 8, 2021 · 9 comments · Fixed by #648
Labels

Comments

@fenglixa
Copy link
Member

fenglixa commented Mar 8, 2021

/kind bug

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

  1. Run a PR which with custom task defined inside via kfp UI.
  2. Call GET apis/v1beta1/runs/${run-id} didn't get the full result of this run.

What did you expect to happen:
Call GET apis/v1beta1/runs/${run-id} should get the complete result of this run

Additional information:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Python Version (use python --version):
  • SDK Version:
  • Tekton Version (use tkn version):
  • Kubernetes Version (use kubectl version):
  • OS (e.g. from /etc/os-release):
@fenglixa
Copy link
Member Author

fenglixa commented Mar 8, 2021

@Tomcli , do you know who is familar with this issue?

@fenglixa fenglixa changed the title [API] Get apis/v1beta1/runs/${run-id} didn't get the fully result, if custom task was defined [API] Get apis/v1beta1/runs/${run-id} didn't get the full status, if custom task was defined in the pipeline Mar 8, 2021
@Tomcli
Copy link
Member

Tomcli commented Mar 8, 2021

Right now, the Get apis/v1beta1/runs/${run-id} only returns the pipelinerun spec which doesn't include the pipeline loop spec due to tektoncd/pipeline#3682

@Tomcli
Copy link
Member

Tomcli commented Mar 8, 2021

Although we can make the api to do some extra api calls for getting the custom task crd, but it will need to alter the api spec and it could add some extra workloads to the etcd and loop controller. Maybe I can make it as an experimental feature for now so people can opt-out if they don't want to decrease performance.

@Tomcli
Copy link
Member

Tomcli commented Mar 8, 2021

Oh i think this also requires to alter the database schema since we need a place to store the custom task crd...

@fenglixa
Copy link
Member Author

fenglixa commented Mar 9, 2021

Thanks @Tomcli, this issue is not related to TaskSpec defination for custom task.
When get the PipelineRun status via this API. It returned the custom task CR result but not the pipelinerun result. That's why the issue logged.

@Tomcli
Copy link
Member

Tomcli commented Mar 9, 2021

@fenglixa sorry i couldn't reproduce this issue. I believe you also use kfp-tekton 0.7? In kfp-tekton 0.7 with custom task, this is what i get from the runs api. It returns the PipelineRun CR result. The runs status is under status.run. and regular task status is under status.taskruns.

{"run":{"id":"b86e35bb-9cf3-4dba-a752-f8437a7008ac","name":"Run of loop-example-basic (02ad9)","pipeline_spec":{"workflow_manifest":"{\"kind\":\"PipelineRun\",\"apiVersion\":\"tekton.dev/v1beta1\",\"metadata\":{\"name\":\"pr-loop-example\",\"creationTimestamp\":null,\"labels\":{\"mylooplabels\":\"mylooplabels\"},\"annotations\":{\"tekton.dev/example-loop-pipeline\":\"{\\\"spec\\\":{\\\"pipelineSpec\\\":{\\\"params\\\":[{\\\"name\\\":\\\"message\\\",\\\"type\\\":\\\"string\\\"}],\\\"tasks\\\":[{\\\"name\\\":\\\"echo-loop-task\\\",\\\"params\\\":[{\\\"name\\\":\\\"message\\\",\\\"value\\\":\\\"$(params.message)\\\"}],\\\"taskSpec\\\":{\\\"params\\\":[{\\\"name\\\":\\\"message\\\",\\\"type\\\":\\\"string\\\"}],\\\"steps\\\":[{\\\"name\\\":\\\"echo\\\",\\\"image\\\":\\\"ubuntu\\\",\\\"imagePullPolicy\\\":\\\"IfNotPresent\\\",\\\"script\\\":\\\"#!/usr/bin/env bash\\\\necho \\\\\\\"$(params.message)\\\\\\\"\\\\n\\\"}]}}]},\\\"iterateParam\\\":\\\"message\\\"}}\"}},\"spec\":{\"pipelineSpec\":{\"tasks\":[{\"name\":\"first-task\",\"taskSpec\":{\"metadata\":{},\"steps\":[{\"name\":\"echo\",\"image\":\"ubuntu\",\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\",\"script\":\"#!/usr/bin/env bash\\necho \\\"I am the first task before the loop task\\\"\\n\"}]}},{\"name\":\"loop-task\",\"taskRef\":{\"name\":\"pipelineloop\",\"kind\":\"PipelineLoop\",\"apiVersion\":\"custom.tekton.dev/v1alpha1\"},\"runAfter\":[\"first-task\"],\"params\":[{\"name\":\"message\",\"value\":[\"I am the first one\",\"I am the second one\",\"I am the third one\"]}]},{\"name\":\"last-task\",\"taskSpec\":{\"metadata\":{},\"steps\":[{\"name\":\"echo\",\"image\":\"ubuntu\",\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\",\"script\":\"#!/usr/bin/env bash\\necho \\\"I am the last task after the loop task\\\"\\n\"}]},\"runAfter\":[\"loop-task\"]}]}},\"status\":{}}"},"resource_references":[{"key":{"type":"EXPERIMENT","id":"ce66397e-2b16-4818-b10c-bf1a83c4fd64"},"name":"Default","relationship":"OWNER"},{"key":{"type":"PIPELINE_VERSION","id":"4de2dc93-db7b-4e1b-9764-873f0e8b74c3"},"name":"loop-example-basic","relationship":"CREATOR"}],"service_account":"pipeline-runner","created_at":"2021-03-09T18:37:54Z","scheduled_at":"1970-01-01T00:00:00Z","finished_at":"2021-03-09T18:38:23Z","status":"Succeeded"},"pipeline_runtime":{"workflow_manifest":"{\"metadata\":{\"name\":\"pr-loop-example-b86e3\",\"namespace\":\"kubeflow\",\"selfLink\":\"/apis/tekton.dev/v1beta1/namespaces/kubeflow/pipelineruns/pr-loop-example-b86e3\",\"uid\":\"5bde3ff5-cb6d-4780-869d-cf567139efa6\",\"resourceVersion\":\"8920124\",\"generation\":1,\"creationTimestamp\":\"2021-03-09T18:37:54Z\",\"labels\":{\"mylooplabels\":\"mylooplabels\",\"pipeline/runid\":\"b86e35bb-9cf3-4dba-a752-f8437a7008ac\",\"tekton.dev/pipeline\":\"pr-loop-example-b86e3\"},\"annotations\":{\"pipelines.kubeflow.org/run_name\":\"Run of loop-example-basic (02ad9)\",\"tekton.dev/artifact_bucket\":\"mlpipeline\",\"tekton.dev/artifact_endpoint\":\"minio-service.kubeflow:9000\",\"tekton.dev/artifact_endpoint_scheme\":\"http://\",\"tekton.dev/example-loop-pipeline\":\"{\\\"spec\\\":{\\\"pipelineSpec\\\":{\\\"params\\\":[{\\\"name\\\":\\\"message\\\",\\\"type\\\":\\\"string\\\"}],\\\"tasks\\\":[{\\\"name\\\":\\\"echo-loop-task\\\",\\\"params\\\":[{\\\"name\\\":\\\"message\\\",\\\"value\\\":\\\"$(params.message)\\\"}],\\\"taskSpec\\\":{\\\"params\\\":[{\\\"name\\\":\\\"message\\\",\\\"type\\\":\\\"string\\\"}],\\\"steps\\\":[{\\\"name\\\":\\\"echo\\\",\\\"image\\\":\\\"ubuntu\\\",\\\"imagePullPolicy\\\":\\\"IfNotPresent\\\",\\\"script\\\":\\\"#!/usr/bin/env bash\\\\necho \\\\\\\"$(params.message)\\\\\\\"\\\\n\\\"}]}}]},\\\"iterateParam\\\":\\\"message\\\"}}\"},\"managedFields\":[{\"manager\":\"apiserver\",\"operation\":\"Update\",\"apiVersion\":\"tekton.dev/v1beta1\",\"time\":\"2021-03-09T18:37:54Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:metadata\":{\"f:annotations\":{\".\":{},\"f:pipelines.kubeflow.org/run_name\":{},\"f:tekton.dev/artifact_bucket\":{},\"f:tekton.dev/artifact_endpoint\":{},\"f:tekton.dev/artifact_endpoint_scheme\":{},\"f:tekton.dev/example-loop-pipeline\":{}},\"f:labels\":{\".\":{},\"f:mylooplabels\":{},\"f:pipeline/runid\":{}}},\"f:spec\":{\".\":{},\"f:pipelineSpec\":{\".\":{},\"f:tasks\":{}},\"f:serviceAccountName\":{}}}},{\"manager\":\"controller\",\"operation\":\"Update\",\"apiVersion\":\"tekton.dev/v1beta1\",\"time\":\"2021-03-09T18:38:23Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:metadata\":{\"f:labels\":{\"f:tekton.dev/pipeline\":{}}},\"f:status\":{\".\":{},\"f:completionTime\":{},\"f:conditions\":{},\"f:pipelineSpec\":{\".\":{},\"f:tasks\":{}},\"f:runs\":{\".\":{},\"f:pr-loop-example-b86e3-loop-task-77sd2\":{\".\":{},\"f:pipelineTaskName\":{},\"f:status\":{\".\":{},\"f:completionTime\":{},\"f:conditions\":{},\"f:extraFields\":{\".\":{},\"f:pipelineLoopSpec\":{\".\":{},\"f:iterateNumeric\":{},\"f:iterateParam\":{},\"f:pipelineSpec\":{\".\":{},\"f:params\":{},\"f:tasks\":{}}},\"f:pipelineRuns\":{\".\":{},\"f:pr-loop-example-b86e3-loop-task-77sd2-00001-9s5v9\":{\".\":{},\"f:iteration\":{},\"f:status\":{\".\":{},\"f:completionTime\":{},\"f:conditions\":{},\"f:pipelineSpec\":{\".\":{},\"f:params\":{},\"f:tasks\":{}},\"f:startTime\":{},\"f:taskRuns\":{\".\":{},\"f:pr-loop-example-b86e3-loop-task-77sd2-00001-9s5v9-echo-lo-q8qnm\":{\".\":{},\"f:pipelineTaskName\":{},\"f:status\":{\".\":{},\"f:completionTime\":{},\"f:conditions\":{},\"f:podName\":{},\"f:startTime\":{},\"f:steps\":{},\"f:taskSpec\":{\".\":{},\"f:params\":{},\"f:steps\":{}}}}}}},\"f:pr-loop-example-b86e3-loop-task-77sd2-00002-ftrfv\":{\".\":{},\"f:iteration\":{},\"f:status\":{\".\":{},\"f:completionTime\":{},\"f:conditions\":{},\"f:pipelineSpec\":{\".\":{},\"f:params\":{},\"f:tasks\":{}},\"f:startTime\":{},\"f:taskRuns\":{\".\":{},\"f:pr-loop-example-b86e3-loop-task-77sd2-00002-ftrfv-echo-lo-7mrw6\":{\".\":{},\"f:pipelineTaskName\":{},\"f:status\":{\".\":{},\"f:completionTime\":{},\"f:conditions\":{},\"f:podName\":{},\"f:startTime\":{},\"f:steps\":{},\"f:taskSpec\":{\".\":{},\"f:params\":{},\"f:steps\":{}}}}}}},\"f:pr-loop-example-b86e3-loop-task-77sd2-00003-fcmsm\":{\".\":{},\"f:iteration\":{},\"f:status\":{\".\":{},\"f:completionTime\":{},\"f:conditions\":{},\"f:pipelineSpec\":{\".\":{},\"f:params\":{},\"f:tasks\":{}},\"f:startTime\":{},\"f:taskRuns\":{\".\":{},\"f:pr-loop-example-b86e3-loop-task-77sd2-00003-fcmsm-echo-lo-hfmnv\":{\".\":{},\"f:pipelineTaskName\":{},\"f:status\":{\".\":{},\"f:completionTime\":{},\"f:conditions\":{},\"f:podName\":{},\"f:startTime\":{},\"f:steps\":{},\"f:taskSpec\":{\".\":{},\"f:params\":{},\"f:steps\":{}}}}}}}}},\"f:observedGeneration\":{},\"f:results\":{},\"f:startTime\":{}}}},\"f:startTime\":{},\"f:taskRuns\":{\".\":{},\"f:pr-loop-example-b86e3-first-task-q4btk\":{\".\":{},\"f:pipelineTaskName\":{},\"f:status\":{\".\":{},\"f:completionTime\":{},\"f:conditions\":{},\"f:podName\":{},\"f:startTime\":{},\"f:steps\":{},\"f:taskSpec\":{\".\":{},\"f:steps\":{}}}},\"f:pr-loop-example-b86e3-last-task-xbpdt\":{\".\":{},\"f:pipelineTaskName\":{},\"f:status\":{\".\":{},\"f:completionTime\":{},\"f:conditions\":{},\"f:podName\":{},\"f:startTime\":{},\"f:steps\":{},\"f:taskSpec\":{\".\":{},\"f:steps\":{}}}}}}}}]},\"spec\":{\"pipelineSpec\":{\"tasks\":[{\"name\":\"first-task\",\"taskSpec\":{\"metadata\":{},\"steps\":[{\"name\":\"echo\",\"image\":\"ubuntu\",\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\",\"script\":\"#!/usr/bin/env bash\\necho \\\"I am the first task before the loop task\\\"\\n\"}]}},{\"name\":\"loop-task\",\"taskRef\":{\"name\":\"pipelineloop\",\"kind\":\"PipelineLoop\",\"apiVersion\":\"custom.tekton.dev/v1alpha1\"},\"runAfter\":[\"first-task\"],\"params\":[{\"name\":\"message\",\"value\":[\"I am the first one\",\"I am the second one\",\"I am the third one\"]}]},{\"name\":\"last-task\",\"taskSpec\":{\"metadata\":{},\"steps\":[{\"name\":\"echo\",\"image\":\"ubuntu\",\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\",\"script\":\"#!/usr/bin/env bash\\necho \\\"I am the last task after the loop task\\\"\\n\"}]},\"runAfter\":[\"loop-task\"]}]},\"serviceAccountName\":\"pipeline-runner\",\"timeout\":\"1h0m0s\"},\"status\":{\"conditions\":[{\"type\":\"Succeeded\",\"status\":\"True\",\"lastTransitionTime\":\"2021-03-09T18:38:23Z\",\"reason\":\"Succeeded\",\"message\":\"Tasks Completed: 3 (Failed: 0, Cancelled 0), Skipped: 0\"}],\"startTime\":\"2021-03-09T18:37:54Z\",\"completionTime\":\"2021-03-09T18:38:23Z\",\"taskRuns\":{\"pr-loop-example-b86e3-first-task-q4btk\":{\"pipelineTaskName\":\"first-task\",\"status\":{\"conditions\":[{\"type\":\"Succeeded\",\"status\":\"True\",\"lastTransitionTime\":\"2021-03-09T18:37:59Z\",\"reason\":\"Succeeded\",\"message\":\"All Steps have completed executing\"}],\"podName\":\"pr-loop-example-b86e3-first-task-q4btk-pod-9rpv8\",\"startTime\":\"2021-03-09T18:37:54Z\",\"completionTime\":\"2021-03-09T18:37:59Z\",\"steps\":[{\"terminated\":{\"exitCode\":0,\"reason\":\"Completed\",\"startedAt\":\"2021-03-09T18:37:58Z\",\"finishedAt\":\"2021-03-09T18:37:58Z\",\"containerID\":\"containerd://2d00baa0e342b51a47da87ffa3299670ae91a795fd563783dcf702088a729a34\"},\"name\":\"echo\",\"container\":\"step-echo\",\"imageID\":\"docker.io/library/ubuntu@sha256:b4f9e18267eb98998f6130342baacaeb9553f136142d40959a1b46d6401f0f2b\"}],\"taskSpec\":{\"steps\":[{\"name\":\"echo\",\"image\":\"ubuntu\",\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\",\"script\":\"#!/usr/bin/env bash\\necho \\\"I am the first task before the loop task\\\"\\n\"}]}}},\"pr-loop-example-b86e3-last-task-xbpdt\":{\"pipelineTaskName\":\"last-task\",\"status\":{\"conditions\":[{\"type\":\"Succeeded\",\"status\":\"True\",\"lastTransitionTime\":\"2021-03-09T18:38:23Z\",\"reason\":\"Succeeded\",\"message\":\"All Steps have completed executing\"}],\"podName\":\"pr-loop-example-b86e3-last-task-xbpdt-pod-nxsvm\",\"startTime\":\"2021-03-09T18:38:17Z\",\"completionTime\":\"2021-03-09T18:38:23Z\",\"steps\":[{\"terminated\":{\"exitCode\":0,\"reason\":\"Completed\",\"startedAt\":\"2021-03-09T18:38:22Z\",\"finishedAt\":\"2021-03-09T18:38:22Z\",\"containerID\":\"containerd://7fe84e5f4ef1413299987e6da74b9c756d590f54aa4b6e267f01f88d410412fc\"},\"name\":\"echo\",\"container\":\"step-echo\",\"imageID\":\"docker.io/library/ubuntu@sha256:b4f9e18267eb98998f6130342baacaeb9553f136142d40959a1b46d6401f0f2b\"}],\"taskSpec\":{\"steps\":[{\"name\":\"echo\",\"image\":\"ubuntu\",\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\",\"script\":\"#!/usr/bin/env bash\\necho \\\"I am the last task after the loop task\\\"\\n\"}]}}}},\"runs\":{\"pr-loop-example-b86e3-loop-task-77sd2\":{\"pipelineTaskName\":\"loop-task\",\"status\":{\"observedGeneration\":1,\"conditions\":[{\"type\":\"Succeeded\",\"status\":\"True\",\"lastTransitionTime\":\"2021-03-09T18:38:17Z\",\"reason\":\"Succeeded\",\"message\":\"All PipelineRuns completed successfully\"}],\"startTime\":\"2021-03-09T18:37:59Z\",\"completionTime\":\"2021-03-09T18:38:17Z\",\"results\":[{\"name\":\"condition\",\"value\":\"fail\"}],\"extraFields\":{\"pipelineLoopSpec\":{\"iterateNumeric\":\"\",\"iterateParam\":\"message\",\"pipelineSpec\":{\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"tasks\":[{\"name\":\"echo-loop-task\",\"params\":[{\"name\":\"message\",\"value\":\"$(params.message)\"}],\"taskSpec\":{\"metadata\":{},\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"steps\":[{\"image\":\"ubuntu\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"echo\",\"resources\":{},\"script\":\"#!/usr/bin/env bash\\necho \\\"$(params.message)\\\"\\n\"}]}}]}},\"pipelineRuns\":{\"pr-loop-example-b86e3-loop-task-77sd2-00001-9s5v9\":{\"iteration\":1,\"status\":{\"completionTime\":\"2021-03-09T18:38:05Z\",\"conditions\":[{\"lastTransitionTime\":\"2021-03-09T18:38:05Z\",\"message\":\"Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0\",\"reason\":\"Succeeded\",\"status\":\"True\",\"type\":\"Succeeded\"}],\"pipelineSpec\":{\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"tasks\":[{\"name\":\"echo-loop-task\",\"params\":[{\"name\":\"message\",\"value\":\"$(params.message)\"}],\"taskSpec\":{\"metadata\":{},\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"steps\":[{\"image\":\"ubuntu\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"echo\",\"resources\":{},\"script\":\"#!/usr/bin/env bash\\necho \\\"$(params.message)\\\"\\n\"}]}}]},\"startTime\":\"2021-03-09T18:37:59Z\",\"taskRuns\":{\"pr-loop-example-b86e3-loop-task-77sd2-00001-9s5v9-echo-lo-q8qnm\":{\"pipelineTaskName\":\"echo-loop-task\",\"status\":{\"completionTime\":\"2021-03-09T18:38:05Z\",\"conditions\":[{\"lastTransitionTime\":\"2021-03-09T18:38:05Z\",\"message\":\"All Steps have completed executing\",\"reason\":\"Succeeded\",\"status\":\"True\",\"type\":\"Succeeded\"}],\"podName\":\"pr-loop-example-b86e3-loop-task-77sd2-00001-9s5v9-echo-lo-94kp8\",\"startTime\":\"2021-03-09T18:37:59Z\",\"steps\":[{\"container\":\"step-echo\",\"imageID\":\"docker.io/library/ubuntu@sha256:b4f9e18267eb98998f6130342baacaeb9553f136142d40959a1b46d6401f0f2b\",\"name\":\"echo\",\"terminated\":{\"containerID\":\"containerd://189ed39624c0278fa290925e34a1d34b81a2659a2da6eb403708d6b7beeb5a83\",\"exitCode\":0,\"finishedAt\":\"2021-03-09T18:38:04Z\",\"reason\":\"Completed\",\"startedAt\":\"2021-03-09T18:38:04Z\"}}],\"taskSpec\":{\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"steps\":[{\"image\":\"ubuntu\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"echo\",\"resources\":{},\"script\":\"#!/usr/bin/env bash\\necho \\\"$(params.message)\\\"\\n\"}]}}}}}},\"pr-loop-example-b86e3-loop-task-77sd2-00002-ftrfv\":{\"iteration\":2,\"status\":{\"completionTime\":\"2021-03-09T18:38:11Z\",\"conditions\":[{\"lastTransitionTime\":\"2021-03-09T18:38:11Z\",\"message\":\"Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0\",\"reason\":\"Succeeded\",\"status\":\"True\",\"type\":\"Succeeded\"}],\"pipelineSpec\":{\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"tasks\":[{\"name\":\"echo-loop-task\",\"params\":[{\"name\":\"message\",\"value\":\"$(params.message)\"}],\"taskSpec\":{\"metadata\":{},\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"steps\":[{\"image\":\"ubuntu\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"echo\",\"resources\":{},\"script\":\"#!/usr/bin/env bash\\necho \\\"$(params.message)\\\"\\n\"}]}}]},\"startTime\":\"2021-03-09T18:38:05Z\",\"taskRuns\":{\"pr-loop-example-b86e3-loop-task-77sd2-00002-ftrfv-echo-lo-7mrw6\":{\"pipelineTaskName\":\"echo-loop-task\",\"status\":{\"completionTime\":\"2021-03-09T18:38:11Z\",\"conditions\":[{\"lastTransitionTime\":\"2021-03-09T18:38:11Z\",\"message\":\"All Steps have completed executing\",\"reason\":\"Succeeded\",\"status\":\"True\",\"type\":\"Succeeded\"}],\"podName\":\"pr-loop-example-b86e3-loop-task-77sd2-00002-ftrfv-echo-lo-nsd2j\",\"startTime\":\"2021-03-09T18:38:05Z\",\"steps\":[{\"container\":\"step-echo\",\"imageID\":\"docker.io/library/ubuntu@sha256:b4f9e18267eb98998f6130342baacaeb9553f136142d40959a1b46d6401f0f2b\",\"name\":\"echo\",\"terminated\":{\"containerID\":\"containerd://a194201110e8034ef5d21dcabb2a1a35ee3b8f812d9fb8463e758559d8969365\",\"exitCode\":0,\"finishedAt\":\"2021-03-09T18:38:10Z\",\"reason\":\"Completed\",\"startedAt\":\"2021-03-09T18:38:10Z\"}}],\"taskSpec\":{\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"steps\":[{\"image\":\"ubuntu\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"echo\",\"resources\":{},\"script\":\"#!/usr/bin/env bash\\necho \\\"$(params.message)\\\"\\n\"}]}}}}}},\"pr-loop-example-b86e3-loop-task-77sd2-00003-fcmsm\":{\"iteration\":3,\"status\":{\"completionTime\":\"2021-03-09T18:38:17Z\",\"conditions\":[{\"lastTransitionTime\":\"2021-03-09T18:38:17Z\",\"message\":\"Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0\",\"reason\":\"Succeeded\",\"status\":\"True\",\"type\":\"Succeeded\"}],\"pipelineSpec\":{\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"tasks\":[{\"name\":\"echo-loop-task\",\"params\":[{\"name\":\"message\",\"value\":\"$(params.message)\"}],\"taskSpec\":{\"metadata\":{},\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"steps\":[{\"image\":\"ubuntu\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"echo\",\"resources\":{},\"script\":\"#!/usr/bin/env bash\\necho \\\"$(params.message)\\\"\\n\"}]}}]},\"startTime\":\"2021-03-09T18:38:11Z\",\"taskRuns\":{\"pr-loop-example-b86e3-loop-task-77sd2-00003-fcmsm-echo-lo-hfmnv\":{\"pipelineTaskName\":\"echo-loop-task\",\"status\":{\"completionTime\":\"2021-03-09T18:38:17Z\",\"conditions\":[{\"lastTransitionTime\":\"2021-03-09T18:38:17Z\",\"message\":\"All Steps have completed executing\",\"reason\":\"Succeeded\",\"status\":\"True\",\"type\":\"Succeeded\"}],\"podName\":\"pr-loop-example-b86e3-loop-task-77sd2-00003-fcmsm-echo-lo-5wt85\",\"startTime\":\"2021-03-09T18:38:11Z\",\"steps\":[{\"container\":\"step-echo\",\"imageID\":\"docker.io/library/ubuntu@sha256:b4f9e18267eb98998f6130342baacaeb9553f136142d40959a1b46d6401f0f2b\",\"name\":\"echo\",\"terminated\":{\"containerID\":\"containerd://c2878758317a29dfc22394ddb8884ed19cd98fe951fa2be28c88eccb04ff44f8\",\"exitCode\":0,\"finishedAt\":\"2021-03-09T18:38:16Z\",\"reason\":\"Completed\",\"startedAt\":\"2021-03-09T18:38:16Z\"}}],\"taskSpec\":{\"params\":[{\"name\":\"message\",\"type\":\"string\"}],\"steps\":[{\"image\":\"ubuntu\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"echo\",\"resources\":{},\"script\":\"#!/usr/bin/env bash\\necho \\\"$(params.message)\\\"\\n\"}]}}}}}}}}}}},\"pipelineSpec\":{\"tasks\":[{\"name\":\"first-task\",\"taskSpec\":{\"metadata\":{},\"steps\":[{\"name\":\"echo\",\"image\":\"ubuntu\",\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\",\"script\":\"#!/usr/bin/env bash\\necho \\\"I am the first task before the loop task\\\"\\n\"}]}},{\"name\":\"loop-task\",\"taskRef\":{\"name\":\"pipelineloop\",\"kind\":\"PipelineLoop\",\"apiVersion\":\"custom.tekton.dev/v1alpha1\"},\"runAfter\":[\"first-task\"],\"params\":[{\"name\":\"message\",\"value\":[\"I am the first one\",\"I am the second one\",\"I am the third one\"]}]},{\"name\":\"last-task\",\"taskSpec\":{\"metadata\":{},\"steps\":[{\"name\":\"echo\",\"image\":\"ubuntu\",\"resources\":{},\"imagePullPolicy\":\"IfNotPresent\",\"script\":\"#!/usr/bin/env bash\\necho \\\"I am the last task after the loop task\\\"\\n\"}]},\"runAfter\":[\"loop-task\"]}]}}}"}}

@Udiknedormin
Copy link
Contributor

@fenglixa @Tomcli What is the status of this issue?

@Tomcli
Copy link
Member

Tomcli commented Mar 29, 2021

@Udiknedormin @fenglixa for getting all the information in one pipelinerun yaml, I have a PR over here #512 (need to fix some tests)

@fenglixa do you have an example that can reproduce this issue? Do you see it when the pipeline is running or completed?

@fenglixa
Copy link
Member Author

Based on comments from Tomcli, I am worried the api-server is an old one in my cluster caused this issue.
@Udiknedormin, which version of kfp-tekton are you using, you reproduced this issue, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants