Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550892 - >=sys-cluster/ceph-0.94.2 - systemd support request
Summary: >=sys-cluster/ceph-0.94.2 - systemd support request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
: 522450 (view as bug list)
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2015-05-31 16:55 UTC by Michael Seifert
Modified: 2015-08-06 15:10 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ceph-0.94.1.ebuild (ceph-0.94.1.ebuild,3.30 KB, text/plain)
2015-05-31 16:56 UTC, Michael Seifert
Details
ceph-mon_at.service (ceph-mon_at.service,545 bytes, text/plain)
2015-05-31 16:57 UTC, Michael Seifert
Details
ceph-osd_at.service (ceph-osd_at.service,399 bytes, text/plain)
2015-05-31 16:57 UTC, Michael Seifert
Details
ceph-mds_at.service (ceph-mds_at.service,319 bytes, text/plain)
2015-05-31 16:58 UTC, Michael Seifert
Details
ceph.target (ceph.target,128 bytes, text/plain)
2015-05-31 16:58 UTC, Michael Seifert
Details
ceph-0.94.1.ebuild (ceph-0.94.1-r1.ebuild,3.25 KB, text/plain)
2015-06-05 07:05 UTC, Michael Seifert
Details
ceph-mon_at.service.conf (ceph-mon_at.service.conf,115 bytes, text/plain)
2015-06-06 09:10 UTC, Michael Seifert
Details
ceph-osd_at.service.conf (ceph-osd_at.service.conf,115 bytes, text/plain)
2015-06-06 09:10 UTC, Michael Seifert
Details
ceph-mds_at.service.conf (ceph-mds_at.service.conf,115 bytes, text/plain)
2015-06-06 09:11 UTC, Michael Seifert
Details
ceph-0.94.1.ebuild (ceph-0.94.1-r2.ebuild,3.55 KB, text/plain)
2015-06-06 09:15 UTC, Michael Seifert
Details
ceph-mon_at.service (ceph-mon_at.service,508 bytes, text/plain)
2015-06-06 09:17 UTC, Michael Seifert
Details
ceph-osd_at.service (ceph-osd_at.service,362 bytes, text/plain)
2015-06-06 09:17 UTC, Michael Seifert
Details
ceph-mds_at.service (ceph-mds_at.service,282 bytes, text/plain)
2015-06-06 09:18 UTC, Michael Seifert
Details

Note You need to log in before you can comment on or make changes to this bug.
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
+