]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add option to skip mgr install for old release
authorVasu Kulkarni <vasu@redhat.com>
Wed, 26 Jul 2017 21:58:50 +0000 (14:58 -0700)
committerYuri Weinstein <yweinste@redhat.com>
Mon, 25 Sep 2017 22:32:25 +0000 (15:32 -0700)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
(cherry picked from commit a9be0c387ed2ae09227dad833c8647af110bd2de)

qa/tasks/ceph_deploy.py

index b22c32113ced9305c82bcf99e5440f527284cc0e..bccf64b349d084da4ea46ed3330dfad1fcaa92f9 100644 (file)
@@ -241,10 +241,15 @@ def build_ceph_cluster(ctx, config):
         mds_nodes = " ".join(mds_nodes)
         mon_node = get_nodes_using_role(ctx, 'mon')
         mon_nodes = " ".join(mon_node)
-        mgr_nodes = get_nodes_using_role(ctx, 'mgr')
-        mgr_nodes = " ".join(mgr_nodes)
+        # skip mgr based on config item
+        # this is needed when test uses latest code to install old ceph versions
+        skip_mgr = config.get('skip-mgr', False)
+        if not skip_mgr:
+            mgr_nodes = get_nodes_using_role(ctx, 'mgr')
+            mgr_nodes = " ".join(mgr_nodes)
         new_mon = './ceph-deploy new' + " " + mon_nodes
-        mgr_create = './ceph-deploy mgr create' + " " + mgr_nodes
+        if not skip_mgr:
+            mgr_create = './ceph-deploy mgr create' + " " + mgr_nodes
         mon_hostname = mon_nodes.split(' ')[0]
         mon_hostname = str(mon_hostname)
         gather_keys = './ceph-deploy gatherkeys' + " " + mon_hostname
@@ -307,7 +312,8 @@ def build_ceph_cluster(ctx, config):
 
         estatus_gather = execute_ceph_deploy(gather_keys)
 
-        execute_ceph_deploy(mgr_create)
+        if not skip_mgr:
+            execute_ceph_deploy(mgr_create)
 
         if mds_nodes:
             estatus_mds = execute_ceph_deploy(deploy_mds)
@@ -700,6 +706,8 @@ def task(ctx, config):
              bluestore: True
              # or
              filestore: True
+             # skip install of mgr for old release using below flag
+             skip-mgr: True  ( default is False )
 
         tasks:
         - install: