Skip to content

tentacle: rgw: avoid doubled ARN in GetBucketReplication for pre-existing data - #69024

Merged
batrick merged 1 commit into
ceph:tentaclefrom
lumir-sliva:rgw-replication-duplicate-arn-tentacle
Jul 23, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
lumir-sliva:rgw-replication-duplicate-arn-tentacle

Conversation

@lumir-sliva

Copy link
Copy Markdown
Contributor

Cherry-pick of f7e82e9 to tentacle.

Before commit b8f8932 ("rgw: handle destination bucket as an ARN
in ReplicationConfiguration"), the PutBucketReplication handler stored
the full ARN string (e.g. "arn:aws:s3:::bucket") as the bucket name in
the sync policy. After that commit, the GetBucketReplication handler
wraps the stored bucket name in a new ARN via ARN(rgw_bucket).to_string(),
which produces a doubled prefix like "arn:aws:s3:::arn:aws:s3:::bucket"
for buckets whose replication was configured before the fix.

Detect whether the stored bucket name is already a valid S3 ARN and use
it directly instead of wrapping it again. New data written after
b8f8932 stores only the bare bucket name, so the else branch handles
that case unchanged.

Tracker: https://tracker.ceph.com/issues/76702

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)
    • Includes unit test(s)
    • Includes integration test(s)
    • Includes bug reproducer
    • No tests

@lumir-sliva
lumir-sliva requested a review from a team as a code owner May 20, 2026 13:35
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

15 similar comments
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@github-actions github-actions Bot added the rgw label May 20, 2026
@github-actions github-actions Bot added this to the tentacle milestone May 20, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated Redmine Linkage Audit

The following tracking irregularities were found:

  • Missing PR Link: Backport tracker #76702 has no 'Pull Request ID' field set. Please link it to PR #69024.

Commit Parity Visualizer

BACKPORT PR #69024 SOURCE PR SOURCE STATUS
3296f57 rgw: avoid doubled ARN in GetBucketReplication for pre-existing data PR #68137 f7e82e9 rgw: avoid doubled ARN in GetBucketReplication for pre-existing data

🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

CI Run Log: View Workflow Details

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 20, 2026
@cbodley

cbodley commented May 20, 2026

Copy link
Copy Markdown
Contributor

Missing PR Link: Backport tracker #76702 has no 'Pull Request ID' field set. Please link it to PR #69024.

done

@anrao19

anrao19 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

pr testing completed and approved by @ivancich , more details : https://tracker.ceph.com/issues/76985.
@lumir-sliva , if no further testing is needed then this can be merged

@anrao19

anrao19 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@anrao19

anrao19 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

jenkins test rook e2e

@anrao19

anrao19 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

jenkins test dashboard cephadm

Before commit b8f8932 ("rgw: handle destination bucket as an ARN
in ReplicationConfiguration"), the PutBucketReplication handler stored
the full ARN string (e.g. "arn:aws:s3:::bucket") as the bucket name
in the sync policy.  After that commit, the GetBucketReplication
handler wraps the stored bucket name in a new ARN via
ARN(rgw_bucket).to_string(), which produces a doubled prefix like
"arn:aws:s3:::arn:aws:s3:::bucket" for buckets whose replication was
configured before the fix.

Detect whether the stored bucket name is already a valid S3 ARN and
use it directly instead of wrapping it again.  New data written after
b8f8932 stores only the bare bucket name, so the else branch
handles that case unchanged.

Fixes: https://tracker.ceph.com/issues/75770
Signed-off-by: Lumir Sliva <[email protected]>
(cherry picked from commit f7e82e9)
@lumir-sliva
lumir-sliva force-pushed the rgw-replication-duplicate-arn-tentacle branch from 3296f57 to 84f908a Compare June 18, 2026 09:52
@lumir-sliva

Copy link
Copy Markdown
Contributor Author

@cbodley both red checks here are unrelated to the cherry-pick, and the force-push I did to try to clear them didn't help (and won't), so flagging what's actually going on:

  • make check is failing on the mgr/dashboard tox tests with module 'OpenSSL.crypto' has no attribute 'X509Req' in src/python-common/ceph/cryptotools/internal.py. That's the newer pyOpenSSL dropping the X509Req API. main already fixed it in python-common/cryptotools: stop using the removed X509Req API #69446 (stop using the removed X509Req API), but it hasn't been backported to tentacle yet, so every tentacle PR running tox-mgr is red the same way. Rebasing onto tentacle can't fix it since tentacle still carries the broken code.

  • Backport Audit is stuck on the releng-audit-fail label. The bot halts re-runs until it's removed. The original complaint was the missing PR link on tracker #76702, which you already cleared back on 5/20. It just won't re-evaluate while the label sits there.

Could you please drop the releng-audit-fail label so the audit can re-run? The change itself is a clean cherry-pick, already tested + approved by @ivancich (tracker #76985) and marked ready-to-merge. Happy to wait on the X509Req backport landing on tentacle if you'd rather have a fully green make check first.

@batrick batrick removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 9, 2026
@batrick

batrick commented Jul 9, 2026

Copy link
Copy Markdown
Member

jenkins test make check

@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jul 9, 2026
@batrick batrick modified the milestones: tentacle, v20.2.3 Jul 9, 2026
@batrick

batrick commented Jul 9, 2026

Copy link
Copy Markdown
Member

Waiting for make check to pass.

@lumir-sliva

Copy link
Copy Markdown
Contributor Author

Waiting for make check to pass.

@batrick can you run it again please?

@cbodley

cbodley commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Jul 21, 2026
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-pass Release engineering: passed backport verification audit. labels Jul 21, 2026
@batrick
batrick merged commit 900503b into ceph:tentacle Jul 23, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa ready-to-merge releng-audit-pass Release engineering: passed backport verification audit. rgw TESTED

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants