]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerRedouane Kachach <rkachach@redhat.com>
Thu, 21 Apr 2022 10:01:44 +0000 (12:01 +0200)
Fixes: https://tracker.ceph.com/issues/52727
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
src/cephadm/cephadm

index 58315e602ef68618092bf44480f7d0a4c3682695..9f8c0ddb57f5013010531e910b4d68a21ac9b73b 100755 (executable)
@@ -5451,7 +5451,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'])