-
Notifications
You must be signed in to change notification settings - Fork 342
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
Scaleway s3 bucket: NoSuchPolicyConfiguration #422
Comments
Files identified in the description: If these files are inaccurate, please update the |
Files identified in the description:
If these files are inaccurate, please update the |
Hi @psykotox, this sounds like the Scaleway object storage API is not implementing a supported aspect of the AWS S3 API. We don't have access to any Scaleway services to test with, I'd recommend reaching out to the vendor to ask about this. If you would like to open a PR that enables the necessary functionality while maintaining the existing S3 functionality we'd be open to that. |
Hi Rémy (@remyleone)! Can you help us troubleshoot this compatibility problem between s3 module and Scaleway? |
Hello 👋 It looks like the issue happens here: amazon.aws/plugins/modules/s3_bucket.py Lines 359 to 366 in e8df917
Which calls: amazon.aws/plugins/modules/s3_bucket.py Lines 552 to 559 in e8df917
It expects a
^ We don't return the correct error code. Somehow, we missed this when implementing the bucket policy feature. We'll fix it and we'll update the issue once it's corrected 👍 |
The bug has been fixed and deployed. There is now a new issue:
In the full trace we can see that the
It looks like the exception is raised from boto and not catched: Looking at the code: amazon.aws/plugins/modules/s3_bucket.py Lines 428 to 437 in e8df917
I understand that we should fall in Is this expected? What am I missing? |
The code you're looking at there is our 'main' branch: the absolute latest code. Looking at the trace I suspect you're using a released version of the code. Cleanly catching NotImplemented for encryption was added in #391 which, while merged, isn't released yet. I'd expect to see this available in version 2.0.0 of this collection which should be released by the end of the month. |
Ah, thanks @tremble 👍 |
Thx @angristan and @tremble |
* Enable AWSRetry on aws_region_info * changelog
* Enable AWSRetry on aws_region_info * changelog
* Enable AWSRetry on aws_region_info * changelog This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@ea740a2
* Enable AWSRetry on aws_region_info * changelog This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@ea740a2
* Enable AWSRetry on aws_region_info * changelog This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@ea740a2
* Enable AWSRetry on aws_region_info * changelog
Summary
I have an error when I declare a s3 bucket hosted at Scaleway :
NoSuchPolicyConfiguration
Issue Type
Bug Report
Component Name
s3_bucket
Ansible Version
Collection Versions
amazon.aws 1.4.0
AWS SDK versions
Configuration
Default configuration
OS / Environment
Debian 10.3
Steps to Reproduce
I use the same configuration: https://docs.ansible.com/ansible/latest/scenario_guides/guide_scaleway.html
Expected Results
Bucket created
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: