Skip to content

umbrella: rgw: fix period's sync_status during failover/failback - #73448

Merged
batrick merged 2 commits into
ceph:umbrellafrom
lumir-sliva:wip-82614-umbrella
Nov 14, 2026
Merged

batrick merged 2 commits into
ceph:umbrellafrom
lumir-sliva:wip-82614-umbrella

Conversation

@lumir-sliva

Copy link
Copy Markdown
Contributor

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


backport of #71707
parent tracker: https://tracker.ceph.com/issues/80439

this backport was staged manually

Clean cherry-pick of 63be44a and e1247bc, no conflicts, added and
removed lines identical to main. Umbrella was branched before #71707 merged and
has the same bug as main had: a master zone change is refused with a false
"zone is N period(s) behind", and after a forced one the secondaries abort in
RGWMetaSyncCR::operate. The tentacle backport is #72687 (that one needed a
hand port, umbrella doesn't).

Tested on vstart (mstart, 3 zones, 1 gateway per zone):

  • umbrella: test_multi_period_incremental_sync fails 4 of 4 at
    set_master_zone(z2): "This zone is 2 period(s) behind the current master
    zone in metadata sync", "failed to commit period: (22) Invalid argument"
  • umbrella + this backport: test_multi_period_incremental_sync passes 4 of 4
  • test_failover_failback (added by this PR), with umbrella: rgw/multisite: keep the period id when pulling a period from the master #73447 on top: passes 2 of 2,
    no radosgw crash
  • the same test with the src/rgw part reverted (tests.py kept): fails 2 of 2 at
    the meta checkpoint for the third zone; its gateway aborts twice per run in
    the meta-sync thread in RGWMetaSyncCR::operate, the crash from the tracker

#73447 (umbrella backport of #72671) is the other half of the multisite fixes
these tests exercise on umbrella.

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

Shilpa Jagannath added 2 commits November 3, 2026 14:15
to prevent out-of-bounds access

sync_status can be empty during a failback.

Signed-off-by: Shilpa Jagannath <[email protected]>
(cherry picked from commit 63be44a)
…zone change

period update --commit after `zone modify --master` already treats this
zone as meta master, so RGWMetaSyncStatusManager does not read
mdlog.sync-status and the new period stores an empty sync_status. other
zones can incorrectly read that empty status.

read mdlog sync status from the local zone in the update_sync_status()
method which is called only when the period's master zone changes.

add a test case for failover/failback
Signed-off-by: Shilpa Jagannath <[email protected]>
(cherry picked from commit e1247bc)
@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 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-anrao19-testing-2026-11-11-0646-umbrella.

@anrao19

anrao19 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao19-testing-2026-11-11-0646-umbrella.

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

@lumir-sliva

Copy link
Copy Markdown
Contributor Author

@anrao19 thanks, no further testing needed from my side. Note it pairs with #73447 (also TESTED); they were verified together, so ideally both go in the same batch.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants