Skip to content

rgw: skip vector bucket purge on backends without vector support - #72338

Merged
BBoozmen merged 1 commit into
ceph:mainfrom
BBoozmen:wip-oozmen-80755
Oct 7, 2026
Merged

BBoozmen merged 1 commit into
ceph:mainfrom
BBoozmen:wip-oozmen-80755

Conversation

@BBoozmen

@BBoozmen BBoozmen commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Backends without S3 Vectors support like dbstore, posix list_vector_buckets() with -ENOTSUP, so "radosgw-admin user rm --purge-data" always fails there with "unable to list user vector buckets" before the user is ever removed.

Treat -ENOTSUP as "no vector buckets to purge" and continue with the normal bucket purge and user deletion.

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

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

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

Backends without S3 Vectors support like dbstore, posix list_vector_buckets()
with -ENOTSUP, so "radosgw-admin user rm --purge-data" always fails there
with "unable to list user vector buckets" before the user is ever removed.

Treat -ENOTSUP as "no vector buckets to purge" and continue with the
normal bucket purge and user deletion.

Fixes: https://tracker.ceph.com/issues/80755
Signed-off-by: Oguzhan Ozmen <[email protected]>
@BBoozmen
BBoozmen requested a review from yuvalif October 2, 2026 16:24
@BBoozmen BBoozmen self-assigned this Oct 2, 2026
@BBoozmen
BBoozmen requested a review from a team as a code owner October 2, 2026 16:24
@github-actions github-actions Bot added the rgw label Oct 2, 2026
@BBoozmen BBoozmen added needs-qa wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Oct 5, 2026
@BBoozmen

BBoozmen commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

QA Test Results

I think this is my personal record, all tests passed!!! 84 PASSED, 0 FAIL!!!

dbstore test invidual run and as a part of rgw suite both passed...some evdeeince from dbstore run

 s3-tests (pytest)                        484 passed, 72 skipped, 552 deselected, 0 errors, 0 failed 

radosgw-admin ... user rm --uid foo.client.0        --purge-data  
radosgw-admin ... user rm --uid bar.client.0        --purge-data  
radosgw-admin ... user rm --uid testx$tenanteduser  --purge-data  
radosgw-admin ... user rm --uid foobar.client.0     --purge-data  
radosgw-admin ... user rm --uid root1.client.0      --purge-data  
radosgw-admin ... user rm --uid root2.client.0      --purge-data  

all cleanly completed this time with the fix and all s3-tests passed.

@BBoozmen BBoozmen added TESTED and removed needs-qa wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Oct 7, 2026
@BBoozmen
BBoozmen merged commit ec896b4 into ceph:main Oct 7, 2026
18 checks passed
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/37630829693

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.

2 participants