Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create appropriate roles coordinator node #187

Closed
karthikbattaram opened this issue Jun 15, 2022 · 1 comment
Closed

Unable to create appropriate roles coordinator node #187

karthikbattaram opened this issue Jun 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@karthikbattaram
Copy link

Hi

So while trying to deploy opensearch cluster using the operator, in the yaml of type OpesearchCluster which is used to deploy the cluster, under nodePools section, the roles for coordinator nodes is supposed to be empty in order to have dedicated coordinator nodes, but upon setting this to empty, the node assumes all roles (master, data, ingest).

Are we missing something here, is there some way to have dedicated coordinator nodes(nodes that dont have any role configured)

@swoehrl-mw
Copy link
Collaborator

Hi @karthikbattaram. Thanks for reporting this issue.
As the operator is implemented the roles for a node are configured using an environment variable.
The underlying issue seems to be opensearch-project/OpenSearch#3412, opensearch cannot distinguish betwen the node roles not set at all and set to an empty list so if the operator sets an empty string it is treated as the node roles environment variable not being available and the node assumes all roles.

As a workaround you could give the nodepool the ingest role (asuming you do not use ingest in your cluster).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants