Ceph Object Store: Use "us-east-1" as the default signing region to avoid setting location constraint#12285
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.20 #12285 +/- ##
============================================
- Coverage 16.22% 16.22% -0.01%
- Complexity 13358 13360 +2
============================================
Files 5657 5657
Lines 498692 498692
Branches 60530 60530
============================================
- Hits 80932 80920 -12
- Misses 408738 408743 +5
- Partials 9022 9029 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
yadvr
left a comment
There was a problem hiding this comment.
Should the default come from pool or global setting instead of being hard-coded ?
|
LGTM |
|
Thanks for the quick review.
I don't think we'll need any other value apart from "us-east-1" |
|
@blueorangutan package |
|
@abh1sar a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16082 |
|
@abh1sar this is marked ready for merge but I don't see a smoke test run, should we run one? @blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16332 |
Description
Fixes #12130
Using "auto" as the signingRegion in AwsClientBuilder forces the s3 client to infer region from the url and set it as LocationConstraint while sending the request which is not required for ceph and causes the issue
The specified location-constraint is not validIn PR #10772, the signing_region was changed to null which avoids setting location constraint for some endpoints but not all.
Setting the signing_region as "us-east-1" fixes it for all endpoints as the AWSClient SDK treats "us-east-1" as default and doesn't set any location constraints.
The table below describes what happens to createBucket with different endpoints and signing_regions.
endpoint ↓
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Tested createBucket with different endpoints and signing_regions.
endpoint ↓
Tested other bucket lifecycles as well.
How did you try to break this feature and the system with this change?