]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
rgw: fix systemd creation 332/head
authorSage Weil <sage@redhat.com>
Fri, 31 Jul 2015 19:44:41 +0000 (15:44 -0400)
committerSage Weil <sage@redhat.com>
Fri, 31 Jul 2015 19:44:41 +0000 (15:44 -0400)
Analogous changes to mds create.

Signed-off-by: Sage Weil <sage@redhat.com>
ceph_deploy/rgw.py

index b4e9c57bdc44ae6f46eb8b62e5a0c9897beef523..e9899c6035b38d6c4af884e3003abec2e4086528 100644 (file)
@@ -105,14 +105,37 @@ def create_rgw(distro, name, cluster, init):
             ],
             timeout=7
         )
+        if distro.is_el:
+            system.enable_service(distro.conn, service='ceph-radosgw')
     elif init == 'systemd':
-        system.enable_service(
-            distro.conn,
-            service='ceph-radosgw@{name}'.format(name=name)
+        remoto.process.run(
+            conn,
+            [
+                'systemctl',
+                'enable',
+                'ceph-radosgw@{name}'.format(name=name),
+            ],
+            timeout=7
+        )
+        remoto.process.run(
+            conn,
+            [
+                'systemctl',
+                'start',
+                'ceph-radosgw@{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, service='ceph-radosgw')
 
 def rgw_create(args):
     cfg = conf.ceph.load(args)