Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-4188

Kogito operator fails to create Infinispan instance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0.Final
    • 1.0.0.Final
    • Operator
    • None
    • False
    • False
    • Undefined
    • Hide

      Install Infinispan 2.0.6
      Install Kogito operator 1.0
      Create KogitoInfra:

      apiVersion: app.kiegroup.org/v1beta1
      kind: KogitoInfra
      metadata:
        name: kogito-infinispan-infra
      spec:
        resource:
          apiVersion: infinispan.org/v1
          kind: Infinispan
      
      Show
      Install Infinispan 2.0.6 Install Kogito operator 1.0 Create KogitoInfra: apiVersion: app.kiegroup.org/v1beta1 kind: KogitoInfra metadata: name: kogito-infinispan-infra spec: resource: apiVersion: infinispan.org/v1 kind: Infinispan
    • ---
    • ---
    • 2020 Week 52-03 (from Dec 21)

      Kogito operator creates new Infinispan instance when user creates KogitoInfra CR like [1].

      However since Infinispan 2.0.6 this Infinispan instance creation doesn't work. Kogito operator logs this error message:

      {"level":"error","ts":1610700778.6774309,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"kogitoinfra-controller","name":"kogito-infinispan-infra","namespace":"infinispan-operator","error":"Infinispan.infinispan.org \"kogito-infinispan\" is invalid: spec.security.endpointEncryption.type: Unsupported value: \"\": supported values: \"Service\", \"service\", \"Secret\", \"secret\", \"None\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/jenkins/go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.1/pkg/internal/controller/controller.go:235\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.1/pkg/internal/controller/controller.go:209\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/home/jenkins/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.1/pkg/internal/controller/controller.go:188\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/home/jenkins/go/pkg/mod/k8s.io/apimachinery@v0.18.3/pkg/util/wait/wait.go:90"}
      {"level":"info","T":"2021-01-15T08:52:59.677Z","logger":"kogitoinfra_controller","msg":"Reconciling KogitoInfra for kogito-infinispan-infra in infinispan-operator"}
      {"level":"error","T":"2021-01-15T08:52:59.714Z","logger":"kogitoinfra_controller","msg":"Error occurs while creating kogito infinispan instance"}
      {"level":"warn","T":"2021-01-15T08:52:59.714Z","logger":"kogitoinfra_controller","msg":"Error while reconciling KogitoInfra: Infinispan.infinispan.org \"kogito-infinispan\" is invalid: spec.security.endpointEncryption.type: Unsupported value: \"\": supported values: \"Service\", \"service\", \"Secret\", \"secret\", \"None\""}
      

      The difference seems to be caused by [2]

      [1] https://github.com/kiegroup/kogito-cloud-operator/blob/master/examples/kogitoinfra-infinispan.yaml
      [2] https://github.com/infinispan/infinispan-operator/pull/697

              rhn-support-zanini Ricardo Zanini
              ksuta Karel Suta
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: