]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: turn off cgroups_split setting when bootstrapping with --no-cgroups-split 61716/head
authorAdam King <adking@redhat.com>
Mon, 1 Jul 2024 17:44:29 +0000 (13:44 -0400)
committerAdam King <adking@redhat.com>
Fri, 7 Feb 2025 21:14:19 +0000 (16:14 -0500)
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)

src/cephadm/cephadm.py

index c718106400f192ed42064f2eded12e7d177e5966..68357160870caaa612e11242ebe5d7d9926af3b4 100755 (executable)
@@ -6549,6 +6549,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)