-
Notifications
You must be signed in to change notification settings - Fork 77
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
es conflict with check-es-query-count.rb #48
Comments
we have pinned it here: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/blob/master/sensu-plugins-elasticsearch.gemspec#L37 we can either bump it there or you can remove that version. Could you put together a pr to bump the version? |
@eheydrick our dependency on 1.x is quite old, I am tempted to say we should try to bump it all the way to 5.x if possible if not we should go to at least 2.x |
As long as it works on all the versions we support - 1.x, 2.x, and 5.x, I'm cool with moving it to a newer version. |
@eheydrick Understood and hope we can maintain support for all 3, however we might want to drop 1.x if it causes issues as its now technically EOL. https://www.elastic.co/support/eol
|
@kaushiksriram100 would you be willing to try bumping the dependencies and testing? |
@majormoses : Sure I can try, am a beginner to ruby gems so would need some pointers. What do you think about this dependency for aws-es-transport? Looks like that is dependent on elasticsearch >= 1.0.10, ~> 1.0 I am getting this error after bumping up es gem version in the gemspec (to s.add_runtime_dependency 'elasticsearch', ['>= 2.0.0', '~> 2.0.0']) L-SNVJ0NCFFT-M:sensu-plugins-elasticsearch skaush1$ gem install ./sensu-plugins-elasticsearch-1.3.1.gem Conflicting dependency chains: versus: L-SNVJ0NCFFT-M:sensu-plugins-elasticsearch skaush1$ |
More than happy to help.
|
@majormoses got it. Is this reasonable? https://github.com/kaushiksriram100/sensu-plugins-elasticsearch/blob/master/sensu-plugins-elasticsearch.gemspec#L37 However, I get a warning when I build the gem because there is no upper bound version -
Another question:
Why do we need that |
I dont think we do... @eheydrick am I missing something? |
I am guessing that when |
@majormoses : one last question for this thread: What determines which version of ES should get installed. For example when I run the gem I see Fetching: elasticsearch-1.1.2.gem (100%) What determines that es-1.1.2 (this specific version) has to be installed? |
I need to honestly play with this as I am not used to ever trying to support multiple major versions of a gem and usually support 1 major at a time. My guess prior to seeing your output would be that it will install the highest that satisfies constraints but that does not appear to be the case. |
I will try to get to playing with this tonight. |
@majormoses, the aws-sdk |
@eheydrick that would make this break all the checks that rely on the aws-transport gem which I do think we need to do something about anyways as it's old and does not seem to be maintained. sensu-plugins-elasticsearch/CHANGELOG.md Line 40 in e877956
Here are the related issues: |
@kaushiksriram100 I see you're executing the check from the gems directory. What happens if you execute it using the binstub e.g. |
@majormoses the aws transport requirement is just |
yes that was what I was saying here: #48 (comment) My following comment when you said drop the it I somehow did not connect the dots that you only meant that version. |
When I attempt to run the check-es-query-count.rb I end up getting this error:
[root@server tmp]# /opt/sensu/embedded/bin/ruby /opt/sensu/embedded/lib/ruby/gems/2.2.0/gems/sensu-plugins-elasticsearch-1.0.0/bin/check-es-query-count.rb -h
'Usage: /opt/sensu/embedded/lib/ruby/gems/2.2.0/gems/sensu-plugins-elasticsearch-1.0.0/bin/check-es-query-count.rb (options)
/opt/sensu/embedded/lib/ruby/2.2.0/rubygems/specification.rb:2112:in
raise_if_conflicts': Unable to activate sensu-plugins-elasticsearch-1.0.0, because elasticsearch-1.1.0 conflicts with elasticsearch (~> 1.0.14) (Gem::ConflictError) from /opt/sensu/embedded/lib/ruby/2.2.0/rubygems/specification.rb:1280:in
activate'from /opt/sensu/embedded/lib/ruby/2.2.0/rubygems.rb:198:in
rescue in try_activate' from /opt/sensu/embedded/lib/ruby/2.2.0/rubygems.rb:195:in
try_activate'from /opt/sensu/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:126:in
rescue in require' from /opt/sensu/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in
require'from /opt/sensu/embedded/lib/ruby/gems/2.2.0/gems/sensu-plugins-elasticsearch-1.0.0/bin/check-es-query-count.rb:40:in `
The text was updated successfully, but these errors were encountered: