]>
git.proxmox.com Git - ceph.git/blob - ceph/qa/tasks/ceph_client.py
6 from teuthology
import misc
as teuthology
7 from teuthology
.orchestra
import run
9 log
= logging
.getLogger(__name__
)
11 def create_keyring(ctx
, cluster_name
):
13 Set up key ring on remote sites
15 log
.info('Setting up client nodes...')
16 clients
= ctx
.cluster
.only(teuthology
.is_type('client', cluster_name
))
17 testdir
= teuthology
.get_testdir(ctx
)
18 coverage_dir
= '{tdir}/archive/coverage'.format(tdir
=testdir
)
19 for remote
, roles_for_host
in clients
.remotes
.items():
20 for role
in teuthology
.cluster_roles_of_type(roles_for_host
, 'client',
22 name
= teuthology
.ceph_role(role
)
23 client_keyring
= '/etc/ceph/{0}.{1}.keyring'.format(cluster_name
, name
)
33 # TODO this --name= is not really obeyed, all unknown "types" are munged to "client"
34 '--name={name}'.format(name
=name
),