Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-14249

[Apicurito] apicurito-service cannot be created by default CR using operatorhub installation

XMLWordPrintable

      Operatorhub successfully deploys apicurito-operator into a namespace.
      When user try to create apicurito-service (Apicurito UI) with default CR:

      apiVersion: apicur.io/v1alpha1
      kind: Apicurito
      metadata:
        name: apicurito-service
        namespace: operatorhub
      

      Error in apicurito-operator log shows :

      {"level":"info","ts":1593606624.392816,"logger":"controller_apicurito","msg":"Reconciling Apicurito.","Request.Namespace":"operatorhub","Request.Name":"apicurito-service"}
      {"level":"info","ts":1593606624.4942918,"logger":"controller_apicurito","msg":"Creating a new Service.","Request.Namespace":"operatorhub","Request.Name":"apicurito-service","Service.Namespace":"operatorhub","Service.Name":"apicurito-service"}
      {"level":"info","ts":1593606624.5147069,"logger":"controller_apicurito","msg":"Creating a new Deployment.","Request.Namespace":"operatorhub","Request.Name":"apicurito-service","Deployment.Namespace":"operatorhub","Deployment.Name":"apicurito-service"}
      {"level":"error","ts":1593606624.5295994,"logger":"controller_apicurito","msg":"Failed to create new Deployment.","Request.Namespace":"operatorhub","Request.Name":"apicurito-service","Deployment.Namespace":"operatorhub","Deployment.Name":"apicurito-service","error":"Deployment.apps \"apicurito-service\" is invalid: spec.template.spec.containers[0].image: Required value","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/remote-source/app/apicurito/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/apicurio/apicurio-operators/apicurito/pkg/controller/apicurito.(*ReconcileApicurito).Reconcile\n\t/remote-source/app/apicurito/pkg/controller/apicurito/apicurito_controller.go:154\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/remote-source/app/apicurito/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/remote-source/app/apicurito/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/remote-source/app/apicurito/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/remote-source/app/apicurito/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/remote-source/app/apicurito/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/remote-source/app/apicurito/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
      {"level":"error","ts":1593606624.5297112,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"apicurito-controller","request":"operatorhub/apicurito-service","error":"Deployment.apps \"apicurito-service\" is invalid: spec.template.spec.containers[0].image: Required value","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/remote-source/app/apicurito/vendor/github.com/go-logr/zapr/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/remote-source/app/apicurito/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/remote-source/app/apicurito/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/remote-source/app/apicurito/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/remote-source/app/apicurito/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/remote-source/app/apicurito/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/remote-source/app/apicurito/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
      {"level":"info","ts":1593606625.5305743,"logger":"controller_apicurito","msg":"Reconciling Apicurito.","Request.Namespace":"operatorhub","Request.Name":"apicurito-service"}
      

      The error should pop up but it should be about that OCP could not pull UI image which is hardcoded in the conf and of course, it does not exist yet.

      UiImage: "registry.redhat.io/fuse7/fuse-apicurito:1.7"
      

      Also, the number of pods is missing in the default CR it is intended?

      apiVersion: apicur.io/v1alpha1
      kind: Apicurito
      metadata:
        name: apicurito-service
      spec:
        # Add fields here
        size: 3
      

              parichar@redhat.com Paul Richardson
              mmajerni@redhat.com Mario Majernik
              Paul Richardson
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: