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

Error connecting KogitoInfra to Infinispan instance with None encryption

XMLWordPrintable

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

      Install Infinispan 2.0.6 on OCP.
      Install Kogito operator on OCP.
      Create this Infinispan instance:

      apiVersion: infinispan.org/v1
      kind: Infinispan
      metadata:
        name: example-infinispan
      spec:
        replicas: 1
        security:
          endpointEncryption:
            type: None
      

      Create KogitoInfra using this CR:

      apiVersion: app.kiegroup.org/v1beta1
      kind: KogitoInfra
      metadata:
        name: kogito-infinispan-infra
      spec:
        resource:
          apiVersion: infinispan.org/v1
          kind: Infinispan
          name: example-infinispan
      

      =>
      expected - KogitoInfra contains all needed configuration in its status
      actual - status doesn't contain any connection information

      Show
      Install Infinispan 2.0.6 on OCP. Install Kogito operator on OCP. Create this Infinispan instance: apiVersion: infinispan.org/v1 kind: Infinispan metadata: name: example-infinispan spec: replicas: 1 security: endpointEncryption: type: None Create KogitoInfra using this CR: apiVersion: app.kiegroup.org/v1beta1 kind: KogitoInfra metadata: name: kogito-infinispan-infra spec: resource: apiVersion: infinispan.org/v1 kind: Infinispan name: example-infinispan => expected - KogitoInfra contains all needed configuration in its status actual - status doesn't contain any connection information
    • ---
    • ---
    • 2020 Week 52-03 (from Dec 21)

      If Infinispan instance defines None endpoint encryption then KogitoInfra connecting to this Infinispan doesn't retrieve needed configuration values.
      See steps to reproduce for more info.

      Also Kogito operator throws this error:

      2021-01-15T13:43:14.623+0100	ERROR	infinispan	not found	{"Secret": "kogito-infinispan-credential", "error": "credentials Not found"}
      github.com/go-logr/zapr.(*zapLogger).Error
      	/home/karel/go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128
      github.com/kiegroup/kogito-cloud-operator/controllers.(*infinispanInfraReconciler).loadCustomKogitoInfinispanSecret
      	/home/karel/src/github.com/kiegroup/kogito-cloud-operator/controllers/infinispan.go:299
      github.com/kiegroup/kogito-cloud-operator/controllers.(*infinispanInfraReconciler).getInfinispanRuntimeSecretEnvVars
      	/home/karel/src/github.com/kiegroup/kogito-cloud-operator/controllers/infinispan.go:108
      github.com/kiegroup/kogito-cloud-operator/controllers.(*infinispanInfraReconciler).getInfinispanRuntimeProps
      	/home/karel/src/github.com/kiegroup/kogito-cloud-operator/controllers/infinispan.go:160
      

      This problem shuldn't be considered as error as missing credentials are expected as the Infinispan instance doesn't secure its endpoint.

              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: