From 6f8aa25f645cdec1514daecc9b36264fa572234a Mon Sep 17 00:00:00 2001 From: Ricardo Marques Date: Thu, 30 Jul 2020 15:48:21 +0100 Subject: [PATCH] cephadm: Fix error bootstraping with '--registry-json' We need to force setting registry auth options because these options are unknown before the mgr first starts and registers them. Fixes: https://tracker.ceph.com/issues/46777 Signed-off-by: Ricardo Marques --- src/cephadm/cephadm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index e9d048020388..ed2bac7670b0 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -2910,9 +2910,9 @@ def command_bootstrap(): cli(['orch', 'apply', t]) if args.registry_url and args.registry_username and args.registry_password: - cli(['config', 'set', 'mgr', 'mgr/cephadm/registry_url', args.registry_url]) - cli(['config', 'set', 'mgr', 'mgr/cephadm/registry_username', args.registry_username]) - cli(['config', 'set', 'mgr', 'mgr/cephadm/registry_password', args.registry_password]) + cli(['config', 'set', 'mgr', 'mgr/cephadm/registry_url', args.registry_url, '--force']) + cli(['config', 'set', 'mgr', 'mgr/cephadm/registry_username', args.registry_username, '--force']) + cli(['config', 'set', 'mgr', 'mgr/cephadm/registry_password', args.registry_password, '--force']) if not args.skip_dashboard: logger.info('Enabling the dashboard module...') -- 2.47.3