]> git.apps.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>
Thu, 13 Dec 2018 12:45:00 +0000 (07:45 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/activate.py

index afb7c668bba364c3c1e5357d85dd98f51e508d2a..c691fe7ace665af43ecb8d3aa9aace8da5a70fd3 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)