From: Alfredo Deza Date: Thu, 13 Dec 2018 12:45:00 +0000 (-0500) Subject: ceph-volume lvm.activate ensure filestore osd path is chowned always X-Git-Tag: v13.2.5~141^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f219334edc168762ec271b65fb9973fe212b50b4;p=ceph.git ceph-volume lvm.activate ensure filestore osd path is chowned always Signed-off-by: Alfredo Deza (cherry picked from commit 7d6c32b5db0627d95c2ffb9428e86271daa4a336) --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index f85747fe438d..1ad15bc80a81 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)