]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/osd/scrub: fix searched-for log string 58858/head
authorRonen Friedman <rfriedma@redhat.com>
Sun, 25 Aug 2024 08:57:42 +0000 (03:57 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Sun, 25 Aug 2024 13:01:00 +0000 (08:01 -0500)
To match the modified log message in
OsdScrub::restrictions_on_scrubbing().

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
qa/standalone/scrub/osd-recovery-scrub.sh

index 1f4319e3ad5d169eaaec0ce76b342fcea3a570d1..7c1864073b0b35db1c0f38e1f84e46c3c4c4c64e 100755 (executable)
@@ -99,11 +99,11 @@ function TEST_recovery_scrub_1() {
     kill_daemons $dir #|| return 1
 
     declare -a err_strings
-    err_strings[0]="recovery in progress. Only high priority scrubs allowed."
+    err_strings[0]="recovery in progress.*scrubs"
 
     for osd in $(seq 0 $(expr $OSDS - 1))
     do
-        grep "recovery in progress. Only high priority scrubs allowed." $dir/osd.${osd}.log
+        grep "recovery in progress.*scrubs" $dir/osd.${osd}.log
     done
     for err_string in "${err_strings[@]}"
     do
@@ -269,7 +269,7 @@ function TEST_recovery_scrub_2() {
     ceph pg dump pgs
 
     # note that the following will be needed if the mclock scheduler is specified
-    #ceph tell osd.* config get osd_mclock_override_recovery_settings
+    ceph tell osd.* config get osd_mclock_override_recovery_settings
 
     # the '_max_active' is expected to be 0
     ceph tell osd.1 config get osd_recovery_max_active
@@ -327,11 +327,11 @@ function TEST_recovery_scrub_2() {
     kill_daemons $dir #|| return 1
 
     declare -a err_strings
-    err_strings[0]="not scheduling scrubs due to active recovery"
-
+    ## we do not expect a refusal to scrub
+    err_strings[0]="recovery in progress.*scrubs"
     for osd in $(seq 0 $(expr $OSDS - 1))
     do
-        grep "not scheduling scrubs" $dir/osd.${osd}.log
+        grep "recovery in progress.*scrubs" $dir/osd.${osd}.log
     done
     for err_string in "${err_strings[@]}"
     do