From d6c72c3a25ab2aa432c557f5ec93b6c3dedfebb8 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 27 Aug 2015 23:23:53 +0200 Subject: [PATCH] ceph-deploy: implement only_mon If only_mon is true, do not attempt to deploy osds. Signed-off-by: Loic Dachary --- tasks/ceph_deploy.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tasks/ceph_deploy.py b/tasks/ceph_deploy.py index 25234f7e1ca39..26d320a97e11f 100644 --- a/tasks/ceph_deploy.py +++ b/tasks/ceph_deploy.py @@ -357,11 +357,12 @@ def build_ceph_cluster(ctx, config): perms='0644' ) - log.info('Configuring CephFS...') - ceph_fs = Filesystem(ctx, admin_remote=clients.remotes.keys()[0]) - if not ceph_fs.legacy_configured(): - ceph_fs.create() - else: + if mds_nodes: + log.info('Configuring CephFS...') + ceph_fs = Filesystem(ctx, admin_remote=clients.remotes.keys()[0]) + if not ceph_fs.legacy_configured(): + ceph_fs.create() + elif not config.get('only_mon'): raise RuntimeError( "The cluster is NOT operational due to insufficient OSDs") yield @@ -615,6 +616,7 @@ def task(ctx, config): branch: stable: bobtail mon_initial_members: 1 + only_mon: true keep_running: true tasks: -- 2.39.5