Skip to content

rgw/iam: User/Group/Role apis map ECANCELED to ERR_CONCURRENT_MODIFICATION - #68007

Merged
cbodley merged 1 commit into
ceph:mainfrom
cbodley:wip-75722
Apr 30, 2026
Merged

cbodley merged 1 commit into
ceph:mainfrom
cbodley:wip-75722

Conversation

@cbodley

@cbodley cbodley commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

avoid mapping generic ECANCELED errors to 409 by introducing a new ERR_CONCURRENT_MODIFICATION specifically for this mapping. other ECANCELED will default back to 500 UnknownError as they did prior to a9c49a5

for iam apis, retry helper functions retry_raced_user_write() etc. map the resulting ECANCELED errors to ERR_CONCURRENT_MODIFICATION after exhausting the retry counter

https://docs.aws.amazon.com/IAM/latest/APIReference/API_Operations.html isn't very consistent about which of its actions are allowed to return ConcurrentModification. rgw may return this for any metadata writes that are protected by cls_version but are not exclusive creates

Fixes: https://tracker.ceph.com/issues/75722

Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

…ATION

avoid mapping generic ECANCELED errors to 409 by introducing a new
ERR_CONCURRENT_MODIFICATION specifically for this mapping. other
ECANCELED will default back to 500 UnknownError as they did prior to
a9c49a5

for iam apis, retry helper functions retry_raced_user_write() etc.
map the resulting ECANCELED errors to ERR_CONCURRENT_MODIFICATION
after exhausting the retry counter

https://docs.aws.amazon.com/IAM/latest/APIReference/API_Operations.html
isn't very consistent about which of its actions are allowed to return
ConcurrentModification. rgw may return this for any metadata writes
that are protected by cls_version but are not exclusive creates

Fixes: https://tracker.ceph.com/issues/75722

Signed-off-by: Casey Bodley <[email protected]>
@cbodley
cbodley requested a review from a team as a code owner March 25, 2026 20:28
@github-actions github-actions Bot added the rgw label Mar 25, 2026
@anrao19

anrao19 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Pr testing completed. Tacker approved by @ivancich. More details : https://tracker.ceph.com/issues/76230
@cbodley , if no further testing needed, pr can be merged

@cbodley

cbodley commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@cbodley
cbodley merged commit 4346cb2 into ceph:main Apr 30, 2026
6 of 7 checks passed
@cbodley
cbodley deleted the wip-75722 branch April 30, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants