]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph: Set owner on mon mount point
authorZack Cerza <zack@redhat.com>
Wed, 26 Apr 2017 18:17:28 +0000 (12:17 -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 efdcf9f08a6ae55920070e99043005335621cef7..4a5bc477c8b0253640774ee71eb55a83f86738ae 100644 (file)
@@ -857,12 +857,14 @@ def cluster(ctx, config):
     for remote, roles_for_host in mons.remotes.iteritems():
         for role in teuthology.cluster_roles_of_type(roles_for_host, 'mon', cluster_name):
             _, _, id_ = teuthology.split_role(role)
+            mnt_point = '/var/lib/ceph/mon/{cluster}-{id}'.format(
+                id=id_, cluster=cluster_name)
             remote.run(
                 args=[
                     'sudo',
                     'mkdir',
                     '-p',
-                    '/var/lib/ceph/mon/{cluster}-{id}'.format(id=id_, cluster=cluster_name),
+                    mnt_point,
                 ],
             )
             remote.run(
@@ -879,6 +881,9 @@ def cluster(ctx, config):
                     '--keyring', keyring_path,
                 ],
             )
+            remote.run(args=[
+                'sudo', 'chown', '-R', 'ceph:ceph', mnt_point
+            ])
 
     run.wait(
         mons.run(