]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix for 'branch' overrides to work
authorVasu Kulkarni <vasu@redhat.com>
Fri, 22 Apr 2016 02:36:00 +0000 (19:36 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Wed, 24 Aug 2016 23:59:46 +0000 (16:59 -0700)
teuthology default override template defines devcommit which makes
'branch' overrides in the test useless since it only picksup one option
Remove the devcommit overrides from the template and use that as
default in case no other 'branch' override exist.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
tasks/ceph_deploy.py

index 8c4ef015680b6c8a687067d72b59a4a10b81ddff..5919e6f4176eaa84296179519381dd2dae0665b7 100644 (file)
@@ -239,14 +239,19 @@ def build_ceph_cluster(ctx, config):
                         ceph_admin, conf_path, lines, sudo=True)
 
         # install ceph
-        install_nodes = './ceph-deploy install ' + \
-            (ceph_branch if ceph_branch else "--dev=master") + " " + all_nodes
+        ceph_sha = ctx.config['sha1']
+        devcommit = '--dev-commit={sha}'.format(sha=ceph_sha)
+        if ceph_branch:
+            option = ceph_branch
+        else:
+            option = devcommit
+        install_nodes = './ceph-deploy install ' + option + " " + all_nodes
         estatus_install = execute_ceph_deploy(install_nodes)
         if estatus_install != 0:
             raise RuntimeError("ceph-deploy: Failed to install ceph")
         # install ceph-test package too
-        install_nodes2 = './ceph-deploy install --tests ' + \
-            (ceph_branch if ceph_branch else "--dev=master") + " " + all_nodes
+        install_nodes2 = './ceph-deploy install --tests ' + option + \
+                         " " + all_nodes
         estatus_install = execute_ceph_deploy(install_nodes2)
         if estatus_install != 0:
             raise RuntimeError("ceph-deploy: Failed to install ceph-test")