New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[quincy] RGW backports #51806
Open
soumyakoduri
wants to merge
14
commits into
ceph:quincy
Choose a base branch
from
soumyakoduri:wip-skoduri-quincy
base: quincy
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[quincy] RGW backports #51806
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> (cherry picked from commit 9c3264f)
if we read an object that doesn't have a manifest attribute, RGWRados::get_obj_state_impl() adds an empty one and causes decode to throw an end_of_buffer exception Fixes: https://tracker.ceph.com/issues/58794 Signed-off-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit 77e0b98) (cherry picked from commit 9e476ee)
In a multisite configuration, zones should be able to fetch & sync cloud-transitioned objects as well. To allow this, a new header 'x-rgwx-sync-cloudtiered' is added to be used by sync client to GET such objects. Signed-off-by: Soumya Koduri <skoduri@redhat.com> (cherry picked from commit cec19b0) (cherry picked from commit f7e3e94)
This was missed as part of refactoring done to encoder and decoder methods (ceph@2414c75) Signed-off-by: Soumya Koduri <skoduri@redhat.com> (cherry picked from commit 4db6325) (cherry picked from commit dacf068)
Add new attrs "RGW_ATTR_CLOUD_TIER_TYPE" and "RGW_ATTR_CLOUD_TIER_CONFIG" to store details about cloud-tiered objects so that they get synced accordingly in a multisite environment. Signed-off-by: Soumya Koduri <skoduri@redhat.com> (cherry picked from commit 0f69011) (cherry picked from commit 201f430)
Zones (such as archive zone) which do not export data should have sync logging disabled. Fixes# https://tracker.ceph.com/issues/59106 Signed-off-by: Soumya Koduri <skoduri@redhat.com> (cherry picked from commit 85f0cb5) (cherry picked from commit 2e411d5)
soumyakoduri
force-pushed
the
wip-skoduri-quincy
branch
from
May 29, 2023 12:12
3d98234
to
8b35da7
Compare
jenkins test submodules |
When the zones replicate, allow disabling replication for specific buckets using sync policy. These are the semantics to be followed while resolving the policy conflicts - ================================================== zonegroup bucket Result ================================================== enabled enabled enabled allowed enabled forbidden disabled allowed enabled enabled allowed disabled forbidden disabled forbidden enabled disabled allowed disabled forbidden disabled In case multiple group policies are set to reflect for any sync pair (<source-zone,source-bucket>, <dest-zone,dest-bucket>), the following rules are applied in the order - 1) Even if one policy status is FORBIDDEN, the sync will be disabled 2) Atleast one policy should be ENABLED for the sync to be allowed. Various cases tested are outlined here - https://docs.google.com/document/d/19oBQA-bYxLBR4BnekA2DTwJJaTFvjAfrqAk9G3RGU0I/edit#heading=h.4qac9dpc76m Signed-off-by: Soumya Koduri <skoduri@redhat.com> (cherry picked from commit aeb3a74) (cherry picked from commit 587910c)
soumyakoduri
force-pushed
the
wip-skoduri-quincy
branch
from
May 29, 2023 12:32
8b35da7
to
5178ffd
Compare
jenkins test submodules |
jenkins test api |
jenkins test make check |
|
As per https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html, the only way for users to modify object metadata is to make a copy of the object and set the metadata. Hence retain old mtime for any other attr changes Signed-off-by: Soumya Koduri <skoduri@redhat.com> (cherry picked from commit 31666d7)
soumyakoduri
force-pushed
the
wip-skoduri-quincy
branch
from
July 10, 2023 03:42
c1c8e0d
to
4a60ab3
Compare
thanks. Fixed it. |
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains backports of below fixes -
#50098
#50172
#51192
#50676
#51511
#49803
#52160
Fixes: https://tracker.ceph.com/issues/59674
Fixes: https://tracker.ceph.com/issues/59644
Fixes: https://tracker.ceph.com/issues/61391
Fixes: https://tracker.ceph.com/issues/61389
Fixes: https://tracker.ceph.com/issues/58897
Fixes: https://tracker.ceph.com/issues/61481
Fixes: https://tracker.ceph.com/issues/61877
Signed-off-by: Soumya Koduri skoduri@redhat.com
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard cephadm
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox
jenkins test windows