Invalid LocationConstraint
causing error on non-aws (ceph) object storage services
#2420
Open
1 task done
Labels
Summary
The ansible module relies on AWS's
boto3
library to determine the default region for s3 bucket creation:amazon.aws/plugins/module_utils/botocore.py
Line 224 in da0027d
Many third party object storage service utilizing Ceph clusters doesn't accept AWS regions and requires
LocationConstraint
to be a specific value of being omitted from the request.https://docs.ceph.com/en/latest/radosgw/placement/#s3-bucket-placement
So when
ceph
attribute is set totrue
andendpoint_url
is provided to theamazon.aws.s3_bucket
module, I think it shouldn't let AWS'sboto3
to automatically detect an AWS region and set that AWS region intoLocationConstraint
, whcih can cause errorInvalidLocationConstraint
returning from Ceph clusters.Issue Type
Bug Report
Component Name
s3_bucket
Ansible Version
Collection Versions
AWS SDK versions
Configuration
$ ansible-config dump --only-changed
OS / Environment
macOS 14
Steps to Reproduce
Expected Results
Bucket created,
LocationConstraint
is not included in the request sent to Ceph S3 API.Actual Results
Failed while creating bucket: An error occurred (InvalidLocationConstraint) when calling the CreateBucket operation: The specified location-constraint is not valid
Code of Conduct
The text was updated successfully, but these errors were encountered: