mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
tasks/ceph: pull each mon dir only once
No need to pull all mon dirs for the host for each mon on the host. Signed-off-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
parent
3203b76792
commit
4c2e7309db
@ -907,9 +907,12 @@ def cluster(ctx, config):
|
||||
for role in roles:
|
||||
is_mon = teuthology.is_type('mon', cluster_name)
|
||||
if is_mon(role):
|
||||
_, _, id_ = teuthology.split_role(role)
|
||||
mon_dir = '/var/lib/ceph/mon/' + \
|
||||
'{0}-{1}'.format(cluster_name, id_)
|
||||
teuthology.pull_directory_tarball(
|
||||
remote,
|
||||
'/var/lib/ceph/mon',
|
||||
mon_dir,
|
||||
path + '/' + role + '.tgz')
|
||||
|
||||
log.info('Cleaning ceph cluster...')
|
||||
|
Loading…
Reference in New Issue
Block a user