]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: turn off cgroups_split setting when bootstrapping with --no-cgroups-split 58379/head
authorAdam King <adking@redhat.com>
Mon, 1 Jul 2024 17:44:29 +0000 (13:44 -0400)
committerAdam King <adking@redhat.com>
Wed, 10 Jul 2024 17:03:44 +0000 (13:03 -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>
src/cephadm/cephadm.py

index df7a657e24c1d29de2d5455686852d7fbecda53b..bcb2a4a1205064f9d454883cd8d0c9c3ea571e48 100755 (executable)
@@ -2878,6 +2878,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)