Skip to content

rgw: account rm --purge-data can delete users/roles/groups/oidcs too - #67405

Merged
cbodley merged 2 commits into
ceph:mainfrom
cbodley:wip-75008
Mar 18, 2026
Merged

cbodley merged 2 commits into
ceph:mainfrom
cbodley:wip-75008

Conversation

@cbodley

@cbodley cbodley commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

users and all of their buckets/objects can be deleted in one shot with radosgw-admin user rm --purge-data. this --purge-data option was copied for account rm, but only applied to buckets/objects and not other account metadata like users/roles/groups/oidc-providers. if any of those objects still existed, account rm would fail with ENOTEMPTY until the account owner used IAM apis like DeleteUser etc to remove them all manually

--purge-data now applies to all account metadata, enabling admins to remove them in one shot

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

TODO:

  • check for and optionally remove account topics
Show available Jenkins commands

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

users and all of their buckets/objects can be deleted in one shot with
`radosgw-admin user rm --purge-data`. this `--purge-data` option was
copied for `account rm`, but only applied to buckets/objects and not
other account metadata like users/roles/groups/oidc-providers. if any
of those objects still existed, `account rm` would fail with `ENOTEMPTY`
until the account owner used IAM apis like DeleteUser etc to remove them
all manually

`--purge-data` now applies to all account metadata, enabling admins to
remove them in one shot

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

Signed-off-by: Casey Bodley <[email protected]>
@cbodley
cbodley requested a review from a team February 18, 2026 19:24
kchheda3
kchheda3 previously approved these changes Feb 19, 2026
Comment thread src/rgw/rgw_account.cc Resolved
@kchheda3
kchheda3 dismissed their stale review February 20, 2026 14:10

need to address the topic deletion belonging to owner

@kchheda3 kchheda3 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.

Thanks @cbodley

@anrao19

anrao19 commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Execution complete and tracker approved by @ivancich . tracker detail: https://tracker.ceph.com/issues/75155
@cbodley , If no further testing needed, pr can be merged

@anrao19

anrao19 commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

1 similar comment
@anrao19

anrao19 commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@cbodley
cbodley merged commit 957f891 into ceph:main Mar 18, 2026
8 of 9 checks passed
@cbodley
cbodley deleted the wip-75008 branch March 18, 2026 20:05
@cbodley cbodley mentioned this pull request Apr 8, 2026
4 of 14 tasks
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.

3 participants