Skip to content

[BUG] can't set reindex.remote.allowlist #883

@karitham

Description

@karitham

What is the bug?

Setting reindex.remote.allowlist in spec.general.additionalConfig doesn't seem to apply.

I have been looking through the docs for this specific key but could not find it either. I am perhaps being mislead by the error message, but can't find any additional information on it.

This is the error that lead me to change the configuration:

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "[redacted] not allowlisted in reindex.remote.allowlist"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "[redacted] not allowlisted in reindex.remote.allowlist"
  },
  "status": 400
}

How can one reproduce the bug?

Here is part of my config file:

apiVersion: opensearch.opster.io/v1
kind: OpenSearchCluster
metadata:
  name: os
spec:
  security:
    config:
      adminCredentialsSecret:
        name: os-admin-creds
      securityConfigSecret:
        name: securityconfig-secret
    tls:
      http:
        generate: true
      transport:
        generate: true
  general:
    monitoring:
      enable: true
    serviceName: os
    version: 2.17.0
    pluginsList: ["repository-s3"]
    drainDataNodes: true
    additionalConfig:
      reindex.remote.allowlist: '["redacted", "redacted"]'
      s3.client.default.endpoint: minio.minio.svc.cluster.local:9000
      s3.client.default.protocol: http
      s3.client.default.path_style_access: "true"

      cluster.remote_store.state.enabled: "true"

      node.attr.remote_store.repository.remoteStore.settings.bucket: dmp-es-prod
      node.attr.remote_store.repository.remoteStore.settings.region: eu-central-1
      node.attr.remote_store.repository.remoteStore.type: s3

      node.attr.remote_store.segment.repository: remoteStore
      node.attr.remote_store.translog.repository: remoteStore
      node.attr.remote_store.state.repository: remoteStore

Looking at opensearch.yml (kubectl exec pods/os-nodes-0 -- cat /usr/share/opensearch/config/opensearch.yml) and it doesn't show up. Similarly, it doesn't show up in the dashboard.

I also don't see it in the configmap (os-config in my case).

What is the expected behavior?

For the keys to show up in the configuration file or to show up in the dashboard.

As mentioned earlier I may be being mislead by the error, since I can't find anything about this reindex in the opensearch docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    📦 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions