-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
fix aws_s3 module to use custum s3_url. #36832
fix aws_s3 module to use custum s3_url. #36832
Conversation
You should set |
I would agree that that statement @k0ste. I don't seem to see any parameters or settings that are specific to Ceph, Walrus, fakes3, Eucalyptus in this module (the HTTPS/HTTP settings should be applied to any s3_url passed in). @s-hertel, would it be ok to change the logic for s3_url so that if specified use that and deprecate the rgw flag? |
@roadmapper Yeah, I agree that it would be ideal to deprecate the rgw flag and treat everything the same (besides perhaps populating some sane defaults like is happening for fakes3) but I'm hesitant since there is no one reliably working on this who can test Walrus/Ceph/fakes3. |
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.
@cgroschupp This code can't just be removed in case anyone has been relying on this for walrus (the module is marked as stableinterface
) so it would need a deprecation warning period at the least.
I've thought some more about this and this approach actually seems fine, though it's unclear if this will break or fix Walrus. In theory Walrus is a drop-in for S3 and should work like this. If anyone uses Walrus and can test this, that would be great. I may try to set it up to test but doubt I will be able to on OS X.
6300294
to
8b461b4
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.
I rebased this due to conflicts. I haven't been able to test walrus but have been using this with Minio which also has an S3-compatible API.
…_url (ansible#36832) fix aws_s3 module to use custum s3_url.
SUMMARY
It is not possible to use aws_s3 modules with a customized s3_url.
With a custom s3_url url it is never possible to reach the else in get_s3_connection.
ISSUE TYPE
COMPONENT NAME
aws_s3
ANSIBLE VERSION
ADDITIONAL INFORMATION
The walrus code extracts the hostname from the s3_url and boto3 throws
Invalid Endpoint
The boto3 documentation says that you need to define a full URL with a schema.
With an s3_url without schema, the endpoint is always empty and boto connects to the aws endpoints.