admin管理员组文章数量:1333690
I am trying to use Barman to back up a CNPG database cluster on S3.
The S3 service we need to use (on-premise, Huawei) requires "virtual host" access style, and Barman simply does not use it. Since Barman is using Boto3, and apparently the default access style of boto3 is "virtual host":
(Default) Attempts to use
virtual
, but falls back topath
if necessary.
I am interested in the following:
- What exactly is the process performed by boto3 to "attempt" to use virtual host access style, and what is "fallback condition"?
- Where is the code for that process in the
boto3
orbotocore
libraries?
It seems that there is (in contrast to other AWS behavior) no environment variable to force-control this, at least I could not find any in the boto3 docs.
I really don't understand why barman/boto3 apparently falls back to path-style, other services developed by us are using virtual-host-style quite happily.
Update – environment variable for access style (tl;dr - does not exist):
Looking at botocore's configprovider.py
, it seems that there is no ENV variable available to specify the S3 access style explicitly:
DEFAULT_S3_CONFIG_VARS = {
# [...]
'addressing_style': (
(
's3',
'addressing_style'
), # config file setting: s3.addressing_style
None, # **HERE would be the ENV var name**
None, # a default value
None # a conversion function
),
# [...]
}
(Interpretation of the addressing_style
tuple taken from here). That was already suggested once (GitHub #3190), but declined.
本文标签: amazon s3What is the detection mechanism for S3 quotpath access style fallbackquotStack Overflow
版权声明:本文标题:amazon s3 - What is the detection mechanism for S3 "path access style fallback"? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742356791a2459574.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论