Skip to content

Also treat NotSupported error as a 501 in v9 - #2765

Closed
ramondeklein wants to merge 1 commit into
ansible-collections:stable-9from
ramondeklein:not-supported-fix
Closed

ramondeklein wants to merge 1 commit into
ansible-collections:stable-9from
ramondeklein:not-supported-fix

Conversation

@ramondeklein

@ramondeklein ramondeklein commented Nov 19, 2025 •

Copy link
Copy Markdown
SUMMARY

Accept NotSupported (added by S3 Express and AIStor) as an alternative to NotImplemented code when calling s3_client.get_public_access_block. Note that this is for v9 (v10 already has a fix via #2478).

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

s3_bucket

ADDITIONAL INFORMATION

This PR was submitted, because of the discussion in #2478 (comment).

@ramondeklein ramondeklein changed the title Also treat NotSupported error as a 501 Also treat NotSupported error as a 501 in v9 Nov 19, 2025

@tremble tremble left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM, if you can add a "bugfix" fragment to the PR then we can get this merged: https://docs.ansible.com/projects/ansible/latest/community/development_process.html#changelogs-how-to

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/3bc734cadf9b4b278dff17629270cd8e

✔️ ansible-galaxy-importer SUCCESS in 9m 10s
✔️ build-ansible-collection SUCCESS in 11m 20s
✔️ ansible-test-splitter SUCCESS in 4m 14s
✔️ integration-amazon.aws-1 SUCCESS in 3m 36s
Skipped 43 jobs

@marktheunissen

marktheunissen commented Nov 20, 2025 •

Copy link
Copy Markdown

@tremble I think that we need all lines to be changed, anything like except is_boto3_error_code(["NotImplemented", "XNotImplemented"]) needs to include NotSupported, I see there are multiple places but the PR only addresses one. Do you agree?

@tremble

tremble commented Nov 20, 2025 •

Copy link
Copy Markdown
Contributor

@marktheunissen In theory, yes.

Unfortunately, the 9.x code wasn't very consistent exactly how it handled everything. This is why it's now been swapped over to a decorator to handle this with 10.0.0 :)

If this small change fixes things for AIStor, I would probably limit the changes to those which are already here, simply because our ability to test against anything other than "standard" AWS is very limited. It would be very unfortunate if we broke something else trying to fix this, and doubly so since the error handling has been completely rewritten for the recent versions.

@tremble tremble left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tremble

tremble commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

@ramondeklein,

Thanks for taking the time to submit this PR. This PR only applies to stable-9, which is now security-fixes only, so I'm going to close the PR. As we discussed, this code was significantly reworked with 10.0.0

@tremble tremble closed this Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants