Skip to content

[reef] RGW backports - #51717

Merged
yuriw merged 12 commits into
ceph:reeffrom
soumyakoduri:wip-skoduri-reef
May 25, 2023
Merged

yuriw merged 12 commits into
ceph:reeffrom
soumyakoduri:wip-skoduri-reef

Conversation

@soumyakoduri

@soumyakoduri soumyakoduri commented May 23, 2023 •

Copy link
Copy Markdown
Contributor

This PR contains backports of below fixes -

#50172
#51192
#50676
#51511
#49803

Fixes: https://tracker.ceph.com/issues/61373
Fixes: https://tracker.ceph.com/issues/59643
Fixes: https://tracker.ceph.com/issues/59673
Fixes: https://tracker.ceph.com/issues/61376
Fixes: https://tracker.ceph.com/issues/61392

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

cbodley and others added 11 commits May 23, 2023 22:20
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 <[email protected]>
(cherry picked from commit 77e0b98)
better to tell the s3 client why their request failed than to log it as
an ERROR; this is normal/expected when cloud tiering is enabled

Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit 5713a04)
Signed-off-by: Casey Bodley <[email protected]>
(cherry picked from commit 8ee9b3f)
Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit e33946b)
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]>
(cherry picked from commit cec19b0)
This was missed as part of refactoring done to encoder
and decoder methods (ceph@2414c75)

Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit 4db6325)
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]>
(cherry picked from commit 0f69011)
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 <[email protected]>
(cherry picked from commit 85f0cb5)
Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit d7af6c2)
Signed-off-by: Soumya Koduri <[email protected]>
(cherry picked from commit 570de79)
@soumyakoduri
soumyakoduri requested a review from a team as a code owner May 23, 2023 17:12
@github-actions github-actions Bot added the rgw label May 23, 2023
@soumyakoduri
soumyakoduri requested review from cbodley and removed request for a team May 23, 2023 17:12
@soumyakoduri

Copy link
Copy Markdown
Contributor Author

jenkins test docs

@soumyakoduri

Copy link
Copy Markdown
Contributor Author

jenkins render docs

@cbodley cbodley added this to the reef milestone May 23, 2023
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 <[email protected]>
(cherry picked from commit aeb3a74)
@yuriw
yuriw merged commit a6a81ce into ceph:reef May 25, 2023
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