]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: add force option to `radosgw-admin object rm ...`
authorJ. Eric Ivancich <ivancich@redhat.com>
Mon, 24 Mar 2025 23:45:06 +0000 (19:45 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 17 Jul 2025 19:07:33 +0000 (15:07 -0400)
commit1d8c5544156ea1baa66f8cfc7343ce1d5a1293ea
treeba1f6df4e41e395bdeb323e5002499b222927d69
parente047539ffafcb208edb80b98b3ae207f6c17a839
rgw: add force option to `radosgw-admin object rm ...`

The `radosgw-admin object rm ...` sub-command will give up if it
determines that there's an issue with the head object. This can make
it difficult for an admin to clean up a bucket index when there's a
damaged or missing head object.

When the user adds the "--yes-i-really-mean-it" command-line option,
it enables the "force mode". The bucket index entry(ies) will be
removed. If the object being removed is the current version in a
versioned bucket, the appropriate changes to the OLH will take place.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 7e1ac21069e14a4d6c4d4748971943b7c8b8137c)
src/rgw/driver/rados/rgw_bucket.cc
src/rgw/driver/rados/rgw_bucket.h
src/rgw/driver/rados/rgw_rados.cc
src/rgw/driver/rados/rgw_rados.h
src/rgw/driver/rados/rgw_sal_rados.cc
src/rgw/rgw_admin.cc
src/rgw/rgw_sal.h