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>
'Try "ceph osd set-require-min-compat-client luminous" ' \
'before enabling this mode' % min_compat_client
return (-errno.EPERM, '', warn)
+ elif command['mode'] == 'crush-compat':
+ ms = MappingState(self.get_osdmap(),
+ self.get("pg_dump"),
+ 'initialize compat weight-set')
+ self.get_compat_weight_set_weights(ms) # ignore error
self.set_module_option('mode', command['mode'])
return (0, '', '')
elif command['prefix'] == 'balancer on':