benchmark_config = self.config.get('benchmarks')
benchmark_type = benchmark_config.keys()[0]
- if benchmark_type == 'librbdfio':
+ if benchmark_type in ['librbdfio', 'fio']:
testdir = misc.get_testdir(self.ctx)
- benchmark_config['librbdfio']['cmd_path'] = os.path.join(testdir, 'fio/fio')
+ benchmark_config[benchmark_type]['cmd_path'] = os.path.join(testdir, 'fio/fio')
if benchmark_type == 'cosbench':
# create cosbench_dir and cosbench_xml_dir
testdir = misc.get_testdir(self.ctx)
ips = [host for (host, port) in
(remote.ssh.get_transport().getpeername() for (remote, role_list) in remotes_and_roles)]
benchmark_config['cosbench']['auth'] = "username=cosbench:operator;password=intel2012;url=http://%s:80/auth/v1.0;retry=9" %(ips[0])
+ client_endpoints_config = self.config.get('client_endpoints', None)
return dict(
cluster=cluster_config,
benchmarks=benchmark_config,
+ client_endpoints = client_endpoints_config,
)
def install_dependencies(self):
benchmark_type = self.cbt_config.get('benchmarks').keys()[0]
self.log.info('benchmark: %s', benchmark_type)
- if benchmark_type == 'librbdfio':
+ if benchmark_type in ['librbdfio', 'fio']:
# install fio
testdir = misc.get_testdir(self.ctx)
self.first_mon.run(
]
)
benchmark_type = self.cbt_config.get('benchmarks').keys()[0]
- if benchmark_type == 'librbdfio':
+ if benchmark_type in ['librbdfio', 'fio']:
self.first_mon.run(
args=[
'rm', '--one-file-system', '-rf', '--',