]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
create.py: use rcceph instead of service on SUSE 103/head
authorDavid Disseldorp <ddiss@suse.de>
Fri, 11 Oct 2013 11:26:13 +0000 (13:26 +0200)
committerDavid Disseldorp <ddiss@suse.de>
Fri, 11 Oct 2013 12:15:23 +0000 (14:15 +0200)
Attempting to start a monitor node with the command:
/sbin/service ceph -c /etc/ceph/X.conf start mon.Y
currently fails on SUSE based systems.

The failure is caused by the service binary's attempt to parse the
-c argument as its own.
Call the ceph init script directly instead to avoid this.

Signed-off-by: David Disseldorp <ddiss@suse.de>
ceph_deploy/hosts/suse/mon/create.py

index e7c2e4580d51c1ca6070b1df8ab0450d6812a205..7c6f8486131892f1596c53b48d98376a64cda46c 100644 (file)
@@ -7,7 +7,6 @@ from ceph_deploy.connection import get_connection
 def create(distro, logger, args, monitor_keyring):
     hostname = remote_shortname(distro.sudo_conn.modules.socket)
     common.mon_create(distro, logger, args, monitor_keyring, hostname)
-    service = common.which_service(distro.sudo_conn, logger)
 
     distro.sudo_conn.close()
 
@@ -17,8 +16,7 @@ def create(distro, logger, args, monitor_keyring):
     process.run(
         rconn,
         [
-            service,
-            'ceph',
+            'rcceph',
             '-c',
             '/etc/ceph/{cluster}.conf'.format(cluster=args.cluster),
             'start',