From: David Zafman Date: Thu, 5 Dec 2019 17:48:09 +0000 (-0800) Subject: test: osd-scrub-snaps.sh: Fix race with osd restart and doing a scrub X-Git-Tag: v14.2.10~221^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da6f8e0febe492acbc76110212a9f0b0b0e6a3a0;p=ceph.git test: osd-scrub-snaps.sh: Fix race with osd restart and doing a scrub Fixes: https://tracker.ceph.com/issues/43150 Signed-off-by: David Zafman (cherry picked from commit cca541d0f9a945a3e3ae2247bab238d7d4cea335) --- diff --git a/qa/standalone/scrub/osd-scrub-snaps.sh b/qa/standalone/scrub/osd-scrub-snaps.sh index 5f3bb6549636..04c3f4a51ea0 100755 --- a/qa/standalone/scrub/osd-scrub-snaps.sh +++ b/qa/standalone/scrub/osd-scrub-snaps.sh @@ -201,9 +201,11 @@ function TEST_scrub_snaps() { for osd in $(seq 0 $(expr $OSDS - 1)) do - run_osd $dir $osd || return 1 + activate_osd $dir $osd || return 1 done + wait_for_clean || return 1 + local pgid="${poolid}.0" if ! pg_scrub "$pgid" ; then return 1 @@ -811,9 +813,11 @@ function _scrub_snaps_multi() { for osd in $(seq 0 $(expr $OSDS - 1)) do - run_osd $dir $osd || return 1 + activate_osd $dir $osd || return 1 done + wait_for_clean || return 1 + local pgid="${poolid}.0" if ! pg_scrub "$pgid" ; then return 1