]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: cancelling both noscrub *and* nodeep-scrub 38472/head
authorRonen Friedman <rfriedma@redhat.com>
Mon, 7 Dec 2020 12:41:45 +0000 (14:41 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 9 Dec 2020 18:16:23 +0000 (20:16 +0200)
as part of osd-scrub-test.sh.

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

index 624c1dd217dd797d0814c5a90a3ad21c290bed9d..5dd029c356fe196f6b22f3223d555742bb626c4f 100755 (executable)
@@ -351,6 +351,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
@@ -375,7 +379,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