Skip to content

qa/tests: fix flaky multisite tests - #70510

Merged
smanjara merged 2 commits into
ceph:mainfrom
smanjara:wip-shilpa-test_zonegroup_rename
Jul 31, 2026
Merged

smanjara merged 2 commits into
ceph:mainfrom
smanjara:wip-shilpa-test_zonegroup_rename

Conversation

@smanjara

Copy link
Copy Markdown
Contributor

https://tracker.ceph.com/issues/77665

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.

@smanjara
smanjara requested a review from a team as a code owner July 23, 2026 23:30
@smanjara

smanjara commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Looks good. You may also want to add "Fixes: ..." trailer to the commit description, too?

period commit only triggers async push (RGWPeriodPusher)
from the a zone's gateway to the other zones. it doesn't block
until they've applied it. a reconfigure delay alone might not
be sufficient. add checkpoint retries to allow for lag.

Signed-off-by: Shilpa Jagannath <[email protected]>
@smanjara
smanjara force-pushed the wip-shilpa-test_zonegroup_rename branch from e8bacc2 to 90098a7 Compare July 24, 2026 20:48
rely on 'bucket sync status' instead of looking up sync-status object.
it reports that there are no sync sources once the bucket's disabled
flag has propagated. also add a meta checkpoint after disabling.

Signed-off-by: Shilpa Jagannath <[email protected]>
@smanjara smanjara changed the title qa/tests: add checkpoint retries in zonegroup rename test qa/tests: fix flaky multisite tests Jul 27, 2026
@smanjara

Copy link
Copy Markdown
Contributor Author

added a commit to fix test_bucket_sync_disable in this same PR as I was testing them together and it doesn't involve src code change..

https://pulpito.ceph.com/smanjara-2026-07-27_19:42:28-rgw:multisite-wip-shilpa-test_zonegroup_rename-distro-default-trial/

the tests test_bucket_sync_disable and test_zonegroup_rename passed in multiple runs. but the two newly added tests from #70003 that are unrelated to this PR have been consistently failing. cc @BBoozmen

2026-07-27T20:50:37.697 INFO:tasks.rgw_multisite_tests:
2026-07-27T20:50:37.697 INFO:tasks.rgw_multisite_tests:======================================================================
2026-07-27T20:50:37.697 INFO:tasks.rgw_multisite_tests:FAIL: rgw_multi.tests.test_bucket_log_trim_enoent_race_after_reshard
2026-07-27T20:50:37.697 INFO:tasks.rgw_multisite_tests:----------------------------------------------------------------------
2026-07-27T20:50:37.697 INFO:tasks.rgw_multisite_tests:Traceback (most recent call last):
2026-07-27T20:50:37.697 INFO:tasks.rgw_multisite_tests:  File "/home/teuthworker/src/git.ceph.com_teuthology_1fcba62fdc66bf66c0e46aa34af7211788698d08/.venv/lib/python3.12/site-packages/nose/case.py", line 171, in runTest
2026-07-27T20:50:37.697 INFO:tasks.rgw_multisite_tests:    self.test(*self.arg)
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:  File "/home/teuthworker/src/github.com_smanjara_ceph_405b99064fd9f676b911f421e638010295a1e1e2/qa/../src/test/rgw/rgw_multi/tests.py", line 2319, in test_bucket_log_trim_enoent_race_after_reshard
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:    assert check_bucket_instance_metadata(zone.zone, test_bucket.name)
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:AssertionError
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:======================================================================
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:FAIL: rgw_multi.tests.test_bucket_log_trim_new_bucket_entrypoint_not_synced
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:----------------------------------------------------------------------
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:Traceback (most recent call last):
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:  File "/home/teuthworker/src/git.ceph.com_teuthology_1fcba62fdc66bf66c0e46aa34af7211788698d08/.venv/lib/python3.12/site-packages/nose/case.py", line 171, in runTest
2026-07-27T20:50:37.698 INFO:tasks.rgw_multisite_tests:    self.test(*self.arg)
2026-07-27T20:50:37.699 INFO:tasks.rgw_multisite_tests:  File "/home/teuthworker/src/github.com_smanjara_ceph_405b99064fd9f676b911f421e638010295a1e1e2/qa/../src/test/rgw/rgw_multi/tests.py", line 2417, in test_bucket_log_trim_new_bucket_entrypoint_not_synced
2026-07-27T20:50:37.699 INFO:tasks.rgw_multisite_tests:    assert window_hit, \
2026-07-27T20:50:37.699 INFO:tasks.rgw_multisite_tests:           ^^^^^^^^^^
2026-07-27T20:50:37.699 INFO:tasks.rgw_multisite_tests:AssertionError: could not reproduce instance-synced-but-entrypoint-not window on secondary
2026-07-27T20:50:37.699 INFO:tasks.rgw_multisite_tests:
2026-07-27T20:50:37.699 INFO:tasks.rgw_multisite_tests:----------------------------------------
2026-07-27T20:50:37.699 INFO:tasks.rgw_multisite_tests:Ran 60 tests in 3137.282s
2026-07-27T20:50:37.699 INFO:tasks.rgw_multisite_tests:
2026-07-27T20:50:37.699 INFO:tasks.rgw_multisite_tests:FAILED (SKIP=2, failures=2)

@smanjara

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@BBoozmen

Copy link
Copy Markdown
Contributor

added a commit to fix test_bucket_sync_disable in this same PR as I was testing them together and it doesn't involve src code change..
https://pulpito.ceph.com/smanjara-2026-07-27_19:42:28-rgw:multisite-wip-shilpa-test_zonegroup_rename-distro-default-trial/
the tests test_bucket_sync_disable and test_zonegroup_rename passed in multiple runs. but the two newly added tests from #70003 that are unrelated to this PR have been consistently failing. cc @BBoozmen

Hi @smanjara -- can you please share the ceph-ci test branch you were seeing this testcase failure?

O/w, I've done a couple of rgw (multisite) QA runs on main after #70003 merged-in, didn't see it failing. Also, I looked at the ceph-ci test branch https://github.com/ceph/ceph-ci/tree/wip-shilpa-test_zonegroup_rename it doesn't seem to include #70003 .

One thing about assert window_hit - I had made a small change to the test while it was still in-review. I'm just guessing you might be using an earlier version of PR #70003 before it was merged in but not its final state. TLDR; on teuthology, when setting a config we should be using "client" not "client.rgw" so this testcase was working fine locally but failing on teuthology (with this assertion) until I added the change using "client" when setting the delayer cfg in the testcase.

@BBoozmen

BBoozmen commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Just an example for a recent main branch QA run that shows the testcase test_bucket_log_trim_new_bucket_entrypoint_not_synced passes (no assert window_hit assertion):

only rgw/d4n suite failed:
image

Both multisite tests passed in-full

In both runs, the testcase that has this assert (i.e., assert window_hit) passed

2026-07-25T11:48:44.137 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_bucket_log_trim_new_bucket_entrypoint_not_synced ... ok

2026-07-25T12:02:15.934 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_bucket_log_trim_new_bucket_entrypoint_not_synced ... ok

Can you please create a new test-branch on top of a up-to-date main and retry maybe?

@smanjara

Copy link
Copy Markdown
Contributor Author

Can you please create a new test-branch on top of a up-to-date main and retry maybe?

thanks for clarifying @BBoozmen. I'll rebase and retry.

@smanjara
smanjara merged commit 8482cb1 into ceph:main Jul 31, 2026
8 of 9 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.

2 participants