Skip to content

Commit dffbdf4

Browse files
committed
test/osd/scrub: fix searched-for log string
To match the modified log message in OsdScrub::restrictions_on_scrubbing(). Signed-off-by: Ronen Friedman <[email protected]>
1 parent 78d0255 commit dffbdf4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

qa/standalone/scrub/osd-recovery-scrub.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ function TEST_recovery_scrub_1() {
9999
kill_daemons $dir #|| return 1
100100

101101
declare -a err_strings
102-
err_strings[0]="recovery in progress. Only high priority scrubs allowed."
102+
err_strings[0]="recovery in progress.*scrubs"
103103

104104
for osd in $(seq 0 $(expr $OSDS - 1))
105105
do
106-
grep "recovery in progress. Only high priority scrubs allowed." $dir/osd.${osd}.log
106+
grep "recovery in progress.*scrubs" $dir/osd.${osd}.log
107107
done
108108
for err_string in "${err_strings[@]}"
109109
do
@@ -269,7 +269,7 @@ function TEST_recovery_scrub_2() {
269269
ceph pg dump pgs
270270

271271
# note that the following will be needed if the mclock scheduler is specified
272-
#ceph tell osd.* config get osd_mclock_override_recovery_settings
272+
ceph tell osd.* config get osd_mclock_override_recovery_settings
273273

274274
# the '_max_active' is expected to be 0
275275
ceph tell osd.1 config get osd_recovery_max_active
@@ -327,11 +327,11 @@ function TEST_recovery_scrub_2() {
327327
kill_daemons $dir #|| return 1
328328

329329
declare -a err_strings
330-
err_strings[0]="not scheduling scrubs due to active recovery"
331-
330+
## we do not expect a refusal to scrub
331+
err_strings[0]="recovery in progress.*scrubs"
332332
for osd in $(seq 0 $(expr $OSDS - 1))
333333
do
334-
grep "not scheduling scrubs" $dir/osd.${osd}.log
334+
grep "recovery in progress.*scrubs" $dir/osd.${osd}.log
335335
done
336336
for err_string in "${err_strings[@]}"
337337
do

0 commit comments

Comments
 (0)