Skip to content

rgw: fix radosgw-admin object unlink ...#66123

Merged
ivancich merged 1 commit intoceph:mainfrom
ivancich:wip-fix-unlink-old-shard
Nov 6, 2025
Merged

rgw: fix radosgw-admin object unlink ...#66123
ivancich merged 1 commit intoceph:mainfrom
ivancich:wip-fix-unlink-old-shard

Conversation

@ivancich
Copy link
Copy Markdown
Member

@ivancich ivancich commented Nov 4, 2025

The unlink subcommand did not handle unsharded bucket indices appropriately. These are when the number of shards listed in the bucket instance object is 0. In that case there will actually be 1 shard.

When number of shards as 0 is passed into the function that maps object names to shards, it returns -1. And that was not handled properly. That is now fixed.

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

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.

@ivancich ivancich requested a review from a team as a code owner November 4, 2025 22:44
@ivancich ivancich requested a review from cbodley November 4, 2025 22:47
@ivancich ivancich added needs-review and removed DNM labels Nov 4, 2025
The unlink subcommand did not handle unsharded bucket indices
appropriately. These are when the number of shards listed in the
bucket instance object is 0. In that case there will actually be 1
shard.

When number of shards as 0 is passed into the function that maps
object names to shards, it returns -1. And that was not handled
properly. That is now fixed.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
@ivancich ivancich force-pushed the wip-fix-unlink-old-shard branch from cfa3a9a to 9eeb71e Compare November 5, 2025 13:36
@ivancich
Copy link
Copy Markdown
Member Author

ivancich commented Nov 5, 2025

jenkins test make check arm64

@ivancich ivancich added needs-qa wip-eric-testing-1 for ivancich testing and removed needs-review labels Nov 5, 2025
@ivancich
Copy link
Copy Markdown
Member Author

ivancich commented Nov 6, 2025

@ivancich ivancich merged commit 093fdbe into ceph:main Nov 6, 2025
13 checks passed
@ivancich ivancich removed needs-qa wip-eric-testing-1 for ivancich testing labels Nov 6, 2025
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