]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
mds: fix create on systemd
authorSage Weil <sage@redhat.com>
Fri, 31 Jul 2015 19:33:57 +0000 (15:33 -0400)
committerSage Weil <sage@redhat.com>
Fri, 31 Jul 2015 19:33:57 +0000 (15:33 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
ceph_deploy/mds.py

index d053aca9223f3efe518021d5d314f29b4d88c3f9..81d1810f520c22f98f7fed90505023f5aaea30ca 100644 (file)
@@ -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):