From 861ac497e598f969f45189ff1bd954d8fe27d474 Mon Sep 17 00:00:00 2001 From: tamil Date: Fri, 19 Apr 2013 18:23:54 -0700 Subject: [PATCH] added ceph.client.admin.keyring on the client to run rbd and rados tests Signed-off-by: tamil --- teuthology/task/ceph-deploy.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/teuthology/task/ceph-deploy.py b/teuthology/task/ceph-deploy.py index 611b270f99..b12c278860 100644 --- a/teuthology/task/ceph-deploy.py +++ b/teuthology/task/ceph-deploy.py @@ -194,6 +194,7 @@ def build_ceph_cluster(ctx, config): log.info('Setting up client nodes...') conf_path = '/etc/ceph/ceph.conf' + admin_keyring_path = '/etc/ceph/ceph.client.admin.keyring' first_mon = teuthology.get_first_mon(ctx, config) (mon0_remote,) = ctx.cluster.only(first_mon).remotes.keys() conf_data = teuthology.get_file( @@ -201,6 +202,11 @@ def build_ceph_cluster(ctx, config): path=conf_path, sudo=True, ) + admin_keyring = teuthology.get_file( + remote=mon0_remote, + path=admin_keyring_path, + sudo=True, + ) clients = ctx.cluster.only(teuthology.is_type('client')) for remot, roles_for_host in clients.remotes.iteritems(): @@ -235,6 +241,12 @@ def build_ceph_cluster(ctx, config): data=key_data, perms='0644' ) + teuthology.sudo_write_file( + remote=remot, + path=admin_keyring_path, + data=admin_keyring, + perms='0644' + ) teuthology.sudo_write_file( remote=remot, path=conf_path, -- 2.39.5