camunda / camunda-platform-helm

Camunda Platform 8 Self-Managed Helm charts
https://docs.camunda.io/docs/self-managed/overview/
Apache License 2.0
70 stars 127 forks source link

[ISSUE] Cannot connect to OpenSearch: Missing required property 'OpenSearchVersionInfo.distribution' #1891

Open prashanthisadde opened 1 month ago

prashanthisadde commented 1 month ago

Describe the issue:

I am encountering an issue with Camunda Optimize where it cannot connect to the AWS OpenSearch Service. The error message indicates that a required property OpenSearchVersionInfo.distribution is missing.

Actual behavior:

Camunda Optimize fails to start with the following error:

ERROR o.s.boot.SpringApplication - Application run failed

Caused by: org.opensearch.client.util.MissingRequiredPropertyException: Missing required property 'OpenSearchVersionInfo.distribution'

Expected behavior:

Camunda Optimize should successfully connect to the OpenSearch cluster and start without errors.

How to reproduce:

  1. Deploy Camunda Optimize using the official Helm chart on EKS.
  2. Configure OpenSearch in the values.yaml file as follows:
    opensearch:
     enabled: true
     aws:
       enabled: true
     tls:
       enabled: false
       existingSecret:
     auth:
       existingSecret:
       existingSecretKey:
     url:
       protocol: https
       host: https://vpc-<cluster>.<region>.es.amazonaws.com
       port: 443
     distribution: opensearch
     version: 2.13
  3. Deploy the Helm chart:
    helm upgrade --install YOUR_RELEASE_NAME YOUR_CHART_PATH -f VALUES_YAML_PATH -n NAMESPACE

Logs:

ERROR o.s.boot.SpringApplication - Application run failed

Caused by: org.opensearch.client.util.MissingRequiredPropertyException: Missing required property 'OpenSearchVersionInfo.distribution'

Environment:

Any guidance on how to correctly pass these properties to Camunda Optimize or if there are any additional steps required to configure OpenSearch would be greatly appreciated.

Thank you for your assistance!

aabouzaid commented 1 month ago

@prashanthisadde Thanks for reporting this :raised_hands: Which auth method do you use? Do you use AWS IRSA?

Currently, Optimize doesn't support IRSA and you need auth via username/password.

prashanthisadde commented 1 month ago

@aabouzaid I'm not using IRSA, so my issue is not related to that. My setup uses the official Camunda 8 Helm stack with Keycloak (created from the Helm chart).

eolouw commented 1 month ago

Hi I am having the same issue with Optimize, we are using Opensearch and my config is similar to @prashanthisadde. Are there any updates to this issue?

aabouzaid commented 1 week ago

@prashanthisadde @eolouw Could you please check this comment and see if it matches your case? https://github.com/opensearch-project/opensearch-java/issues/573#issuecomment-1668578780