]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph2: make image cluster-private
authorSage Weil <sage@redhat.com>
Mon, 25 Nov 2019 20:01:29 +0000 (20:01 +0000)
committerSage Weil <sage@redhat.com>
Mon, 25 Nov 2019 20:01:29 +0000 (20:01 +0000)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph2.py
qa/tasks/ceph_manager.py

index 2ad5c2366bf39b3a55c15518b159ae9ee63b7832..40ce636104f549fb4e2f93c324bfee21d241db4a 100644 (file)
@@ -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())
index d78302eaee41609c84a9923a60c77ecc8d63df6f..3204a07dee5f2eabf890d666099fdb8ebf6dddc7 100644 (file)
@@ -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),