Repository navigation
qa: make test_progress atomically capture OSD marked in/out events - #67659
Conversation
Problem: Test had a race condition where events could complete and disappear between checking the event count and fetching the event, causing test failures. Solution: Refactor to atomically capture events during the wait condition check. Added helper methods _wait_for_osd_marked_out_event() and _wait_for_osd_marked_in_event() that capture events at the moment they're detected, eliminating the race window. Fixes: https://tracker.ceph.com/issues/70320 Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
|
Because of the non-deterministic nature of the bug, currently, I am trying to verify the fix by scheduling 2 runs. Run 1: without the fix (40 jobs) -> goal to get some reds: https://pulpito.ceph.com/ksirivad-2026-03-05_16:11:56-rados:mgr-main-distro-default-trial/ Run 2: with the fix (40 jobs) -> goal to get all green: https://pulpito.ceph.com/ksirivad-2026-03-05_16:15:02-rados:mgr-main-distro-default-trial/ |
|
I can confirm that with the fix we have got rid of the issue: https://pulpito.ceph.com/ksirivad-2026-03-05_16:15:02-rados:mgr-main-distro-default-trial/ However, we might need to whitelist:
as that is the only unrelated failure that we unblocked for https://pulpito.ceph.com/ksirivad-2026-03-05_16:15:02-rados:mgr-main-distro-default-trial/89808/ |
|
The reason we had a slow-requests is because during the test, 16 concurrent 4 MB writes were running while recovery and backfill were disabled. At the same time, osd.0 was marked out and then back in, causing PG remapping. Because recovery/backfill was disabled, some PGs could not restore their replicas after the remap, leaving them in degraded/remapped states. As a result, a batch of writes remained stuck in the replicated write path, leading to IO stall and slow ops being reported. Solution is to ignore this as we are testing the progress module, not the write paths of OSDs. We intentionally disable backfill and recovery in order to prevent the recovery event to finish quickly. We wanted to prolong it until the progress event pops up. |
The reason we had a slow-requests is because during the test, 16 concurrent 4 MB writes were running while recovery and backfill were disabled. At the same time, osd.0 was marked out and then back in, causing PG remapping. Because recovery/backfill was disabled, some PGs could not restore their replicas after the remap, leaving them in degraded/remapped states. As a result, a batch of writes remained stuck in the replicated write path, leading to IO stall and slow ops being reported. Solution is to ignore this as we are testing the progress module, not the write paths of OSDs. We intentionally disable backfill and recovery in order to prevent the recovery event to finish quickly. We wanted to prolong it until the progress event pops up. Fixes: https://tracker.ceph.com/issues/70320 Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
3f8b21d to
6b0c943
Compare
shraddhaag
left a comment
There was a problem hiding this comment.
This looks good. Thanks for the detailed explanation Junior.
Just to be sure, do we have an updated QA run where we see all jobs green?
@shraddhaag you're correct to ask, I am scheduling another run right now. Thanks for the review! |
|
Yep looks like it's all green! |
|
This doesn't need to go through the extensive 250 jobs + rados suite test in teuthology since it only change a rados:mgr suite that is specific to the prorgress module. We have verified that the changes are all green in our 40 jobs run of the same test with different distro and etc. There were no actual |
Problem:
Test had a race condition where events could complete and disappear between checking the event count and fetching the event, causing test failures.
Slow ops problem:
The reason we had a
slow-requestsis because during the test, 16 concurrent 4 MB writes were running while recovery and backfill were disabled. At the same time, osd.0 was marked out and then back in, causing PG remapping. Because recovery/backfill was disabled, some PGs could not restore their replicas after the remap, leaving them in degraded/remapped states. As a result, a batch of writes remained stuck in the replicated write path, leading to IO stall and slow ops being reported. Solution is to ignore this as we are testing the progress module, not the write paths of OSDs. We intentionally disable backfill and recovery in order to prevent the recovery event to finish quickly. We wanted to prolong it until the progress event pops up.Solution:
Refactor to atomically capture events during the wait condition check. Added helper methods _wait_for_osd_marked_out_event() and _wait_for_osd_marked_in_event() that capture events at the moment they're detected, eliminating the race window.
white-list
slow-requestsFixes: https://tracker.ceph.com/issues/70320
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.