Skip to content

umbrella: rgw/multisite: keep the period id when pulling a period from the master - #73447

Merged
batrick merged 1 commit into
ceph:umbrellafrom
lumir-sliva:wip-82613-umbrella
Nov 14, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
lumir-sliva:wip-82613-umbrella

Conversation

@lumir-sliva

@lumir-sliva lumir-sliva commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

backport tracker: https://tracker.ceph.com/issues/82613


backport of #72671
parent tracker: https://tracker.ceph.com/issues/81758

this backport was staged manually

Clean cherry-pick of 62c0e5b, no conflicts. Umbrella carries the regression:
976889f (the RGWPeriod configstore refactor) is in umbrella, and its
RGWPeriodPuller::pull() still gives a pulled period a random id and epoch 1
before create_period(). Tentacle and squid still use store_info() and aren't
affected.

Tested on vstart (mstart, 3 zones, 1 gateway per zone) with
test_multi_period_incremental_sync, 2 runs per variant, comparing the
periods.* objects in each zone's .rgw.root with the master's period list:

The sync stall from the parent tracker (a zone walking a period under the
made-up id) didn't show in these runs, so the evidence here is the stored
periods and the repeated pulls, not a test failure. The full multisite tests
need #73448 as well.

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

RGWPeriodPuller::pull() fetches a period this zone doesn't have yet from
the metadata master, then stores it. Since the configstore refactor in
976889f it gives the pulled period a new random id and resets its
epoch to 1 before storing it, a copy of the "create a new period" step of
a period commit. Every gateway that pulls a period therefore stores it
under its own made-up id.

The pull path runs when a zone missed a period push, for example a zone
that was down while the master moved. Its metadata sync then walks the
period history with that made-up id, can't find the period's mdlog on the
master, and never gets past it. test_multi_period_incremental_sync shows
it: the zone that was stopped stays on the pulled realm epoch, and its two
gateways log two different period ids for that epoch.

Store the pulled period as it came, like store_info() did before the
refactor.

Introduced by 976889f ("RGW/standalone: refactor RGWPeriod with
configstore").

Fixes: https://tracker.ceph.com/issues/81758
Signed-off-by: Lumir Sliva <[email protected]>
(cherry picked from commit 62c0e5b)
@lumir-sliva
lumir-sliva requested a review from a team as a code owner November 3, 2026 14:25
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR ci-approved to allow Jenkins CI jobs to run.

@github-actions github-actions Bot added the rgw label Nov 3, 2026
@github-actions github-actions Bot added this to the umbrella milestone Nov 3, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Nov 3, 2026
@anrao19

anrao19 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao12-testing-2026-11-11-0619-umbrella.

@anrao19

anrao19 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao12-testing-2026-11-11-0619-umbrella.

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

@batrick
batrick merged commit 8e091cb into ceph:umbrella Nov 14, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved 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.

4 participants