From 11659c188082eb11b35afaac9fbe740f9f5a2b35 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 26 Jul 2017 16:33:08 -0400 Subject: [PATCH] ceph-volume: devices chown the journal when activating Signed-off-by: Alfredo Deza --- src/ceph-volume/ceph_volume/devices/lvm/activate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index 24b859ca474..e21a7458120 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/activate.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/activate.py @@ -4,6 +4,7 @@ import os from textwrap import dedent from ceph_volume import process, conf from ceph_volume.util import activate as activate_utils +from ceph_volume.util import system from ceph_volume.systemd import systemctl from . import api @@ -36,6 +37,9 @@ def activate_filestore(lvs): destination = '/var/lib/ceph/osd/%s-%s/journal' % (conf.cluster, osd_id) process.call(['sudo', 'ln', '-s', source, destination]) + # make sure that the journal has proper permissions + system.chown(osd_journal) + # enable the ceph-volume unit for this OSD systemctl.enable_volume(osd_id, osd_fsid, 'lvm') -- 2.39.5