]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/cloud-transition: Fix issues with MCG endpoint
authorSoumya Koduri <skoduri@redhat.com>
Sat, 5 Nov 2022 16:53:53 +0000 (22:23 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Tue, 22 Nov 2022 04:32:28 +0000 (10:02 +0530)
commit2272c7a8dbf05325802953c95c0e04b8659fee25
tree4b894cd194f1177ff5a727c48604568a0a04b46a
parent6a3c09ed786656dc7a1c8af0d10662f1f45ef605
rgw/cloud-transition: Fix issues with MCG endpoint

Few s3 endpoints (like Noobaa MCG or AWS) may return BucketAlreadyOwned
or BucketAlreadyExists error if the target path (configured for
cloud transition) already exists. Do not fail transition in those cases.

Also fixed below issues -
* with racing lc threads, when one lc thread is trying to check and create the
target bucket, others may go ahead with the object transition assuming target path
exists.
* initialize few fields to avoid setting wrong content_len during transition

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
src/rgw/rgw_lc_tier.cc
src/rgw/rgw_lc_tier.h
src/rgw/rgw_rest_conn.cc
src/rgw/rgw_sal_rados.cc