]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/standalone/scrub: fix "scrubbed in 0ms" in osd-scrub-test.sh
authorRonen Friedman <rfriedma@redhat.com>
Thu, 10 Jul 2025 07:57:37 +0000 (02:57 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Fri, 11 Jul 2025 11:36:03 +0000 (06:36 -0500)
commit72300a094ebaca0b0219279cdce02992302660c7
tree270a75630c037b435474f5d0f4cd82c49805bc8e
parente2aef77b6ae55aefc590fd10db063acc7377008e
qa/standalone/scrub: fix "scrubbed in 0ms" in osd-scrub-test.sh

The specific test looks for a 'last scrub duration' higher than
0 as a sign that the scrub actually ran.  Previous code fixes
guaranteed that even a scrub duration as low as 1ms would be
reported as "1" (1s).  However, none of the 15 objects created
in this test were designated for the tested PG, which remained
empty.  As a result, the scrub duration was reported as "0".

The fix is to create a large enough number of objects so that
at least one of them is mapped to the tested PG.

Fixes: https://tracker.ceph.com/issues/71801
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit b303afed7a8b2a65043f56170ed478f8d2bc591a)
qa/standalone/scrub/osd-scrub-test.sh