Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
self.ceph_first_mon = ceph_first_mon
self.ceph_installer = ceph_installer
self.args = args
+ # ship utilities files
+ self._ship_utilities()
if self.config.get('rhbuild'):
self.run_rh_playbook()
else:
ceph_installer.run(args=('cat', 'ceph-ansible/site.yml'))
ceph_installer.run(args=('cat', 'ceph-ansible/group_vars/all'))
+ def _ship_utilities(self):
+ with ship_utilities(self.ctx, {'skipcleanup': True}) as ship_utils:
+ ship_utils
+
def _fix_roles_map(self):
ctx = self.ctx
ctx.managers = {}
:param ctx: Context
:param config: Configuration
"""
- assert config is None
+ log.info(config)
testdir = teuthology.get_testdir(ctx)
filenames = []
try:
yield
finally:
- log.info('Removing shipped files: %s...', ' '.join(filenames))
- run.wait(
- ctx.cluster.run(
- args=[
- 'sudo',
- 'rm',
- '-f',
- '--',
- ] + list(filenames),
- wait=False,
- ),
- )
+ if config.get("skipcleanup", False):
+ log.info("skipping cleanup of shipped files")
+ else:
+ log.info('Removing shipped files: %s...', ' '.join(filenames))
+ run.wait(
+ ctx.cluster.run(
+ args=[
+ 'sudo',
+ 'rm',
+ '-f',
+ '--',
+ ] + list(filenames),
+ wait=False,
+ ),
+ )