Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

node.roles doesn't work on ES 8.4.0 #1686

Open
piyushkp opened this issue Aug 30, 2022 · 8 comments
Open

node.roles doesn't work on ES 8.4.0 #1686

piyushkp opened this issue Aug 30, 2022 · 8 comments

Comments

@piyushkp
Copy link

**Chart version: latest

**Kubernetes version: latest

**Kubernetes provider:AKS

**Helm Version:latest

i'm upgrading from ES 8.2.0 to 8.4.0 and coordinator nodes failing with: (it worked fine in 8.2.0)

Exception in thread "main" org.elasticsearch.ElasticsearchParseException: null-valued setting found for key [node.roles] found at line number [9], column number [12] at org.elasticsearch.common.settings.Settings.validateValue(Settings.java:768) at org.elasticsearch.common.settings.Settings.fromXContent(Settings.java:743) at org.elasticsearch.common.settings.Settings.fromXContent(Settings.java:687) at org.elasticsearch.common.settings.Settings$Builder.loadFromStream(Settings.java:1190) at org.elasticsearch.node.InternalSettingsPreparer.loadOverrides(InternalSettingsPreparer.java:143) at org.elasticsearch.node.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:53) at org.elasticsearch.common.cli.EnvironmentAwareCommand.createEnv(EnvironmentAwareCommand.java:110) at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85) at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:94) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85) at org.elasticsearch.cli.Command.main(Command.java:50) at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)

```
    roles: []
    # For client nodes, we also need to add an empty node.roles in elasticsearch.yml
    # This is due to https://github.com/elastic/helm-charts/pull/1186#discussion_r631225687
    esConfig:
      elasticsearch.yml: |
        node.roles: []
```
@ebuildy
Copy link
Contributor

ebuildy commented Sep 1, 2022

Why you dont set roles ? You must have at least a master

@piyushkp
Copy link
Author

piyushkp commented Sep 1, 2022

ebuildy i was trying to upgrade from 8.2.0 to 8.4.0, master and data nodes were upgrade successfully but coordinator failed.

@ebuildy
Copy link
Contributor

ebuildy commented Sep 2, 2022 via email

@piyushkp
Copy link
Author

piyushkp commented Sep 7, 2022

ebuildy for the coordinator node it needs to be empty

@piyushkp
Copy link
Author

piyushkp commented Sep 7, 2022

jmlrt can you look into this issue ?

@piyushkp
Copy link
Author

piyushkp commented Oct 4, 2022

ebuildy any updates on this ?

@jmlrt
Copy link
Member

jmlrt commented Nov 9, 2022

Hey @piyushkp, this has been fixed in #1693

@botelastic
Copy link

botelastic bot commented May 8, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants