]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: reduce the chance to have degraded PGs 20046/head
authorKefu Chai <kchai@redhat.com>
Mon, 22 Jan 2018 12:42:48 +0000 (20:42 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 22 Jan 2018 13:24:58 +0000 (21:24 +0800)
in test_mon_osd_misc(), there is good chance that the cluster chooses
to use an unbalanced weight because of the data distribution at that moment.
but this setting could prevent the CRUSH from choosing enough number of
OSDs for test_mon_cephdf_commands(), where 32 PGs are to be created. so
it's more likely that the CRUSH fails to pick enough OSDs for all PGs.
that's why we have a curr_object_copies_rate = 0.5.

so, in this change, pg=pgp=1 is specified for the new pool.

Fixes: http://tracker.ceph.com/issues/22711
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/workunits/cephtool/test.sh

index 8d64099b13df08e828d26e80bf44841ea04d7989..ba8954c441117bc150f2ce17318992f2eab87f86 100755 (executable)
@@ -2347,7 +2347,7 @@ function test_mon_cephdf_commands()
   # pool section:
   # RAW USED The near raw used per pool in raw total
 
-  ceph osd pool create cephdf_for_test 32 32 replicated
+  ceph osd pool create cephdf_for_test 1 1 replicated
   ceph osd pool application enable cephdf_for_test rados
   ceph osd pool set cephdf_for_test size 2