]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: Fix error bootstraping with '--registry-json' 36375/head
authorRicardo Marques <rimarques@suse.com>
Thu, 30 Jul 2020 14:48:21 +0000 (15:48 +0100)
committerRicardo Marques <rimarques@suse.com>
Thu, 30 Jul 2020 14:48:21 +0000 (15:48 +0100)
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 <rimarques@suse.com>
src/cephadm/cephadm

index e9d04802038814911fdc24674abfb205280f99b6..ed2bac7670b0402388084585cc622c4609378b3c 100755 (executable)
@@ -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...')