]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: ignore daemon types that aren't configured
authorJosh Durgin <josh.durgin@inktank.com>
Sun, 23 Mar 2014 19:03:25 +0000 (12:03 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 24 Mar 2014 21:14:40 +0000 (14:14 -0700)
not every cluster needs an mds

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
teuthology/task/ceph.py

index 8a02770db1d32c7a38b7ef6dc26458bef0361faa..5a695b57081dc4fefb20eeac01ebbb9184e2385a 100644 (file)
@@ -1129,6 +1129,10 @@ def run_daemon(ctx, config, type_):
     log.info('Starting %s daemons...' % type_)
     testdir = teuthology.get_testdir(ctx)
     daemons = ctx.cluster.only(teuthology.is_type(type_))
+
+    # check whether any daemons if this type are configured
+    if daemons is None:
+        return
     coverage_dir = '{tdir}/archive/coverage'.format(tdir=testdir)
 
     daemon_signal = 'kill'