From ae1c1210f900b0f6bb4a7841cbc923c662257e1c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 25 Nov 2019 20:01:29 +0000 Subject: [PATCH] qa/tasks/ceph2: make image cluster-private Signed-off-by: Sage Weil --- qa/tasks/ceph2.py | 16 ++++++++-------- qa/tasks/ceph_manager.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/qa/tasks/ceph2.py b/qa/tasks/ceph2.py index 2ad5c2366bf39..40ce636104f54 100644 --- a/qa/tasks/ceph2.py +++ b/qa/tasks/ceph2.py @@ -43,7 +43,7 @@ def _shell(ctx, cluster_name, remote, args, **kwargs): args=[ 'sudo', '{}/ceph-daemon'.format(testdir), - '--image', ctx.image, + '--image', ctx.ceph[cluster_name].image, 'shell', '-c', '{}/{}.conf'.format(testdir, cluster_name), '-k', '{}/{}.keyring'.format(testdir, cluster_name), @@ -262,7 +262,7 @@ def ceph_bootstrap(ctx, config): cmd = [ 'sudo', '{}/ceph-daemon'.format(testdir), - '--image', ctx.image, + '--image', ctx.ceph[cluster_name].image, 'bootstrap', '--fsid', fsid, '--mon-id', first_mon, @@ -782,12 +782,12 @@ def task(ctx, config): #validate_config(ctx, config) # image - ctx.image = config.get('image') + ctx.ceph[cluster_name].image = config.get('image') ref = None - if not ctx.image: + if not ctx.ceph[cluster_name].image: sha1 = config.get('sha1') if sha1: - ctx.image = 'quay.io/ceph-ci/ceph:%s' % sha1 + ctx.ceph[cluster_name].image = 'quay.io/ceph-ci/ceph:%s' % sha1 ref = sha1 else: # hmm, fall back to branch? @@ -795,10 +795,10 @@ def task(ctx, config): ref = branch # FIXME when ceph-ci builds all branches if branch in ['master', 'nautilus']: - ctx.image = 'ceph/daemon-base:latest-%s-devel' % branch + ctx.ceph[cluster_name].image = 'ceph/daemon-base:latest-%s-devel' % branch else: - ctx.image = 'quay.io/ceph-ci/ceph:%s' % branch - log.info('Cluster image is %s' % ctx.image) + ctx.ceph[cluster_name].image = 'quay.io/ceph-ci/ceph:%s' % branch + log.info('Cluster image is %s' % ctx.ceph[cluster_name].image) # uuid fsid = str(uuid.uuid1()) diff --git a/qa/tasks/ceph_manager.py b/qa/tasks/ceph_manager.py index d78302eaee416..3204a07dee5f2 100644 --- a/qa/tasks/ceph_manager.py +++ b/qa/tasks/ceph_manager.py @@ -40,7 +40,7 @@ def shell(ctx, cluster_name, remote, args, **kwargs): args=[ 'sudo', '{}/ceph-daemon'.format(testdir), - '--image', ctx.image, + '--image', ctx.ceph[cluster_name].image, 'shell', '-c', '{}/{}.conf'.format(testdir, cluster_name), '-k', '{}/{}.keyring'.format(testdir, cluster_name), -- 2.39.5