]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/ceph: Set owner on osd mount point
authorZack Cerza <zack@redhat.com>
Wed, 26 Apr 2017 18:22:00 +0000 (12:22 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 18 Oct 2017 18:59:09 +0000 (12:59 -0600)
This is needed when running with systemd

Signed-off-by: Zack Cerza <zack@redhat.com>
qa/tasks/ceph.py

index 4a5bc477c8b0253640774ee71eb55a83f86738ae..528be6e478de9b2ece3d65cdb127ffe0028b79f3 100644 (file)
@@ -686,7 +686,8 @@ def cluster(ctx, config):
 
         for role in teuthology.cluster_roles_of_type(roles_for_host, 'osd', cluster_name):
             _, _, id_ = teuthology.split_role(role)
-            mnt_point = '/var/lib/ceph/osd/{cluster}-{id}'.format(cluster=cluster_name, id=id_)
+            mnt_point = '/var/lib/ceph/osd/{cluster}-{id}'.format(
+                cluster=cluster_name, id=id_)
             remote.run(
                 args=[
                     'sudo',
@@ -790,6 +791,11 @@ def cluster(ctx, config):
                     '--monmap', monmap_path,
                 ],
             )
+            mnt_point = '/var/lib/ceph/osd/{cluster}-{id}'.format(
+                cluster=cluster_name, id=id_)
+            remote.run(args=[
+                'sudo', 'chown', '-R', 'ceph:ceph', mnt_point
+            ])
 
     log.info('Reading keys from all nodes...')
     keys_fp = StringIO()