-
Notifications
You must be signed in to change notification settings - Fork 813
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
[elasticsearch] Restricts 1.x specific stats to v1.x #2232
[elasticsearch] Restricts 1.x specific stats to v1.x #2232
Conversation
@@ -393,6 +396,9 @@ def _define_params(self, version, cluster_stats): | |||
if version >= [1, 0, 0]: | |||
stats_metrics.update(self.ADDITIONAL_METRICS_POST_1_0_0) | |||
|
|||
if version >= [1, 0, 0] && version < [2, 0, 0]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and
instead of &&
in python ;)
Thanks for taking care of this @bdharrington7! Only found one small thing to fix, we'll merge once it's fixed :) |
Thanks @olivielpeau! Could we upload the new versions of Elasticsearch as well? 2.0.2 and 2.1.1 |
…search 2.x versions to testing matrix
Yes, makes a lot of sense, I've just uploaded Had a quick look at our build setup code, it should still work with ES Thanks! |
b76194a
to
02e0698
Compare
@bdharrington7 Thanks again for helping to improve the ES check. When you have a moment could you add the new versions to your travis.yml file? |
1.7.5 and 2.2? -Brian
|
@bdharrington7 Thanks for adding the I'm looking at how we could fix the tests. |
By default, ES 2.x nodes bind to 127.0.0.1, does the ci tests not spin up a
|
@bdharrington7 It does. But our test expects the metrics to be sent with a |
@bdharrington7 so a simple way to fix the test would be to replace our test on these lines:
so that when we're on ES 2.x and with |
looks to have passed but some tests flaked out... |
Thanks, I've re-run the tests that flaked out, all are passing now! One last thing that we should think about now is whether we need to adapt the check to the new behavior of ES on the @bdharrington7 Do you happen to know if there's a new config option in ES that allows setting the node's |
Are you talking about the value at |
@bdharrington7: I'm talking about the value at Full explanation: when the check is configured to query an external cluster ( This approach doesn't work anymore with ES 2.x as the node that's queried returns Maybe the check should instead use the value at |
Ok, I see what you mean. So what changed then is that in 2.x elasticsearch changed the default binding for network.host from 0.0.0.0 (listen to everything) to 127.0.0.1 (only listen to localhost), as it's more secure. Would the value at |
@olivielpeau I noticed that there was a recent release (congrats!), would it be possible to backpatch this change to it? And what else needs to happen in this PR to move it forward? |
@bdharrington7 Sorry for my late response here, I'm going to merge this PR, it'll be part of our next minor release ( Thanks for your explanation on the change of the default binding for Thanks again! |
Some of the stats I introduced for 1.x are removed in 2.x. 😢
Resolves #2186