From 74c9cfc466893356f6b3ca47cb0d242ca6060923 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 22 Jan 2018 20:42:48 +0800 Subject: [PATCH] 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 --- qa/workunits/cephtool/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 8d64099b13d..ba8954c4411 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 -- 2.47.3