From 7d6c32b5db0627d95c2ffb9428e86271daa4a336 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 13 Dec 2018 07:45:00 -0500 Subject: [PATCH] ceph-volume lvm.activate ensure filestore osd path is chowned always Signed-off-by: Alfredo Deza --- src/ceph-volume/ceph_volume/devices/lvm/activate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index afb7c668bba36..c691fe7ace665 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/activate.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/activate.py @@ -63,6 +63,9 @@ def activate_filestore(lvs, no_systemd=False): if not system.device_is_mounted(source, destination=destination): prepare_utils.mount_osd(source, osd_id, is_vdo=is_vdo) + # ensure that the OSD destination is always chowned properly + system.chown(destination) + # always re-do the symlink regardless if it exists, so that the journal # device path that may have changed can be mapped correctly every time destination = '/var/lib/ceph/osd/%s-%s/journal' % (conf.cluster, osd_id) -- 2.39.5