Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 550892

Summary: >=sys-cluster/ceph-0.94.2 - systemd support request
Product: Gentoo Linux Reporter: Michael Seifert <m.seifert>
Component: [OLD] ServerAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED FIXED    
Severity: normal CC: dlan, gongfan193, m.seifert, mail, nerve, systemd, wireless
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=522450
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882    
Attachments: ceph-0.94.1.ebuild
ceph-mon_at.service
ceph-osd_at.service
ceph-mds_at.service
ceph.target
ceph-0.94.1.ebuild
ceph-mon_at.service.conf
ceph-osd_at.service.conf
ceph-mds_at.service.conf
ceph-0.94.1.ebuild
ceph-mon_at.service
ceph-osd_at.service
ceph-mds_at.service

Description Michael Seifert 2015-05-31 16:55:52 UTC
I created an ebuild for sys-cluster/ceph-0.94.1 based on the ceph-0.93 ebuild.

The updated ebuild includes support for systemd. The systemd scripts were taken from the ceph repository on GitHub (https://github.com/ceph/ceph/tree/master/systemd) and file paths adjusted to Gentoo.

Reproducible: Always
Comment 1 Michael Seifert 2015-05-31 16:56:37 UTC
Created attachment 404378 [details]
ceph-0.94.1.ebuild
Comment 2 Michael Seifert 2015-05-31 16:57:21 UTC
Created attachment 404380 [details]
ceph-mon_at.service

Systemd script for starting a monitor
Comment 3 Michael Seifert 2015-05-31 16:57:51 UTC
Created attachment 404382 [details]
ceph-osd_at.service

Systemd script for starting an OSD.
Comment 4 Michael Seifert 2015-05-31 16:58:22 UTC
Created attachment 404384 [details]
ceph-mds_at.service

Systemd script for starting an MDS
Comment 5 Michael Seifert 2015-05-31 16:58:49 UTC
Created attachment 404386 [details]
ceph.target

Systemd target for ceph.
Comment 6 Drunkard Zhang 2015-06-05 04:18:07 UTC
Built successfully on both gentoo and funtoo.
Comment 7 Michael Seifert 2015-06-05 07:05:41 UTC
Created attachment 404612 [details]
ceph-0.94.1.ebuild

Removed USE=systemd. Systemd files are now installed independently of the USE flag, according to the systemd ebuild policy [1].

[1] https://wiki.gentoo.org/index.php?title=Project:Systemd/Ebuild_policy&oldid=318434
Comment 8 Michael Seifert 2015-06-06 09:10:06 UTC
Created attachment 404648 [details]
ceph-mon_at.service.conf

Configuration file for the Monitor service.
Comment 9 Michael Seifert 2015-06-06 09:10:47 UTC
Created attachment 404650 [details]
ceph-osd_at.service.conf

Configuration file for the object storage daemon.
Comment 10 Michael Seifert 2015-06-06 09:11:40 UTC
Created attachment 404652 [details]
ceph-mds_at.service.conf

Configuration file for the metadata server daemon.
Comment 11 Michael Seifert 2015-06-06 09:15:07 UTC
Created attachment 404654 [details]
ceph-0.94.1.ebuild

The updated ebuild installs configuration files for the individual ceph services that allows changing the cluster name.

One limitation is that multiple services of the same type (e.g. ceph-osd@0.service, ceph-osd@1.service, ...) always use the same cluster name. However, it is very unlikely that anyone would want a single machine to participate in multiple clusters IMO.
Comment 12 Michael Seifert 2015-06-06 09:17:11 UTC
Created attachment 404656 [details]
ceph-mon_at.service

Removed definition of EnvironmentFile, because it is unnecessary.
Comment 13 Michael Seifert 2015-06-06 09:17:44 UTC
Created attachment 404658 [details]
ceph-osd_at.service

Removed definition of EnvironmentFile, because it is unnecessary.
Comment 14 Michael Seifert 2015-06-06 09:18:13 UTC
Created attachment 404660 [details]
ceph-mds_at.service

Removed definition of EnvironmentFile, because it is unnecessary.
Comment 15 Yixun Lan archtester gentoo-dev 2015-08-04 15:53:57 UTC
*** Bug 522450 has been marked as a duplicate of this bug. ***
Comment 16 Yixun Lan archtester gentoo-dev 2015-08-06 15:10:32 UTC
+*ceph-0.94.2-r1 (06 Aug 2015)
+
+  06 Aug 2015; Yixun Lan <dlan@gentoo.org> +ceph-0.94.2-r1.ebuild,
+  +files/ceph.target, +files/ceph-mds_at.service,
+  +files/ceph-mds_at.service.conf, +files/ceph-mon_at.service,
+  +files/ceph-mon_at.service.conf, +files/ceph-osd_at.service,
+  +files/ceph-osd_at.service.conf:
+  add systemd support, bug 550892, thanks Michael Seifert
+