From 045a86680dee4da43199ccdfe3e778983e0dc8b4 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Fri, 22 Feb 2013 01:04:06 +0000 Subject: [PATCH] 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 --- teuthology/task/ceph.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index efd0495448..7b836febde 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), -- 2.39.5