]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix option name osd_crush_chooseleaf_type
authorkrafZLorG <41295775+krafZLorG@users.noreply.github.com>
Thu, 21 Oct 2021 07:27:14 +0000 (10:27 +0300)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 2 Nov 2021 09:01:23 +0000 (10:01 +0100)
Signed-off-by: Dmitry Kvashnin <dm.kvashnin@gmail.com>
(cherry picked from commit 0e7c16ce2c94facb7b3979722d1ce50d28d4452f)

src/cephadm/cephadm

index 866babf92b7c26cfaec868bbc988e61929c6026c..e265249a881256c2d59bb7ea4f432f516ef53c98 100755 (executable)
@@ -4041,10 +4041,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')