Skip to content
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] Core-Plugins installation does not support qualifier fully #3168

Closed
peterzhuamazon opened this issue May 3, 2022 · 3 comments · Fixed by #3193
Closed

[BUG] Core-Plugins installation does not support qualifier fully #3168

peterzhuamazon opened this issue May 3, 2022 · 3 comments · Fixed by #3193
Assignees
Labels
bug Something isn't working Plugins

Comments

@peterzhuamazon
Copy link
Member

% ./opensearch-plugin install repository-s3
-> Installing repository-s3
-> Downloading repository-s3 from opensearch
-> Failed installing repository-s3
-> Rolling back repository-s3
-> Rolled back repository-s3
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://artifacts.opensearch.org/releases/plugins/repository-s3/2.0.0/repository-s3-2.0.0-rc1.zip
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
	at org.opensearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:450)
	at org.opensearch.plugins.InstallPluginCommand.downloadAndValidate(InstallPluginCommand.java:527)
	at org.opensearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:318)
	at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:272)
	at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:249)
	at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:100)
	at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
	at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)
	at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
	at org.opensearch.cli.Command.main(Command.java:101)
	at org.opensearch.plugins.PluginCli.main(PluginCli.java:60)

As you can see despite the zip is 2.0.0-rc1 zip, OpenSearch core still points to 2.0.0 folder to download the zip.
I am not sure if this is a bug or expected to be 2.0.0 folder for 2.0.0-rc1.
As of now we will hardcode native plugin deployment in production to 2.0.0.

Thanks.

@peterzhuamazon peterzhuamazon added bug Something isn't working untriaged labels May 3, 2022
@peterzhuamazon
Copy link
Member Author

@nknize @dblock @saratvemulapalli
Thanks.

@dblock
Copy link
Member

dblock commented May 4, 2022

Looks like a bug to me 😢

@saratvemulapalli
Copy link
Member

+1 it is a bug.
I could reproduce the problem via 2.0.0-rc1 tarball.
Opened up a PR #3193 to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants