]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: turn off cgroups_split setting when bootstrapping with --no-cgroups-split 58761/head
authorAdam King <adking@redhat.com>
Mon, 1 Jul 2024 17:44:29 +0000 (13:44 -0400)
committerAdam King <adking@redhat.com>
Tue, 23 Jul 2024 16:34:58 +0000 (12:34 -0400)
If users provide the --no-cgroups-split tag when bootstrapping a
cluster, they probably want the cluster to continue to not use
cgroups split for daemon post bootstrap. Setting the
mgr/cephadm/cgroups_split setting to false accomplishes that.

Fixes: https://tracker.ceph.com/issues/66848
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit a60fa9f02416197e3bed3c9ef673f4712532e398)

Conflicts:
src/cephadm/cephadm.py

src/cephadm/cephadm

index 2addee773e345a7781baafcd8675966cf7e511ab..4e07b0ef1aa005fea362d9ba155c76e724c50c27 100755 (executable)
@@ -5919,6 +5919,10 @@ def command_bootstrap(ctx):
 
     cli(['config', 'set', 'mgr', 'mgr/cephadm/container_init', str(ctx.container_init), '--force'])
 
+    if ctx.no_cgroups_split:
+        logger.info('Setting mgr/cephadm/cgroups_split to false')
+        cli(['config', 'set', 'mgr', 'mgr/cephadm/cgroups_split', 'false', '--force'])
+
     if not ctx.skip_dashboard:
         prepare_dashboard(ctx, uid, gid, cli, wait_for_mgr_restart)