]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: allow rgw-orphan-list to note when rados objects are in namespace
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 6 Oct 2020 19:21:02 +0000 (15:21 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 26 Oct 2020 17:49:17 +0000 (18:49 +0100)
commit6a813eae7f1a8dfcca335f744f979bedfe6ba86e
tree2a0aac1f3908d15914d0b25d98e78ed65000651f
parenta2010cbc82ce53c909c3d230726d633f552e43a1
rgw: allow rgw-orphan-list to note when rados objects are in namespace

Currently namespaces and locators are ignored when `rados ls` is run
by rgw-orphan-list to record RADOS's known objects.

However there have been cases where RADOS objects have a locator, and
when one is included in the listing, the script does not handle it
correctly. Now when objects have locators, we will prevent their
output from entering the .intermediate file.

Additionally we do not expect RGW data objects to be in RADOS
namespaces, so when a namespaced object is detected, we'll error out
with a message.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit ddf52016fa03ba192f242ad641a5c8e5a95035a1)
src/rgw/rgw-orphan-list