]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
task: ceph: create monitor data directories prior to --mkfs
authorJoao Eduardo Luis <joao.luis@inktank.com>
Fri, 22 Feb 2013 01:04:06 +0000 (01:04 +0000)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Fri, 22 Feb 2013 01:04:06 +0000 (01:04 +0000)
The new monitor store does not create the data directory on --mkfs. We
must create it instead, much like what happens with the osds.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
teuthology/task/ceph.py

index efd04954489397d1b618eb18960f097727059578..7b836febde79b8209142ca1571df234ea78c4aec 100644 (file)
@@ -665,6 +665,14 @@ def cluster(ctx, config):
     log.info('Running mkfs on mon nodes...')
     for remote, roles_for_host in mons.remotes.iteritems():
         for id_ in teuthology.roles_of_type(roles_for_host, 'mon'):
+            remote.run(
+                args=[
+                  'sudo',
+                  'mkdir',
+                  '-p',
+                  '/var/lib/ceph/mon/ceph-{id}'.format(id=id_),
+                  ],
+                )
             remote.run(
                 args=[
                     '{tdir}/enable-coredump'.format(tdir=testdir),