]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: make test_progress atomically capture OSD marked in/out events
authorKamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
Wed, 4 Mar 2026 22:08:49 +0000 (22:08 +0000)
committerKamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
Thu, 12 Mar 2026 14:44:28 +0000 (14:44 +0000)
commit8ce3b83d69bb24e271516970e9ad33bf21969e2f
treedc312e1334d4527acf65db4e9221babffadf4516
parentd43521ffa748ee72daf9f08085b8aa6bf667631d
qa: make test_progress atomically capture OSD marked in/out events

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 <ksirivad@redhat.com>
(cherry picked from commit 0ef66f6f2e1881061ecb49e457bb2b9061c0260b)
qa/tasks/mgr/test_progress.py