]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Make sure that extra scheduled scrubs don't confuse test 29252/head
authorDavid Zafman <dzafman@redhat.com>
Fri, 24 May 2019 00:21:14 +0000 (17:21 -0700)
committerNathan Cutler <ncutler@suse.com>
Wed, 24 Jul 2019 11:03:22 +0000 (13:03 +0200)
Fixes: http://tracker.ceph.com/issues/40078
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 893d227c822091e9d32423a1902d5f2ece7b0991)

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

index 4ed94fea69145f20d7647ec2897fbb6f98c9af8e..8fd02e6f5c36a96c7c9087329b8c61a5ba3ca36f 100755 (executable)
@@ -178,6 +178,10 @@ function TEST_scrub_snaps() {
       run_osd $dir $osd || return 1
     done
 
+    # All scrubs done manually.  Don't want any unexpected scheduled scrubs.
+    ceph osd set noscrub || return 1
+    ceph osd set nodeep-scrub || return 1
+
     # Create a pool with a single pg
     create_pool $poolname 1 1
     wait_for_clean || return 1
@@ -783,6 +787,10 @@ function _scrub_snaps_multi() {
       run_osd $dir $osd || return 1
     done
 
+    # All scrubs done manually.  Don't want any unexpected scheduled scrubs.
+    ceph osd set noscrub || return 1
+    ceph osd set nodeep-scrub || return 1
+
     # Create a pool with a single pg
     create_pool $poolname 1 1
     wait_for_clean || return 1