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

Update zen2 settings only if there is no v6 master node #1595

Merged
merged 3 commits into from
Aug 20, 2019

Conversation

sebgl
Copy link
Contributor

@sebgl sebgl commented Aug 19, 2019

When doing any zen2 API call (voting config exclusions), we checked if
there is at least one v7+ master in the cluster in order to proceed.
This is wrong because if the current master is a v6 node, the call will
fail.
In a cluster with mixed v6 -> v7 versions, the current master is
supposed to be a v6 node. Zen2 APIs can be called once there is no more
v6 node in the cluster, at which point the current master is a v7 node.

For more context, see
#1281 (comment)

This also adds a helper function to build pods for testing purposes.

Relates #1281.

When doing any zen2 API call (voting config exclusions), we checked if
there is at least one v7+ master in the cluster in order to proceed.
This is wrong because if the current master is a v6 node, the call will
fail.
In a cluster with mixed v6 -> v7 versions, the current master is
supposed to be a v6 node. Zen2 APIs can be called once there is no more
v6 node in the cluster, at which point the current master is a v7 node.

For more context, see
elastic#1281 (comment)
@sebgl sebgl added justdoit Continuous improvement not related to a specific feature v1.0.0-beta1 labels Aug 19, 2019
@sebgl sebgl merged commit 8284740 into elastic:master Aug 20, 2019
@barkbay
Copy link
Contributor

barkbay commented Aug 20, 2019

Not sure if it is related to this PR but I managed to get five 6.x nodes and minimum_master_nodes" : "2"
I will open an issue (and maybe work on a fix in the meantime)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
justdoit Continuous improvement not related to a specific feature >refactoring v1.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants