]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume lvm.activate ensure filestore osd path is chowned always
authorAlfredo Deza <adeza@redhat.com>
Thu, 13 Dec 2018 12:45:00 +0000 (07:45 -0500)
committerAlfredo Deza <adeza@redhat.com>
Tue, 8 Jan 2019 13:15:11 +0000 (08:15 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 7d6c32b5db0627d95c2ffb9428e86271daa4a336)

src/ceph-volume/ceph_volume/devices/lvm/activate.py

index f85747fe438dca9a1eb17ea75300bae996577d87..1ad15bc80a81c2386129da98e9fcb848e5ab8cc0 100644 (file)
@@ -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)