-
Notifications
You must be signed in to change notification settings - Fork 592
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
CORE-2417: cloud_storage_clients: self configure s3_url_style
#18107
CORE-2417: cloud_storage_clients: self configure s3_url_style
#18107
Conversation
c14ecff
to
d26725c
Compare
s3_url_style
s3_url_style
s3_url_style
s3_url_style
ea20efe
to
c45484f
Compare
new failures in https://buildkite.com/redpanda/redpanda/builds/49035#018f7330-4f02-446d-a60b-2d4d57dd3610:
new failures in https://buildkite.com/redpanda/redpanda/builds/49035#018f734f-6e36-46a7-b856-71369b9d321f:
new failures in https://buildkite.com/redpanda/redpanda/builds/49097#018f7762-a177-4bab-b902-b32eeceadd60:
new failures in https://buildkite.com/redpanda/redpanda/builds/49097#018f7762-a179-42c2-b9d0-2c7175a9d4b4:
new failures in https://buildkite.com/redpanda/redpanda/builds/49097#018f7762-a17b-4f6f-b8b4-656dfa386481:
new failures in https://buildkite.com/redpanda/redpanda/builds/49097#018f776b-c783-4efc-94d2-e482e0ae790e:
new failures in https://buildkite.com/redpanda/redpanda/builds/49097#018f776b-c77e-4d2d-b9e7-1fcd99a737b8:
new failures in https://buildkite.com/redpanda/redpanda/builds/49097#018f776b-c780-4bac-ba24-8d683c993393:
|
e9bfcfe
to
beea76f
Compare
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/49059#018f751c-ddb5-44c5-90ae-656056540ff1 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/49112#018f780d-a6a0-43aa-8174-b62c690728e6 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/49131#018f79a1-f572-47c4-bbab-69402576de3e |
beea76f
to
be20a74
Compare
be20a74
to
03c7b8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much LGTM
To allow for self-configuration, the `cloud_storage_url_style` is now an `std::optional`, and can be left unspecified in the `redpanda` cluster config. If it is not set, it will default to `virtual_host`.
03c7b8c
to
3922017
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though would be good to get a look from @dotnwat given he suggested it #17806 (comment)
3922017
to
6885cdb
Compare
If the user does not specify `cloud_storage_url_style` in their cluster config file (i.e leaves as `nit`), the `s3_client` will set its url addressing style through self configuration. The default behavior is to attempt `virtual_host` addressing first, falling back to `path` style requests if `virtual_host` does not work. If both are attempted and neither work, the `redpanda` start-up is terminated.
6885cdb
to
f55d01e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Allows the
s3_client
to self configure its addressing style for S3 requests.If
cloud_storage_url_style
is not specified (leftnil
in cluster config), upon start-up, thes3_client
will attempt to self configure a working addressing style.First,
virtual_host
addressing is tested.list_objects()
request using is attempted, ifcloud_storage_enable_remote_read
istrue
.cloud_storage_enable_remote_write
is enabled,put_object()
anddelete_object()
requests are used to verify instead.If the request is unsuccessful, the client reattempts the request with
path
style. If both requests fail, start-up is terminated.JIRA Issue: https://redpandadata.atlassian.net/browse/CORE-2417
Backports Required
Release Notes
Features
redpanda
will now self configure itscloud_storage_url_style
for use with the internal S3 Client on start-up if it is left unspecified.