mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
Add option to skip mgr install for old release
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
This commit is contained in:
parent
70567017d5
commit
a9be0c387e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user