Skip to content

rgw/cloud-transition: Handle cloud-tiered objects in a multisite environment - #51192

Merged
soumyakoduri merged 4 commits into
ceph:mainfrom
soumyakoduri:wip-skoduri-cloudtier-sync
May 4, 2023
Merged

soumyakoduri merged 4 commits into
ceph:mainfrom
soumyakoduri:wip-skoduri-cloudtier-sync

Conversation

@soumyakoduri

@soumyakoduri soumyakoduri commented Apr 24, 2023 •

Copy link
Copy Markdown
Contributor

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

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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

@soumyakoduri
soumyakoduri requested a review from a team as a code owner April 24, 2023 09:30
@github-actions github-actions Bot added the rgw label Apr 24, 2023
@soumyakoduri
soumyakoduri requested review from cbodley and mattbenjamin and removed request for a team April 24, 2023 09:30

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

@mattbenjamin mattbenjamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread src/rgw/rgw_op.cc Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting, ok

Comment thread src/rgw/rgw_op.cc Resolved
Comment thread src/rgw/rgw_op.cc Resolved
Comment thread src/rgw/driver/rados/rgw_sal_rados.cc Resolved
Comment thread src/rgw/rgw_common.h Resolved
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-cloudtier-sync branch from dc44797 to 70082ca Compare April 25, 2023 15:52
@soumyakoduri

Copy link
Copy Markdown
Contributor Author

@cbodley .. addressed your comments..kindly review the changes!

Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
Comment thread src/rgw/rgw_op.cc Resolved
Comment thread src/rgw/rgw_op.cc Resolved
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-cloudtier-sync branch from 70082ca to 6841601 Compare April 25, 2023 18:05
@soumyakoduri

soumyakoduri commented Apr 27, 2023 •

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented May 1, 2023

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

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
soumyakoduri force-pushed the wip-skoduri-cloudtier-sync branch from 6841601 to 0f69011 Compare May 1, 2023 14:04
@soumyakoduri

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@soumyakoduri

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@soumyakoduri
soumyakoduri merged commit 0df2e7a into ceph:main May 4, 2023
This was referenced May 23, 2023
@soumyakoduri
soumyakoduri deleted the wip-skoduri-cloudtier-sync branch August 19, 2024 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants