]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
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)
commit74c9cfc466893356f6b3ca47cb0d242ca6060923
treeeae7bb4c7d06f6d28ef83a24aaa121f2c1feaab3
parentbfd84c90042ca96a9a9f52a73de312d1cb291578
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 <kchai@redhat.com>
qa/workunits/cephtool/test.sh