]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
use same systemd service files for all cluster names.
authorOwen Synge <osynge@suse.com>
Tue, 5 May 2015 14:56:53 +0000 (16:56 +0200)
committerNathan Cutler <ncutler@suse.cz>
Wed, 6 May 2015 09:20:51 +0000 (11:20 +0200)
This removes the ability for multiple ceph clusters on the same hardware
but keeps the suport serface smaller without autogenerating systemd servixce
files.

See discussion here:

https://github.com/ceph/ceph/pull/4062

fix for bnc#915567

Signed-off-by: Owen Synge <osynge@suse.com>
src/ceph-disk
systemd/ceph-mds@.service
systemd/ceph-mon@.service
systemd/ceph-osd@.service
systemd/ceph.env [new file with mode: 0644]

index a1511ba89e825211e3883e7ca81e5667903d5694..7e78b33759170f69d8dc1163a7c3b2fd75dd202f 100755 (executable)
@@ -1879,16 +1879,14 @@ def start_daemon(
                 [
                     'systemctl',
                     'enable',
-                    'ceph-{cname}osd@{osd_id}'.format(osd_id=osd_id,
-                        cname=cname),
+                    'ceph-osd@{osd_id}'.format(osd_id=osd_id),
                     ],
                 )
             command_check_call(
                 [
                     'systemctl',
                     'start',
-                    'ceph-{cname}osd@{osd_id}'.format(osd_id=osd_id,
-                        cname=cname),
+                    'ceph-osd@{osd_id}'.format(osd_id=osd_id),
                     ],
                 )
         else:
index 22a787d60b4156f7f3f25ce99baf48fa0144b7fb..536d14b86d90659da00fd7ced8ab3a92c5153df6 100644 (file)
@@ -6,7 +6,6 @@ PartOf=ceph.target
 
 [Service]
 EnvironmentFile=-/etc/sysconfig/ceph
-Environment=CLUSTER=ceph
 ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i
 
 [Install]
index 437ef4d21b4d2a5382d6bf53f28e13760042606c..19436c213a7a4bcd1fe4746eb575bc5ca82542a3 100644 (file)
@@ -11,7 +11,6 @@ PartOf=ceph.target
 
 [Service]
 EnvironmentFile=-/etc/sysconfig/ceph
-Environment=CLUSTER=ceph
 ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i
 
 [Install]
index 09f51c5938bf5b5163df7193e780a7eff7358639..9aa5b38fa2dcd5458ec30e72afe0d81e126c3726 100644 (file)
@@ -6,7 +6,6 @@ PartOf=ceph.target
 
 [Service]
 EnvironmentFile=-/etc/sysconfig/ceph
-Environment=CLUSTER=ceph
 ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i
 ExecStartPre=/usr/lib/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i
 LimitNOFILE=131072
diff --git a/systemd/ceph.env b/systemd/ceph.env
new file mode 100644 (file)
index 0000000..da1c6df
--- /dev/null
@@ -0,0 +1 @@
+CLUSTER=fred