]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix option name osd_crush_chooseleaf_type 43616/head
authorkrafZLorG <41295775+krafZLorG@users.noreply.github.com>
Thu, 21 Oct 2021 07:27:14 +0000 (10:27 +0300)
committerDmitry Kvashnin <dm.kvashnin@gmail.com>
Thu, 21 Oct 2021 08:41:39 +0000 (11:41 +0300)
Signed-off-by: Dmitry Kvashnin <dm.kvashnin@gmail.com>
src/cephadm/cephadm

index 19a76b2c130c9f8013cb43e138c11ebbf809a9b2..e068e52498dd29fa9c4f0ff137dd391ef7914199 100755 (executable)
@@ -4326,10 +4326,10 @@ def prepare_bootstrap_config(
         logger.info('Adjusting default settings to suit single-host cluster...')
         # replicate across osds, not hosts
         if (
-                not cp.has_option('global', 'osd_crush_choose_leaf_type')
-                and not cp.has_option('global', 'osd crush choose leaf type')
+                not cp.has_option('global', 'osd_crush_chooseleaf_type')
+                and not cp.has_option('global', 'osd crush chooseleaf type')
         ):
-            cp.set('global', 'osd_crush_choose_leaf_type', '0')
+            cp.set('global', 'osd_crush_chooseleaf_type', '0')
         # replica 2x
         if (
                 not cp.has_option('global', 'osd_pool_default_size')