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

Resolver tasks: couldn't retrieve task

XMLWordPrintable

    • False
    • None
    • False

      Description of problem:

      Pipeline run using shipped resolver tasks fails

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

      Pipelines 1.15.0

      Steps to Reproduce

       # install pipelines 1.15.0

      1. create below pipeline and run it
      apiVersion: tekton.dev/v1
      kind: Pipeline
      metadata:
        name: buildah-pipeline
      spec:
        params:
        - name: REVISION
          default: fedora-38
        - name: SUBDIR
          description: where to clone the git repo
          default: buildah
        workspaces:
        - name: source
        tasks:
        - name: clone-git-repo
          taskRef:
            resolver: cluster
            params:
            - name: kind
              value: task
            - name: name
              value: git-clone
            - name: namespace
              value: openshift-pipelines
          workspaces:
          - name: output
            workspace: source
          params:
          - name: url
            value: https://github.com/ppitonak/nocode
          - name: subdirectory
            value: $(params.SUBDIR)
          - name: deleteExisting
            value: "true"
          - name: revision
            value: $(params.REVISION)
        - name: run-buildah
          taskRef:
            resolver: cluster
            params:
            - name: kind
              value: task
            - name: name
              value: buildah
            - name: namespace
              value: openshift-pipelines
          runAfter:
          - clone-git-repo
          workspaces:
          - name: source
            workspace: source
          params:
          - name: IMAGE
            value: image-registry.openshift-image-registry.svc:5000/$(context.pipelineRun.namespace)/$(params.SUBDIR)
          - name: CONTEXT
            value: $(params.SUBDIR)
          - name: TLSVERIFY
            value: "true"
      

       

      Actual results:

      Pipeline ppitonak/buildah-pipeline can't be Run; it contains Tasks that don't exist: Couldn't retrieve Task "": retryable error validating referenced object git-clone: tasks.tekton.dev "8d8ad168-1124-4e75-ba7f-627f6cdf27dd" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>
      

      Expected results:

      works fine

      Reproducibility (Always/Intermittent/Only Once):

      always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

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

       

       *

              vdemeest Vincent Demeester
              ppitonak Pavol Pitoňák
              Savita . Savita .
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: