-
Notifications
You must be signed in to change notification settings - Fork 717
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
Coordinator nodes cannot be defined using node.roles #3718
Comments
Workaround is to use YAML type tags: node.roles: !!seq "" This is probably not going to be obvious to the users and slightly deviates from the Elasticsearch documentation (even though they are semantically equivalent.) Other options that I could think of are:
|
Added a note to |
I don't think the workaround works as expected. On 7.10.0 with
|
The only workaround <8.0 that I could find is to use the legacy node role format as in: - config:
node.master: false
node.data: false
node.ingest: false
node.ml: false
node.remote_cluster_client: false which results in
|
Stopping short of replacing our use of ucfg alltogether this tries to provide a short term fix by introducing a simple (hacky) replacement mechanism into the configuration rendering process to handle the cases where we know that null is not equivalent to [] (empty seq) in the rendered Yaml configuration. If we think this is viable as short term fix for elastic#3718 I would add a few more tests and see to get this merged for 1.4.0
The underlying problem is that once we create ucfg Config object out of the the YAML we lose the type information that |
#4041 implements a workaround. I am leaving this issue open for a proper solution. |
Using eck-operator 1.5 with ES 7.12.0 with the following:
is accepted via the operator, however all of the roles were enabled on the node. Using:
worked as expected |
In case it was not clear: starting ECK 1.4.0 this bug is solved. You can specify This issue is left open because we are not satisfied with how we implemented that fix :) |
Hi, we had a report of the same issue coming up for a Kibana YAML setting: #4853 I will leave it to this team to consolidate these two issues as needed :) |
I will check that we can revert #4041 with elastic/go-ucfg#188. |
Yes 💯But we should keep a unit test around that verifies that the configuration with empty array values works. |
i'm upgrading from ES 8.2.0 to 8.4.0 and coordinator nodes failing with: (it worked fine in 8.2.0)
|
This was mentioned in #3324 but is worth raising as a separate issue.
ucfg
seems to treat empty arrays as null values so the suggested method of defining a coordinator node cannot be done on ECK by settingnode.roles: [ ]
.The text was updated successfully, but these errors were encountered: