From: Sage Weil Date: Fri, 31 Jul 2015 19:33:57 +0000 (-0400) Subject: mds: fix create on systemd X-Git-Tag: v1.5.27~5^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4afb7bddc04c4056abbd09b3ec4ef8fe2950248d;p=ceph-deploy.git mds: fix create on systemd Signed-off-by: Sage Weil --- diff --git a/ceph_deploy/mds.py b/ceph_deploy/mds.py index d053aca..81d1810 100644 --- a/ceph_deploy/mds.py +++ b/ceph_deploy/mds.py @@ -108,6 +108,8 @@ def create_mds(distro, name, cluster, init): ], timeout=7 ) + if distro.is_el: + system.enable_service(distro.conn) elif init == 'systemd': remoto.process.run( conn, @@ -118,9 +120,25 @@ def create_mds(distro, name, cluster, init): ], timeout=7 ) + remoto.process.run( + conn, + [ + 'systemctl', + 'start', + 'ceph-mds@{name}'.format(name=name), + ], + timeout=7 + ) + remoto.process.run( + conn, + [ + 'systemctl', + 'enable', + 'ceph.target', + ], + timeout=7 + ) - if distro.is_el: - system.enable_service(distro.conn) def mds_create(args):