]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
test/ceph-helpers: Pass timeout and add timeout for commands in test_pg_scrub
authorNitzan Mordechai <nmordech@redhat.com>
Mon, 1 Dec 2025 09:24:42 +0000 (09:24 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Mon, 1 Dec 2025 09:37:27 +0000 (09:37 +0000)
commit81e8df0c14d2daaef3074890273a4772551fdd56
treed5ec08ad1f811511c3b4d2e558c9a3739da5b4bf
parent2fe322d34283cd799eed1d53909fedfc125f30bb
test/ceph-helpers: Pass timeout and add timeout for commands in test_pg_scrub

In test_pg_scrub, after killing an OSD, subsequent pg_scrub checks and calls to flush_pg_stats
can hang or timeout with the default time because the OSD is no longer running.
This was causing test failures.

This fix addresses two issues:
1.  test_pg_scrub: Explicitly pass the WAIT_FOR_CLEAN_TIMEOUT and TIMEOUT variables (both set to 2)
    to the pg_scrub call after the OSD is killed. This prevents a hang in the wait_for_clean
    check within pg_scrub.
2.  flush_pg_stats: Add an explicit timeout to the ceph tell osd.$osd flush_pg_stats command,
    allowing it to fail quickly when an OSD is unresponsive.

Fixes: https://tracker.ceph.com/issues/74004
Signed-off-by: Nitzan Mordechai <nmordec@ibm.com>
qa/standalone/ceph-helpers.sh