-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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_plugin: wrong binary and unsupported "timeout" option. #21989
Comments
@bcoca I can pick this up, but I'm not sure if we should enable/disable the option by checking the ES version (this might be complicated/overkill), or just remove the default value and add in docs that users should enable this only if their |
@ApsOps Thanks. I'm not going to have any time in the next few days so it's much appreciated if someone can get to this before me. |
I fixed this in a new pull-request. The default binary was not changed, but can be edited with the plugin_bin parameter. regards |
Change module to work with Elasticsearch 2.x and 5.x automatically. Update examples and docs. Supersedes ansible#21989
* Update elasticsearch_plugin.py Change module to work with Elasticsearch 2.x and 5.x automatically. Update examples and docs. Supersedes #21989 * Check system paths for elasticsearch-plugin binary Use get_bin_path from basic.py for searching paths. * Create a copy of PLUGIN_BIN_PATHS rather than modifying the global * Use provided plugin_bin path first before trying other places Change global PLUGIN_BIN_PATHS to a tuple
* Update elasticsearch_plugin.py Change module to work with Elasticsearch 2.x and 5.x automatically. Update examples and docs. Supersedes ansible#21989 * Check system paths for elasticsearch-plugin binary Use get_bin_path from basic.py for searching paths. * Create a copy of PLUGIN_BIN_PATHS rather than modifying the global * Use provided plugin_bin path first before trying other places Change global PLUGIN_BIN_PATHS to a tuple
* Update elasticsearch_plugin.py Change module to work with Elasticsearch 2.x and 5.x automatically. Update examples and docs. Supersedes #21989 * Check system paths for elasticsearch-plugin binary Use get_bin_path from basic.py for searching paths. * Create a copy of PLUGIN_BIN_PATHS rather than modifying the global * Use provided plugin_bin path first before trying other places Change global PLUGIN_BIN_PATHS to a tuple (cherry picked from commit a5ee865)
Closing this since it was resolved by #28936, which will be in Ansible 2.4.1. |
ISSUE TYPE
COMPONENT NAME
elasticsearch_plugin
ANSIBLE VERSION
devel
CONFIGURATION
None.
OS / ENVIRONMENT
Ubuntu 16.04 64-bit
SUMMARY
Ansible uses wrong binary by default and passes an unsupported option to plugin installer, so it crashes.
STEPS TO REPRODUCE
Define a plugin install action.
EXPECTED RESULTS
Plugin installed.
ACTUAL RESULTS
OK, default binary is wrong. If I specify the correct binary explicitly, the result is:
The problem is that there's no
timeout
option now in elasticsearch-plugin. Please remove it.Line
The text was updated successfully, but these errors were encountered: