-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Make plugin install idempotent #61385
Comments
Pinging @elastic/es-core-infra (:Core/Infra/Plugins) |
We discussed this issue in the Core/Infra sync. @anyasabo would it work for you to pass an extra flag, e.g. |
👍 that makes sense to me |
This issue looks like something that the core-infra team should plan to work on, so I'm going to remove the needs:triage label and leave it as is. |
I have applied the following workaround:
|
We might want to consider this a duplicate of #70219. The use case described in that issue would solve this problem as well. |
Has there been any progress on this issue? We just had this issue in production using ECK where a master was in a crash loop due to a plugin already installed. I really like the solution proposed in #70219 |
Has there been any progress on this issue? We just had this issue in production using ECK where a master was in a crash loop due to a plugin already installed. I really like the solution proposed in #70219 +1 |
Closing in favor of #70219 |
It would be useful if
bin/elasticsearch-plugin install --batch
could be called repeatedly. As it is, the first call will succeed and subsequent calls will fail. This comes up not infrequently in Kubernetes environments, where we may install plugins as an init container (which runs before the Elasticsearch container), but some maintenance operations may cause it to run again and error out. If it could detect that it has already run successfully and exit gracefully it would be helpful.There are workarounds including:
But both add extra complexity on the user side.
Here's an ECK issue discussing this for reference:
elastic/cloud-on-k8s#3530
We also have similar issues with initializing the keystore, but we can discuss that in a separate issue.
The text was updated successfully, but these errors were encountered: