]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/admin: guard bilog autotrim on non-exporting (archive) zones 70299/head
authorOguzhan Ozmen <oozmen@bloomberg.net>
Fri, 17 Jul 2026 19:08:23 +0000 (19:08 +0000)
committerOguzhan Ozmen <oozmen@bloomberg.net>
Fri, 17 Jul 2026 19:26:46 +0000 (19:26 +0000)
commit1543a248a4bba5edc52dc2f9a9f330b95a896aa8
tree96b718819fba6c02afb239045052c5604f985854
parent36b2e02d2ee97c9454025ad7d470a4ad9b0787ed
rgw/admin: guard bilog autotrim on non-exporting (archive) zones

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 <oozmen@bloomberg.net>
src/rgw/radosgw-admin/radosgw-admin.cc
src/test/rgw/rgw_multi/tests_az.py