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
Cannot remove plugin from docker container #24231
Comments
This is also easily reproduced on the vagrant base box debian/jessie64. I suspect this is related to aufs. Elasticsearch version: Plugins installed: [x-pack] JVM version:
OS version:
Steps to reproduce
Then, on the machine
logout && login again (so the new group becomes effective Create Dockerfile with same contents as above:
Run the docker build
And get the trace:
|
Thanks for the report @tback. I've found the source of the issue; it's a combination of renaming not working on the lower layer of a union filesystem and a bug in the JDK. Briefly the JDK tries to do the following:
Your feedback here is very much appreciated. I want you to know that we are not intentionally making it difficult to uninstall X-Pack, we will prepare a fix for this for 5.4.0. |
I've opened #24252. We are going to try to get this into a 5.3.2 release (do not take that as a guarantee). I've built a new Docker image locally based off this change and the issue no longer reproduces. |
Thanks for taking care of this @jasontedor and reporting it @tback. I've taken a note to add an acceptance test for removing plugins in our docker image building acceptance tests. This will most likely land in 5.4.0 where we have introduced a more flexible acceptance test framework. |
Plugin management code in Elasticsearch should work in union filesystems as implemented by various Docker Storage Drivers. Test that the x-pack plugin can be uninstalled correctly as part of the acceptance tests. Relates: elastic/elasticsearch#24231
It seems uninstalling plugins from the official docker image is broken.
My colleagues were unable to reproduce this error on debian stretch with btrfs.
I'm opening this issue in response to @jasontedor #23548 (comment)
Elasticsearch version:
5.3.1
Plugins installed: [x-pack]
JVM version:
OS version:
macos sierra 10.12.3 (16D32)
Docker Version 17.03.1-ce-mac5 (16048, b18e2a50cc)
Description of the problem including expected versus actual behavior:
I expect to successfully remove x-pack like any other plugin from the official docker image. I get an error instead.
I'd much rather get an official image without x-pack altogether, but thats a business decision I guess. Making x-pack hard to uninstall will drive me to community images for sure.
Steps to reproduce:
docker build .
The text was updated successfully, but these errors were encountered: