Repository navigation
rgw/cloud-transition: Handle cloud-tiered objects in a multisite environment - #51192
Merged
Merged
Conversation
soumyakoduri
requested review from
cbodley and
mattbenjamin
and removed request for
a team
April 24, 2023 09:30
soumyakoduri
commented
Apr 24, 2023
Contributor
Author
There was a problem hiding this comment.
@cbodley I do not recall why attrs were not used to store tier-config details instead of Object Manifest. To stick to the same behaviour, I used these new attrs only for replication in this change.
cbodley
reviewed
Apr 24, 2023
soumyakoduri
force-pushed
the
wip-skoduri-cloudtier-sync
branch
from
April 25, 2023 15:52
dc44797 to
70082ca
Compare
Contributor
Author
|
@cbodley .. addressed your comments..kindly review the changes! |
cbodley
reviewed
Apr 25, 2023
soumyakoduri
force-pushed
the
wip-skoduri-cloudtier-sync
branch
from
April 25, 2023 18:05
70082ca to
6841601
Compare
cbodley
approved these changes
Apr 25, 2023
Contributor
Author
Contributor
Author
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Signed-off-by: Soumya Koduri <[email protected]>
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 <[email protected]>
This was missed as part of refactoring done to encoder and decoder methods (ceph@2414c75) Signed-off-by: Soumya Koduri <[email protected]>
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 <[email protected]>
soumyakoduri
force-pushed
the
wip-skoduri-cloudtier-sync
branch
from
May 1, 2023 14:04
6841601 to
0f69011
Compare
Contributor
Author
|
jenkins test make check |
Contributor
Author
|
jenkins test make check arm64 |
Contributor
Author
This was referenced May 23, 2023
Merged
This file contains hidden or 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
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.
To prevent s3 clients from reading zero byte cloud-tiered objects, rgw server fails GET requests with ERR_INVALID_OBJECT_STATE error. This resulted in these objects not sync in a multisite environment.
To address that a new header 'x-rgwx-sync-cloudtiered' will be used by internal sync client which when set the source server will allow GET on tiered objects.
In addition two new attrs "RGW_ATTR_CLOUD_TIER_TYPE" and "RGW_ATTR_CLOUD_TIER_CONFIG" are used to store details about the cloud-tiered objects so that they can be copied accordingly post replication.
A bug with decoding tier_targets is also addressed as part of this PR.
Fixes: https://tracker.ceph.com/issues/59525
Signed-off-by: Soumya Koduri [email protected]
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows