Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-471

SMCP reconciliation fails with Error processing component maistra-threescale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • OSSM 2.1.0
    • OSSM 2.1.0
    • Maistra
    • None
    • False
    • False
    • Undefined

      When installing 3scale addon with SM 2.1 it's failing with:

      Error processing component maistra-threescale: [no matches for kind "adapter" in version "config.istio.io/v1alpha2", no matches for kind "template" in version "config.istio.io/v1alpha2"]: error: [no matches for kind "adapter" in version "config.istio.io/v1alpha2", no matches for kind "template" in version "config.istio.io/v1alpha2"]

       

      Repro steps:

      1. add required pull secrets for quay.io/maistra
      2. create catalog source using following index image: 'quay.io/maistra/servicemesh-olm-iib:2.1.0-qe'
      3. create subscription
      4. create following SMCP CR:
      apiVersion: maistra.io/v2
      kind: ServiceMeshControlPlane
      metadata:
        namespace: istio-system
        name: basic
      spec:
        tracing:
          sampling: 10000
          type: Jaeger
        policy:
          type: Istiod
        addons:
          3scale:
            enabled: true
          grafana:
            enabled: true
          jaeger:
            install:
              storage:
                type: Memory
          kiali:
            enabled: false
          prometheus:
            enabled: true
        version: v2.1
        telemetry:
          type: Istiod
      

       

       Following is visible in the istio operator log:

      {"level":"error","ts":1621255745.6656387,"logger":"servicemeshcontrolplane-controller","msg":"error occurred reconciling resource","ServiceMeshControlPlane":"istio-system/basic","Component":"maistra-threescale","manifest":"maistra-threescale/templates/threescale-adapter.yaml","Resource":"istio-system/threescale=config.istio.io/v1alpha2,Kind=adapter","error":"no matches for kind \"adapter\" in version \"config.istio.io/v1alpha2\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/maistra/istio-operator/pkg/controller/common/helm.(*ManifestProcessor).processObject\n\t/builddir/build/BUILD/servicemesh-operator-2.1.0/pkg/controller/common/helm/manifestprocessing.go:187\ngithub.com/maistra/istio-operator/pkg/controller/common/helm.(*ManifestProcessor).ProcessManifest\n\t/builddir/build/BUILD/servicemesh-operator-2.1.0/pkg/controller/common/helm/manifestprocessing.go:90\ngithub.com/maistra/istio-oper...
      {"level":"error","ts":1621255749.4592588,"logger":"servicemeshcontrolplane-controller","msg":"error occurred reconciling resource","ServiceMeshControlPlane":"istio-system/basic","Component":"maistra-threescale","manifest":"maistra-threescale/templates/threescale-authorization-template.yaml","Resource":"istio-system/threescale-authorization=config.istio.io/v1alpha2,Kind=template","error":"no matches for kind \"template\" in version \"config.istio.io/v1alpha2\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/maistra/istio-operator/pkg/controller/common/helm.(*ManifestProcessor).processObject\n\t/builddir/build/BUILD/servicemesh-operator-2.1.0/pkg/controller/common/helm/manifestprocessing.go:187\ngithub.com/maistra/istio-operator/pkg/controller/common/helm.(*ManifestProcessor).ProcessManifest\n\t/builddir/build/BUILD/servicemesh-operator-2.1.0/pkg/controller/common/helm/manifestprocessing.go:90...
      {"level":"info","ts":1621255749.459498,"logger":"servicemeshcontrolplane-controller","msg":"component reconciliation complete","ServiceMeshControlPlane":"istio-system/basic","Component":"maistra-threescale"}
      {"level":"info","ts":1621255749.4595783,"logger":"servicemeshcontrolplane-controller","msg":"Updating ServiceMeshControlPlane readiness state","ServiceMeshControlPlane":"istio-system/basic"}
      {"level":"info","ts":1621255749.4607923,"logger":"servicemeshcontrolplane-controller","msg":"Completed ServiceMeshControlPlane processing","ServiceMeshControlPlane":"istio-system/basic"}
      {"level":"error","ts":1621255749.4608676,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"servicemeshcontrolplane-controller","request":"istio-system/basic","error":"[no matches for kind \"adapter\" in version \"config.istio.io/v1alpha2\", no matches for kind \"template\" in version \"config.istio.io/v1alpha2\"]","errorCauses":[\{"error":"no matches for kind \"adapter\" in version \"config.istio.io/v1alpha2\""},\{"error":"no matches for kind \"template\" in version \"config.istio.io/v1alpha2\""}],"stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/github.com/go-logr/zapr/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/builddir/build/BUILD/servicemesh-operator-2.1.0/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/builddir/build/BUILD/serv...
      

       

            fbrychta@redhat.com Filip Brychta
            fbrychta@redhat.com Filip Brychta
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: