From: Vasu Kulkarni Date: Wed, 20 Jun 2018 00:51:03 +0000 (-0700) Subject: cosbench is setup on first mon, use that name in config. X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae696dd59e347d3bf066868ebdb987b7f9c1b7de;p=ceph.git cosbench is setup on first mon, use that name in config. Signed-off-by: Vasu Kulkarni --- diff --git a/qa/tasks/cbt.py b/qa/tasks/cbt.py index 90f93f4e28b..48ea463e525 100644 --- a/qa/tasks/cbt.py +++ b/qa/tasks/cbt.py @@ -24,7 +24,6 @@ class CBT(Task): mon_hosts = self.hosts_of_type('mon') osd_hosts = self.hosts_of_type('osd') client_hosts = self.hosts_of_type('client') - cos_driver = self.hosts_of_type('cos') rgw_client = {} rgw_client[client_hosts[0]] = None rgw_hosts = self.config.get('cluster', {}).get('rgws', rgw_client) @@ -55,7 +54,7 @@ class CBT(Task): benchmark_config['cosbench']['cosbench_dir'] = os.path.join(testdir, 'cos') benchmark_config['cosbench']['cosbench_xml_dir'] = os.path.join(testdir, 'xml') self.ctx.cluster.run(args=['mkdir', '-p', '-m0755', '--', benchmark_config['cosbench']['cosbench_xml_dir']]) - benchmark_config['cosbench']['controller'] = cos_driver[0] + benchmark_config['cosbench']['controller'] = self.first_mon.hostname # set auth details using first client clients = [r.hostname for r in self.ctx.cluster.only(misc.is_type('client')).remotes.keys()]