Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-23279

[2152094] Tekton pipeline fails in delete-template taskrun

XMLWordPrintable

    • 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(

      {0xd667c0, 0xc000210ca0}

      )
      /usr/lib/golang/src/runtime/panic.go:884 +0x212
      github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit.ExitOrDieFromError(0x3,

      {0xf5dea0, 0xc000199860?}

      ,

      {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:

              ksimon@redhat.com Karel Simon
              gkapoor@redhat.com Geetika Kapoor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: