From f80eaebbffba737dba3154172bf361e7a858d85c Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Wed, 20 Jun 2018 15:10:23 -0700 Subject: [PATCH] install fio on client nodes Signed-off-by: Vasu Kulkarni --- qa/tasks/cbt.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qa/tasks/cbt.py b/qa/tasks/cbt.py index 9a6d388efc888..cea81e064f8f6 100644 --- a/qa/tasks/cbt.py +++ b/qa/tasks/cbt.py @@ -83,7 +83,8 @@ class CBT(Task): else: install_cmd = ['sudo', 'apt-get', '-y', '--force-yes', 'install'] cbt_depends = ['python-yaml', 'python-lxml', 'librbd-dev', 'collectl'] - self.ctx.cluster.run(args=install_cmd + cbt_depends) + clients = self.ctx.cluster.only(misc.is_type('client')) + clients.run(args=install_cmd + cbt_depends) benchmark_type = self.cbt_config.get('benchmarks').keys()[0] self.log.info('benchmark: %s', benchmark_type) @@ -91,14 +92,14 @@ class CBT(Task): if benchmark_type == 'librbdfio': # install fio testdir = misc.get_testdir(self.ctx) - self.first_mon.run( + clients.run( args=[ 'git', 'clone', '-b', 'master', 'https://github.com/axboe/fio.git', '{tdir}/fio'.format(tdir=testdir) ] ) - self.first_mon.run( + clients.run( args=[ 'cd', os.path.join(testdir, 'fio'), run.Raw('&&'), './configure', run.Raw('&&'), -- 2.39.5