]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/cephadm: add hosts via mon remote
authorSage Weil <sage@newdream.net>
Mon, 15 Nov 2021 17:55:52 +0000 (11:55 -0600)
committerSage Weil <sage@newdream.net>
Thu, 25 Nov 2021 13:52:56 +0000 (07:52 -0600)
If we use a new remote for each shell command, we end up waiting
for the image to pull on every host in sequence.

Signed-off-by: Sage Weil <sage@newdream.net>
qa/tasks/cephadm.py

index 6331793985a0b1e8e5244b600e1c7821a18da9d5..edc4aad8521cef7a70dfc8a089e688184af54751 100644 (file)
@@ -505,11 +505,11 @@ def ceph_bootstrap(ctx, config):
                 data=ctx.ceph[cluster_name].admin_keyring)
 
             log.info('Adding host %s to orchestrator...' % remote.shortname)
-            _shell(ctx, cluster_name, remote, [
+            _shell(ctx, cluster_name, bootstrap_remote, [
                 'ceph', 'orch', 'host', 'add',
                 remote.shortname
             ])
-            r = _shell(ctx, cluster_name, remote,
+            r = _shell(ctx, cluster_name, bootstrap_remote,
                        ['ceph', 'orch', 'host', 'ls', '--format=json'],
                        stdout=StringIO())
             hosts = [node['hostname'] for node in json.loads(r.stdout.getvalue())]