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

Kogito Management Console no Longer Accessible in Openshift

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.19.0.Final
    • 1.12.0.Final
    • Operator
    • None
    • False
    • False
    • Hide

      Log in to Openshift Cluster and do the following:

       

      1.

      kogito new-project kogito
      2.

      kogito use-project kogito

      3. Install Strimzi Operator and create Kafka instance named "kogito-kafka"
      4. Install Infinispan Operator and create Infinispan instance named "kogito-infinispan"

      5.

      kogito install infra kogito-infinispan-infra --kind Infinispan --apiVersion infinispan.org/v1 --resource-name kogito-infinispan

      6.

      kogito install infra kogito-kafka-infra --kind Kafka --apiVersion kafka.strimzi.io/v1beta2 --resource-name kogito-kafka

      7.
      kogito install data-index --infra kogito-infinispan-infra --infra kogito-kafka-infra

      8.
      kogito install mgmt-console

      Check Management console ( it should throw a 503 Keycloak server error)

       

      Additional Steps I attempted to find a solution:

      9.

      Install Keycloak Operator and reate Keycloack instance named "kogito-keycloak"

       10.

      Log in to keycloak Admin console (credentials available in ENV variables of deployment) and manually create realm "kogito" using the following JSON:

      https://github.com/kiegroup/kogito-examples/blob/stable/process-usertasks-quarkus-with-console/docker-compose/keycloak/kogito-realm.json

       

      11. 

      Add the following ENV vars to the Kogito management console YAML (using your keycloak endpoint):

      env:

      Now the Kogito 503 error is gone, but the management console redirects to Keycloak auth and throws an error

      Show
      Log in to Openshift Cluster and do the following:   1. kogito new-project kogito 2. kogito use-project kogito 3. Install Strimzi Operator and create Kafka instance named "kogito-kafka" 4. Install Infinispan Operator and create Infinispan instance named "kogito-infinispan" 5. kogito install infra kogito-infinispan-infra --kind Infinispan --apiVersion infinispan.org/v1 --resource-name kogito-infinispan 6. kogito install infra kogito-kafka-infra --kind Kafka --apiVersion kafka.strimzi.io/v1beta2 --resource-name kogito-kafka 7. kogito install data-index --infra kogito-infinispan-infra --infra kogito-kafka-infra 8. kogito install mgmt-console Check Management console ( it should throw a 503 Keycloak server error)   Additional Steps I attempted to find a solution: 9. Install Keycloak Operator and reate Keycloack instance named "kogito-keycloak"   10. Log in to keycloak Admin console (credentials available in ENV variables of deployment) and manually create realm "kogito" using the following JSON: https://github.com/kiegroup/kogito-examples/blob/stable/process-usertasks-quarkus-with-console/docker-compose/keycloak/kogito-realm.json   11.   Add the following ENV vars to the Kogito management console YAML (using your keycloak endpoint): env: name: KOGITO_MANAGEMENT_CONSOLE_PROPS value: "-Dkogito.consoles.keycloak.config.url= https://keycloak-kogito.apps.cluster-2hbws.2hbws.sandbox1738.opentlc.com/auth -Dkogito.consoles.keycloak.config.health-check-url= https://keycloak-kogito.apps.cluster-2hbws.2hbws.sandbox1738.opentlc.com/auth/realms/kogito/.well-known/openid-configuration -Dkogito.svg.folder.path=/home/kogito/data/svg" Now the Kogito 503 error is gone, but the management console redirects to Keycloak auth and throws an error
    • 2022 Week 05-07 (from Jan 31), 2022 Week 08-10 (from Feb 21)

      The Kogito Management Console which requires Keycloak can not connect to the keycloak server in Openshift. The documentation does not describe how to set up a Keycloak server in Openshift with the correct realm and settings to connect to the management console. When deploying the management console in Openshift using the operator there is now a 503 error.

        1. KEYCLOAK-INSTANCE.png
          KEYCLOAK-INSTANCE.png
          121 kB
        2. 503ERROR.png
          503ERROR.png
          186 kB
        3. KOGITO-COMPONENTS.png
          KOGITO-COMPONENTS.png
          211 kB
        4. MANAGEMENT-CONSOLE-AFTER-KEYCLOAK-REALM-CREATION.png
          MANAGEMENT-CONSOLE-AFTER-KEYCLOAK-REALM-CREATION.png
          292 kB
        5. MGMT-CONSOLE-KEYCLOAK_PARAMS.png
          MGMT-CONSOLE-KEYCLOAK_PARAMS.png
          231 kB

              dsalerno@redhat.com Davide Salerno (Inactive)
              rhn-gps-atefphone Atef Aziz (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: