]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
set max_mds based on non-standbys
authorSage Weil <sage@newdream.net>
Thu, 28 Jul 2011 17:25:30 +0000 (10:25 -0700)
committerSage Weil <sage@newdream.net>
Thu, 28 Jul 2011 17:25:30 +0000 (10:25 -0700)
teuthology/task/ceph.py

index 072acc3497befce261f608d4691bcef09f783a5d..a4b4c2f817e772314e08570e3830dfc08091292d 100644 (file)
@@ -625,8 +625,11 @@ def mds(ctx, config):
         log.info('Recording coverage for this run.')
         daemon_signal = 'term'
 
+    num_active = 1
     for remote, roles_for_host in mdss.remotes.iteritems():
         for id_ in teuthology.roles_of_type(roles_for_host, 'mds'):
+            if not id_.endswith('-s'):
+                num_active += 1
             proc = remote.run(
                 args=[
                     '/tmp/cephtest/enable-coredump',
@@ -638,7 +641,6 @@ def mds(ctx, config):
                     '-f',
                     '-i', id_,
                     '-c', '/tmp/cephtest/ceph.conf',
-#                    '--debug-mds','20',
                     ],
                 logger=log.getChild('mds.{id}'.format(id=id_)),
                 stdin=run.PIPE,
@@ -653,7 +655,7 @@ def mds(ctx, config):
             '/tmp/cephtest/archive/coverage',
             '/tmp/cephtest/binary/usr/local/bin/ceph',
             '-c', '/tmp/cephtest/ceph.conf',
-            'mds', 'set_max_mds', str(len(mdss.remotes))])
+            'mds', 'set_max_mds', str(num_active)])
 
     try:
         yield