From a653720f50a539ecb910946ae73c4adaba3644a2 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 26 Apr 2017 12:22:00 -0600 Subject: [PATCH] qa/tasks/ceph: Set owner on osd mount point This is needed when running with systemd Signed-off-by: Zack Cerza --- qa/tasks/ceph.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 4a5bc477c8b..528be6e478d 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -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() -- 2.39.5