From: Joao Eduardo Luis Date: Fri, 22 Feb 2013 01:04:06 +0000 (+0000) Subject: task: ceph: create monitor data directories prior to --mkfs X-Git-Tag: 1.1.0~2289 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=045a86680dee4da43199ccdfe3e778983e0dc8b4;p=teuthology.git task: ceph: create monitor data directories prior to --mkfs 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 --- diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index efd049544..7b836febd 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -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),