]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-volume: devices chown the journal when activating
authorAlfredo Deza <adeza@redhat.com>
Wed, 26 Jul 2017 20:33:08 +0000 (16:33 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 4 Aug 2017 14:25:58 +0000 (10:25 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/activate.py

index 24b859ca4746f24f25fc1f049b9bab281821244e..e21a7458120e4d84d15a8b5fa8ae9e47815d834e 100644 (file)
@@ -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')