]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-deploy: implement only_mon
authorLoic Dachary <ldachary@redhat.com>
Thu, 27 Aug 2015 21:23:53 +0000 (23:23 +0200)
committerLoic Dachary <ldachary@redhat.com>
Thu, 27 Aug 2015 21:23:53 +0000 (23:23 +0200)
If only_mon is true, do not attempt to deploy osds.

Signed-off-by: Loic Dachary <loic@dachary.org>
tasks/ceph_deploy.py

index 25234f7e1ca39294d7a2649d1af1e723649f700a..26d320a97e11f73aab7551b6ba1bfece2e145608 100644 (file)
@@ -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: