-
Notifications
You must be signed in to change notification settings - Fork 1.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
[BUG][Opensearch] Opensearch snapshot management: can't select AWS region for configuring s3 bucket. #9265
Comments
@raghuvanshraj care to take a look? |
Taking a look |
@hm2thr33 after following the steps outlined by you, I am able to create a bucket in eu-central-1, take a snapshot and restore from it. Are you specifying any custom settings to the s3 client via opensearch.yml? Pasting my requests here:
PUT snapshot:
POST snapshot restore:
|
@raghuvanshraj I don't have any custom settings in opensearch.yml for s3 client. The repository I use is located in the eu-central-1 region. The user has not changed. Now I'm using the same user to use a bucket in the us-east-1 region and everything works for me, but I need eu-central-1. I also have cluster 2.8.0 not updated, I tried to connect the repository to them and everything works. But after the upgrade, I can no longer connect to the same repository, the error clearly says that I am waiting for a repository in the us-east-1 region. |
@hm2thr33 the requests I have pasted in the above mentioned comment are for the exact same configuration. Sometimes we see 307s for newly created buckets, but based on this forum question, it looks like you are seeing a 301.
I'll scope the |
Hi @raghuvanshraj, JFYI: I already have 6 clusters with this problem, all of which are running in Kubernetes, which is in the EU-CENTRAL-1 region. The buckets were also created in this region, they are not new, I started using them when I installed the first cluster on version 2.5.0, all updates to 2.9.0 were without any problems. I don't have any custom settings for the S3 bucket in opensearch.yml: After the upgrade, when I try to add the same bucket I used for this cluster again, I see the following error:
I'm pretty sure I have access to this S3 bucket from OpenSearch cluster, because this S3 bucket was used before the cluster upgrade, and this S3 bucket is in the same region (EU-CENTRAL-1) as the OpenSearch cluster. The S3 bucket settings and access to them have not been changed. |
I was able to replicate this issue, but for me it is only happening if the bucket region and the region supplied in the request are different. So if I create a bucket
I get the following error:
Similarly, if I don't supply a region in my payload, it defaults to
As expected, I get the same error, but instead of
Based on this, the only possible scenario I can see here is that S3 is resolving the bucket |
Thanks for debugging this @raghuvanshraj - @hm2thr33 care to take a look at the details above? |
@hm2thr33 Closing this issue. Feel free to re-open if problem still exists. |
Describe the bug
After upgrade Opensearch from 2.8.0 to 2.9.0 version snapshot management stop working.
Can't select AWS eu-central-1 region for configuring s3 bucket, available only one region us-east-1.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The ability to use the bucket in the selected region, and not just in one.
Chart Name
Opensearch
Screenshots
N/A
Host/Environment (please complete the following information):
Additional context
From my side any configurations for s3 backet were changed also any configuration for opensearch.
Only upgrade Openserch version from 2.8.0 to 2.9.0.
Temporary use backet in us-east-1 region.
The text was updated successfully, but these errors were encountered: