-
Bug
-
Resolution: Done-Errata
-
Major
-
None
-
False
-
-
False
-
CLOSED
-
---
-
---
-
-
-
High
-
None
Description of problem:
Tekton pipeline fails in delete-template taskrun if any kind of taskrun failures happen before it.
Error:
2022/12/09 00:56:57 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/": unable to create destination directory: mkdir /.docker: permission denied
panic: templates.template.openshift.io "windows10-desktop-large-installer" is forbidden: User "system:serviceaccount:openshift-cnv:pipeline" cannot delete resource "templates" in API group "template.openshift.io" in the namespace "openshift-cnv" [recovered]
panic: templates.template.openshift.io "windows10-desktop-large-installer" is forbidden: User "system:serviceaccount:openshift-cnv:pipeline" cannot delete resource "templates" in API group "template.openshift.io" in the namespace "openshift-cnv"
goroutine 1 [running]:
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit.HandleExit()
/remote-source/app/modules/modify-vm-template/vendor/github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit/exit.go:80 +0xb4
panic(
)
/usr/lib/golang/src/runtime/panic.go:884 +0x212
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit.ExitOrDieFromError(0x3,
,
{0xc0000cfe5f, 0x1, 0x1?})
/remote-source/app/modules/modify-vm-template/vendor/github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit/exit.go:60 +0x167
main.main()
/remote-source/app/modules/modify-vm-template/cmd/modify-vm-template/main.go:41 +0x51a
Version-Release number of selected component (if applicable):
4.12
How reproducible:
always
Steps to Reproduce:
1. any taskrun before delete-template should fail
2.
3.
Actual results:
delete-template getting impacted with any failures
Expected results:
delete-template should not be impacted with any failures
Additional info:
- is blocked by
-
OCPBUGS-7857 Cancelled/failed pipelineRun did not trigger finally tasks
- New
-
SRVKP-2845 Cancelled/failed pipelineRun did not trigger finally tasks
- Closed
- external trackers