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

operator post upgrade flow stops and repeating the execution from the beginning

XMLWordPrintable

    • 1
    • Pipelines Sprint 247

      This issue is reported by ppunamiy on https://redhat-internal.slack.com/archives/CG5GV6CJD/p1695827370934159?thread_ts=1695728899.523409&cid=CG5GV6CJD

      If there is an error happened on storage version upgrade, post upgrade flow stops and repeating the execution from the beginning

      error on patching a resource

      {"level":"error","logger":"tekton-operator-lifecycle.upgrade","caller":"helper/storage_version_migrator.go:49","msg":"failed to migrate: ","commit":"70b39cc","knative.dev/pod":"openshift-pipelines-operator-548c6f67c8-h8vjx","knative.dev/controller":"github.com.tektoncd.operator.pkg.reconciler.shared.tektonconfig.Reconciler","knative.dev/kind":"operator.tekton.dev.TektonConfig","knative.dev/traceid":"46127b82-5f17-4ee7-aa31-e5951cd89b78","knative.dev/key":"config","error":"unable to patch resource /clustertask-with-optional-resources-v1beta1 (gvr: tekton.dev/v1beta1, Resource=clustertasks) - admission webhook \"validation.webhook.pipeline.tekton.dev\" denied the request: validation failed: must not set the field(s): spec.resources","stacktrace":"github.com/tektoncd/operator/pkg/reconciler/shared/tektonconfig/upgrade/helper.MigrateStorageVersion\n\t/go/src/github.com/tektoncd/operator/pkg/reconciler/shared/tektonconfig/upgrade/helper/storage_version_migrator.go:49\ngithub.com/tektoncd/operator/pkg/reconciler/shared/tektonconfig/upgrade.upgradeStorageVersion\n\t/go/src/github.com/tektoncd/operator/pkg/reconciler/shared/tektonconfig/upgrade/post_upgrade.go:69\ngithub.com/tektoncd/operator/pkg/reconciler/shared/tektonconfig/upgrade.(*Upgrade).executeUpgrade\n\t/go/src/github.com/tektoncd/operator/pkg/reconciler/shared/tektonconfig/upgrade/upgrade.go:99\ngithub.com/tektoncd/operator/pkg/reconciler/shared/tektonconfig/upgrade.(*Upgrade).RunPostUpgrade\n\t/go/src/github.com/tektoncd/operator/pkg/reconciler/shared/tektonconfig/upgrade/upgrade.go:69\ngithub.com/tektoncd/operator/pkg/reconciler/shared/tektonconfig.(*Reconciler).ReconcileKind\n\t/go/src/github.com/tektoncd/operator/pkg/reconciler/shared/tektonconfig/tektonconfig.go:207\ngithub.com/tektoncd/operator/pkg/client/injection/reconciler/operator/v1alpha1/tektonconfig.(*reconcilerImpl).Reconcile\n\t/go/src/github.com/tektoncd/operator/pkg/client/injection/reconciler/operator/v1alpha1/tektonconfig/reconciler.go:236\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\t/go/src/github.com/tektoncd/operator/vendor/knative.dev/pkg/controller/controller.go:542\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\t/go/src/github.com/tektoncd/operator/vendor/knative.dev/pkg/controller/controller.go:491"}
      
      $ oc get tektonconfigs.operator.tekton.dev config
      NAME     VERSION   READY   REASON
      config   1.12.0    False   Post upgrade is in progress
      

              jkandasa-rh Jeeva Kandasamy
              jkandasa-rh Jeeva Kandasamy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: