]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task ceph: set_max_mds so multiple MDS nodes are used
authorGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 6 Jul 2011 23:44:46 +0000 (16:44 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 6 Jul 2011 23:45:57 +0000 (16:45 -0700)
The current check will be insufficient when we handle standby-replays,
standbys, etc, but it's a lot better than the current situation where
it starts up all the daemons but only one is active!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
teuthology/task/ceph.py

index c3182212d55dbe32d2bcc23ef065245954942d54..ca114c5cb42ada385ee2c496b5c716857a6207d5 100644 (file)
@@ -568,6 +568,15 @@ def mds(ctx, config):
                 )
             mds_daemons[id_] = proc
 
+    (mon0_remote,) = ctx.cluster.only('mon.0').remotes.keys()
+    mon0_remote.run(args=[
+            '/tmp/cephtest/enable-coredump',
+            '/tmp/cephtest/binary/usr/local/bin/ceph-coverage',
+            '/tmp/cephtest/archive/coverage',
+            '/tmp/cephtest/binary/usr/local/bin/ceph',
+            '-c', '/tmp/cephtest/ceph.conf',
+            'mds', 'set_max_mds', str(len(mdss.remotes))])
+
     try:
         yield
     finally: