]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: osd-backfill-stats.sh use nobackfill to avoid races in remaining test 35425/head
authorDavid Zafman <dzafman@redhat.com>
Sat, 6 Jun 2020 00:43:44 +0000 (17:43 -0700)
committerDavid Zafman <dzafman@redhat.com>
Sat, 6 Jun 2020 00:48:10 +0000 (17:48 -0700)
Fixes: https://tracker.ceph.com/issues/44314
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/osd/osd-backfill-stats.sh

index a5010d7264d8b618916d8c6ac8943fe0dfe29958..e63d2e1479c675014a299104336d0bf5585e4e3a 100755 (executable)
@@ -152,8 +152,10 @@ function TEST_backfill_sizeup() {
        rados -p $poolname put obj$i /dev/null
     done
 
+    ceph osd set nobackfill
     ceph osd pool set $poolname size 3
-    sleep 15
+    sleep 2
+    ceph osd unset nobackfill
 
     wait_for_clean || return 1
 
@@ -202,9 +204,11 @@ function TEST_backfill_sizeup_out() {
     # Remember primary during the backfill
     local primary=$(get_primary $poolname obj1)
 
+    ceph osd set nobackfill
     ceph osd out osd.$primary
     ceph osd pool set $poolname size 3
-    sleep 15
+    sleep 2
+    ceph osd unset nobackfill
 
     wait_for_clean || return 1
 
@@ -249,8 +253,10 @@ function TEST_backfill_out() {
     # Remember primary during the backfill
     local primary=$(get_primary $poolname obj1)
 
+    ceph osd set nobackfill
     ceph osd out osd.$(get_not_primary $poolname obj1)
-    sleep 15
+    sleep 2
+    ceph osd unset nobackfill
 
     wait_for_clean || return 1
 
@@ -296,10 +302,12 @@ function TEST_backfill_down_out() {
     local primary=$(get_primary $poolname obj1)
     local otherosd=$(get_not_primary $poolname obj1)
 
+    ceph osd set nobackfill
     kill $(cat $dir/osd.${otherosd}.pid)
     ceph osd down osd.${otherosd}
     ceph osd out osd.${otherosd}
-    sleep 15
+    sleep 2
+    ceph osd unset nobackfill
 
     wait_for_clean || return 1