From: Alfredo Deza Date: Wed, 26 Jul 2017 15:34:39 +0000 (-0400) Subject: ceph-volume: systemd: add helpers for the ceph-volume systemd unit X-Git-Tag: v12.1.3~102^2~16 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b458646ef1ebf51a424b92aa458bbcb0225c9d53;p=ceph-ci.git ceph-volume: systemd: add helpers for the ceph-volume systemd unit Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-volume/ceph_volume/systemd/systemctl.py b/src/ceph-volume/ceph_volume/systemd/systemctl.py index b137260ce42..9bb4d7d3a0e 100644 --- a/src/ceph-volume/ceph_volume/systemd/systemctl.py +++ b/src/ceph-volume/ceph_volume/systemd/systemctl.py @@ -36,8 +36,13 @@ def disable_osd(id_): return disable(osd_unit % id_) +def enable_volume(id_, fsid, device_type='lvm'): + return enable(volume_unit % (device_type, id_, fsid)) + + # # templates # osd_unit = "ceph-osd@%s" +volume_unit = "ceph-volume@%s-%s-%s"