Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3081

PIM external db configuration in Operator missing config for host and port

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Explained
    • Affects Version/s: 7.8.0.GA
    • Fix Version/s: None
    • Component/s: Cloud
    • Labels:
      None
    • Environment:

      OCP 4.5
      BA Operator 7.8.0 CR2
      PIM Image 7.8.0 CR2

    • Affects Build:
      CR2
    • Target Release:
    • Steps to Reproduce:
      Hide

      Take configurat from Kie Server's external DB and applied it for PIM, the Operator fails with invalid KieApp message

      Show
      Take configurat from Kie Server's external DB and applied it for PIM, the Operator fails with invalid KieApp message

      Description

      External database configuration for PIM in Operator is missing host and port config variables, these variables are used in external db config for Kie Server.
      Missing variables for configuration blocks testing with following external DBs: DB2, postgresql, postgresplus.

      When is used configuration from Kie Server's external DB and is applied for PIM, the Operator fails with invalid KieApp message

      io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://api.production.rhba.openshift-aws.rhocf-dev.com:6443/apis/app.kiegroup.org/v2/namespaces/kie-operator-pam-3d46/kieapps. Message: KieApp.app.kiegroup.org "myapp" is invalid: spec.objects.processMigration.database.externalConfig.jdbcURL: Required value. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.objects.processMigration.database.externalConfig.jdbcURL, message=Required value, reason=FieldValueRequired, additionalProperties={})], group=app.kiegroup.org, kind=KieApp, name=myapp, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=KieApp.app.kiegroup.org "myapp" is invalid: spec.objects.processMigration.database.externalConfig.jdbcURL: Required value, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
      

      Is expected that configuration for external DB will be same for Kie Server and PIM.

      Configuration for datbase in Kie Server: https://github.com/kiegroup/kie-cloud-operator/blob/master/deploy/crds/kieapp.crd.yaml#L439-L517
      Configuration for databse in PIM: https://github.com/kiegroup/kie-cloud-operator/blob/master/deploy/crds/kieapp.crd.yaml#L703-L758

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rromerom Ruben Romero Montes
                Reporter:
                jschwan Jakub Schwan
                Tester:
                Jakub Schwan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: