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:
Josh Durgin 2016-03-29 17:10:28 -07:00
parent 3203b76792
commit 4c2e7309db

View File

@ -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...')