]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/cloud: Add custom headers for objects transitioned to cloud 50098/head
authorSoumya Koduri <skoduri@redhat.com>
Mon, 13 Feb 2023 15:00:21 +0000 (20:30 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Mon, 20 Feb 2023 17:33:53 +0000 (23:03 +0530)
commit9c3264fd943bf6ecdc093255063b9caa6ab43d84
tree57441b7887fe55df40015f6dfdc02884fa18b5a0
parent8c1d7ce1ddb5b89e403fe2f6aef16e582b1c4733
rgw/cloud: Add custom headers for objects transitioned to cloud

Some of the cloud services, (like MCG Noobaa/Azure Namespace store),
may not be able to map and store the objects which contain s3 style
metadata keys.

To help such services determine if the objects being transitioned
are from RGW and whether or not ignore such attrs, added below two
headers for the objects being copied/transitioned from RGW -

1) x-rgw-cloud : true/false
(set to "true" if the object is being transitioned/synced from RGW)

2) x-rgw-cloud-keep-attrs : true/false
- if set to default "true" , the cloud service should store all the
x-amz-meta-* attrs. If cannot be mapped/stored, the operation
should fail
- if set to "false", the destination cloud can ignore such attrs and
just store the object data being sent.

Also fixed a bug in the cloudtier module wherein the user-defined attrs
were not being copied to the cloud endpoint as part of transition

Fixes: https://tracker.ceph.com/issues/57980
Fixes: https://tracker.ceph.com/issues/58796
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
doc/radosgw/cloud-transition.rst
src/rgw/driver/rados/rgw_lc_tier.cc