]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-deploy: fix ceph-deploy-branch config options
authorLoic Dachary <ldachary@redhat.com>
Fri, 25 Sep 2015 13:08:18 +0000 (15:08 +0200)
committerLoic Dachary <ldachary@redhat.com>
Thu, 1 Oct 2015 06:55:26 +0000 (08:55 +0200)
The config paramter of download_ceph_deploy does not have a ceph-deploy
item, therefore the ceph-deploy-branch parameter is always assumed to be
master.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit fdcfb79b3c57765441a6d15bea8ef2fcbcebf5f8)

tasks/ceph_deploy.py

index 1d0977e0ea8c2b72deb2884377e24838ae96b43c..362feb241d066ebe385f0102a4fd8a54ccd1770c 100644 (file)
@@ -29,10 +29,7 @@ def download_ceph_deploy(ctx, config):
     log.info('Downloading ceph-deploy...')
     testdir = teuthology.get_testdir(ctx)
     ceph_admin = ctx.cluster.only(teuthology.get_first_mon(ctx, config))
-    default_cd_branch = {'ceph-deploy-branch': 'master'}
-    ceph_deploy_branch = config.get(
-        'ceph-deploy',
-        default_cd_branch).get('ceph-deploy-branch')
+    ceph_deploy_branch = config.get('ceph-deploy-branch', 'master')
 
     ceph_admin.run(
         args=[
@@ -489,6 +486,8 @@ def task(ctx, config):
     if config.get('branch') is not None:
         assert isinstance(config['branch'], dict), 'branch must be a dictionary'
 
+    log.info('task ceph-deploy with config ' + str(config))
+
     with contextutil.nested(
          lambda: install_fn.ship_utilities(ctx=ctx, config=None),
          lambda: download_ceph_deploy(ctx=ctx, config=config),