Skip to content

rgw/cloud-transition: copy source bucket tags to per-bucket targets - #72919

Merged
mheler merged 1 commit into
ceph:mainfrom
mheler:wip-rgw-target-path-by-bucket-tags
Nov 2, 2026
Merged

mheler merged 1 commit into
ceph:mainfrom
mheler:wip-rgw-target-path-by-bucket-tags

Conversation

@mheler

@mheler mheler commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

When target_by_bucket creates a destination bucket, include the source bucket's tags in CreateBucketConfiguration. Retry once without tags if the tagged request returns 400.

Fixes: https://tracker.ceph.com/issues/81916

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@mheler
mheler marked this pull request as ready for review October 21, 2026 11:47
@mheler
mheler requested review from a team as code owners October 21, 2026 11:47
@mheler
mheler requested a review from soumyakoduri October 21, 2026 11:47

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

docs lgtm

Comment thread src/rgw/driver/rados/rgw_lc_tier.cc Outdated
return ret;
}
// rgw before tentacle answers 400 to a body without LocationConstraint
if (ret == -EINVAL && !req_enc.tags.empty()) {

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.

Missing s3:TagResource permission might return -EPERM/-EACCESS right..

Also since its only best effort to copy tags, should we ignore any errors which may occur when tags are included (like decode error at line:1576)?

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.

@soumyakoduri updated to retry without tags on a permission error and create the bucket without tags on a decode error.

When target_by_bucket creates a destination bucket, include the source
bucket's tags in CreateBucketConfiguration. Tags are best effort: if
they can't be decoded, or the tagged request fails, create the bucket
without them.

Assisted-by: Claude Opus 5.5
Signed-off-by: Matthew N. Heler <[email protected]>
@mheler
mheler force-pushed the wip-rgw-target-path-by-bucket-tags branch from 3edcbe7 to 5d74aca Compare October 26, 2026 11:55
@anrao19

anrao19 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao4-testing-2026-10-28-0754-main.

@anrao19

anrao19 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao4-testing-2026-10-28-0754-main.

pr testing completed and approved by @ivancich , more details in : #73146
@mheler, if no further testing is needed then this pr can be merged

@mheler
mheler merged commit 93d1974 into ceph:main Nov 2, 2026
20 checks passed
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.

4 participants