]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: do not add _admin label when no-minimize-config is provided
authorRedouane Kachach <rkachach@redhat.com>
Thu, 21 Apr 2022 10:01:44 +0000 (12:01 +0200)
committerAdam King <adking@redhat.com>
Wed, 18 May 2022 19:43:41 +0000 (15:43 -0400)
Fixes: https://tracker.ceph.com/issues/52727
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 01c8999d0354a71a7ef8526aab9b39e30d67c1bb)

src/cephadm/cephadm

index 3088d3e3e6c039d00a14c863364619007afcb6e8..e8325e9ca4a37cb24f97e509a33b5b90d90c30a8 100755 (executable)
@@ -4718,7 +4718,7 @@ def command_bootstrap(ctx):
     if not ctx.skip_dashboard:
         prepare_dashboard(ctx, uid, gid, cli, wait_for_mgr_restart)
 
-    if ctx.output_config == '/etc/ceph/ceph.conf' and not ctx.skip_admin_label:
+    if ctx.output_config == '/etc/ceph/ceph.conf' and not ctx.skip_admin_label and not ctx.no_minimize_config:
         logger.info('Enabling client.admin keyring and conf on hosts with "admin" label')
         try:
             cli(['orch', 'client-keyring', 'set', 'client.admin', 'label:_admin'])