Skip to content

rgw/admin: guard bilog autotrim on non-exporting (archive) zones - #70299

Merged
BBoozmen merged 1 commit into
ceph:mainfrom
BBoozmen:wip-oozmen-78364
Jul 22, 2026
Merged

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

Conversation

@BBoozmen

Copy link
Copy Markdown
Contributor

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

The background sync-log-trim thread already skips bucket trim on zones whose sync module does not export data , but the admin command had no equivalent guard, so running it on an archive zone could delete instance metadata the zone is meant to retain.

So, refuse the command on non-exporting zones unless --yes-i-really-mean-it is given.

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.

The background sync-log-trim thread already skips bucket trim on zones whose
sync module does not export data , but the admin command had no equivalent
guard, so running it on an archive zone could delete instance metadata the
zone is meant to retain.

So, refuse the command on non-exporting zones unless --yes-i-really-mean-it is
given.

Fixes: https://tracker.ceph.com/issues/78364
Signed-off-by: Oguzhan Ozmen <[email protected]>
@BBoozmen BBoozmen self-assigned this Jul 17, 2026
@BBoozmen
BBoozmen requested a review from a team as a code owner July 17, 2026 19:27
@BBoozmen
BBoozmen requested a review from smanjara July 17, 2026 19:28
@BBoozmen BBoozmen added wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh and removed wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Jul 18, 2026
@BBoozmen

BBoozmen commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor Author

ceph-ci branch: https://github.com/ceph/ceph-ci/tree/wip-oozmen-az-admin-autotrim-testing-2026-07-18-0142
QA results: https://pulpito.ceph.com/?sha1=dc6da5a1e3574e899d50d0e183b4c6ce8a65f511
Summary:

@BBoozmen
BBoozmen merged commit 014487f into ceph:main Jul 22, 2026
7 checks passed
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