From 4afb7bddc04c4056abbd09b3ec4ef8fe2950248d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 31 Jul 2015 15:33:57 -0400 Subject: [PATCH] mds: fix create on systemd Signed-off-by: Sage Weil --- ceph_deploy/mds.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) 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): -- 2.47.3