-
Notifications
You must be signed in to change notification settings - Fork 2k
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] repository-s3 plugin is broken in mainline #17426
Comments
Hey @rishabh6788 in past I have implemented snapshot capabilities for the OpenSearch K8s Operator opensearch-project/opensearch-k8s-operator#278, this issue has some details related to IAM role and commands, so AFAIK the snapshot repo registration and creating of snapshot is for sure working in past. |
|
@reta Above PR was merged yesterday, I am experiencing the same error on a tarball created on Feb-10th as well. |
it was working fine up until 10-days back. Last successful run was with commit-id |
For more context, I encountered this in our nightly benchmark workflow, that runs on the latest build of mainline daily. |
@peterzhuamazon The repository-s3 plugin on all alpha builds is broken. |
Hi @reta @andrross @expani any lead on fixing this issue? cc: @getsaurabh02 Thanks! |
@peterzhuamazon Are we properly pulling the alpha1 version of the repository plugin when doing |
I think I got the issue, the code is pulling plugin from old 3.0.0 version https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/3.0.0/latest/linux/x64/tar/builds/opensearch/core-plugins/repository-s3-3.0.0.zip. I wil verify and then close the issue. |
@peterzhuamazon If I do |
|
@peterzhuamazon This doesn't seem to be correct. The zip downloaded by |
What is the link for The link in previous comments is for staging only. Unless you are pulling the non-qualifier version from staging bucket, which is extremely old build for now. |
@peterzhuamazon I don't know, I was asking you this question :) Edit: this is the code that constructs the URL to download: Lines 350 to 372 in 679a08f
It does not currently use the |
Yeah that explains it, seems like snapshots is still pulling from the non-qualifier version 😄 |
Have an offline talk with @andrross and seems like the getQualifiedVersion() simply returns version instead of version+qualifier. |
@rishabh6788 If you need to unblock yourself, you can pass the URL directly, i.e.:
|
Hi @andrross any update on fixing the link? Thanks. |
@peterzhuamazon I can reproduce this issue with a locally-built min distribution. However, I believe the install plugin code is actually correct. The issue is that the core repository itself doesn't know anything about the "alpha1" version, it's only supplied as a parameter to the maven publish command. However, if I download the latest published snapshot of the min distribution (https://artifacts.opensearch.org/snapshots/core/opensearch/3.0.0-alpha1-SNAPSHOT/opensearch-min-3.0.0-alpha1-SNAPSHOT-linux-arm64-latest.tar.gz), then extract the manifest from one of the jar files (e.g.
The So the upshot is that I can't actually reproduce this issue with the linked tarball (https://artifacts.opensearch.org/snapshots/core/opensearch/3.0.0-alpha1-SNAPSHOT/opensearch-min-3.0.0-alpha1-SNAPSHOT-linux-x64-latest.tar.gz), only with a min distribution built directly from source. |
Hi @andrross we build the artifact specifically with Thanks. |
Thanks @peterzhuamazon! That actually fixes it for me. Here's a test of the "alpha1" build locally, with verbose output from the install plugin command:
I believe it is downloading the correct artifact and seems to work properly in my testing. |
I'm going to close this as I don't think there's a problem here. My initial confusion was from not providing |
Describe the bug
Getting below error while trying to register an s3 repository using latest build for 3.0.0-alpha1
Related component
Plugins
To Reproduce
Expected behavior
The cluster should return 200 response.
Additional Details
Use tarball https://artifacts.opensearch.org/snapshots/core/opensearch/3.0.0-alpha1-SNAPSHOT/opensearch-min-3.0.0-alpha1-SNAPSHOT-linux-x64-latest.tar.gz
The text was updated successfully, but these errors were encountered: