]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/admin: guard bilog autotrim on non-exporting (archive) zones 70455/head
authorOguzhan Ozmen <oozmen@bloomberg.net>
Fri, 17 Jul 2026 19:08:23 +0000 (19:08 +0000)
committerOguzhan Ozmen <oozmen@bloomberg.net>
Wed, 22 Jul 2026 16:44:03 +0000 (16:44 +0000)
commit6ff65d561b961cc365c9e7fb57073ec64639499c
tree0f5bb12d13bf71df266ab51def155bf4b07f112b
parentbf7fde4f8e3fd15e6cfcea4d35e1bab379cc0967
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>
(cherry picked from commit 1543a248a4bba5edc52dc2f9a9f330b95a896aa8)
src/rgw/radosgw-admin/radosgw-admin.cc
src/test/rgw/rgw_multi/tests_az.py