-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[BUG] OpenSearch moves plugin's bin, config into root directory #2963
Comments
Plugin owner who is not familiar with this behavior please take a look and make sure your plugin still runs as expected. Thanks. |
Thanks @sruti1312 for writing this up and a pointer to the code. From OpenSearch plugin install tool, it has explicit handling of
My initial thoughts when I looked at this problem is: all configuration consumed by plugins stay in the plugin root directory. But looking deeper and reading code from InstallPluginCommand.java handles it explicitly as it validates the files and makes sure OpenSearch has right permissions setup for Also RemovePluginCommand.java handles removal of plugin Given this information, this doesn't feel like a bug and its more of a feature. Path forwardI understand this impacts 2.0. I see couple of options:
My thoughts, I would go with 1. because OpenSearch does the heavy lifting of setting up the right permissions and gives a clean experience for customers rather than plugins handling them. |
I also think option 1 is more neater. |
Yeah, I think 1 is right as well. Seems like 2 is giving us a lot of places for bugs to creep in. If we're coalescing around 1, @sruti1312 , @peterzhuamazon what is the lift to get this ready to go in PA and build? |
@CEHENKLE I am working on opening PR's on PA and opensearch-build package to close on this by today. |
Anything left to do here @sruti1312? Close? |
Closing this issue as the PR is merged in opensearch-build and no action items in core. @sruti1312 feel free to reopen this one if you see more problems. |
Describe the bug
OpenSearch moves the plugins
config
andbin
directories into rootbin
andconfig
folder. This behaviour is similar with all plugins and the expected behaviour.https://github.com/opensearch-project/OpenSearch/blob/1.3.0/distribution/tools/plu[…]/src/main/java/org/opensearch/plugins/InstallPluginCommand.java
Recently all plugins including Performance Analyzer changed the directory names as a part of this issue. After the renaming, the
config
andbin
folders are under theROOT/config/PLUGIN_NAME/
directory. Opening this issue to start a discussion on whether it is better for plugin'sconfig
andbin
folders to be retained underplugins
folder over moving them underROOT
directory.To Reproduce
Steps to reproduce the behavior:
Sample bundle tarball:
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: