From: Kefu Chai Date: Mon, 22 Jan 2018 12:42:48 +0000 (+0800) Subject: test: reduce the chance to have degraded PGs X-Git-Tag: v13.0.2~468^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=74c9cfc466893356f6b3ca47cb0d242ca6060923;p=ceph.git test: reduce the chance to have degraded PGs 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 --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 8d64099b13df..ba8954c44111 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -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