From: Dan van der Ster Date: Mon, 30 Jul 2018 12:55:38 +0000 (+0200) Subject: ceph-volume: enable ceph-osd during lvm activation X-Git-Tag: v14.0.1~734^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=261d8ac94d0008f57ac194718e9277c126e096b5;p=ceph.git ceph-volume: enable ceph-osd during lvm activation Enable the ceph-osd@ unit during lvm activate to link these units to the ceph-osd.target. Signed-off-by: Dan van der Ster Fixes: http://tracker.ceph.com/issues/24152 --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index adebe2f4fa91a..2ef09cacd41f3 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/activate.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/activate.py @@ -74,6 +74,9 @@ def activate_filestore(lvs, no_systemd=False): # enable the ceph-volume unit for this OSD systemctl.enable_volume(osd_id, osd_fsid, 'lvm') + # enable the OSD + systemctl.enable_osd(osd_id) + # start the OSD systemctl.start_osd(osd_id) terminal.success("ceph-volume lvm activate successful for osd ID: %s" % osd_id) @@ -173,6 +176,9 @@ def activate_bluestore(lvs, no_systemd=False): # enable the ceph-volume unit for this OSD systemctl.enable_volume(osd_id, osd_fsid, 'lvm') + # enable the OSD + systemctl.enable_osd(osd_id) + # start the OSD systemctl.start_osd(osd_id) terminal.success("ceph-volume lvm activate successful for osd ID: %s" % osd_id)