]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: cancelling both noscrub *and* nodeep-scrub 40278/head
authorRonen Friedman <rfriedma@redhat.com>
Mon, 7 Dec 2020 12:41:45 +0000 (14:41 +0200)
committersinguliere <singuliere@autistici.org>
Sat, 20 Mar 2021 08:06:19 +0000 (09:06 +0100)
as part of osd-scrub-test.sh.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 43b1129030823817e0b7a21c85de5d3da841510a)

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

index 89534938063e0899595724c2be282f1c82eb5036..0fbc72881835416b1031d56c83782978b52c4a2c 100755 (executable)
@@ -303,6 +303,10 @@ function _scrub_abort() {
     fi
 
     ceph osd set $stopscrub
+    if [ "$type" = "deep_scrub" ];
+    then
+      ceph osd set noscrub
+    fi
 
     # Wait for scrubbing to end
     set -o pipefail
@@ -327,7 +331,13 @@ function _scrub_abort() {
     fi
 
     local last_scrub=$(get_last_scrub_stamp $pgid)
-    ceph osd unset noscrub
+    ceph config set osd "osd_scrub_sleep" "0.1"
+
+    ceph osd unset $stopscrub
+    if [ "$type" = "deep_scrub" ];
+    then
+      ceph osd unset noscrub
+    fi
     TIMEOUT=$(($objects / 2))
     wait_for_scrub $pgid "$last_scrub" || return 1