]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/balancer: create compat weight-set earlier
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 27 May 2019 06:46:48 +0000 (14:46 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 29 May 2019 05:30:06 +0000 (13:30 +0800)
commit11cd731af1818081d5ec6780f642589232c4829f
treecb287444a4ef47489094e6296bf70f83ec530dc5
parentce18684aa53c2fce08962255bae9289b6075e2a0
mgr/balancer: create compat weight-set earlier

So if we do:

ceph balancer mode crush-compat
ceph balancer on
ceph config set global osd_crush_update_weight_set false

and then add some new osd in, those osds will truly start
with a zeroed weight-set weight.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit f73bd451ea2fe2ea692710c6874e18234feb992d)
src/pybind/mgr/balancer/module.py