]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cosbench is setup on first mon, use that name in config.
authorVasu Kulkarni <vasu@redhat.com>
Wed, 20 Jun 2018 00:51:03 +0000 (17:51 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Mon, 3 Dec 2018 19:43:02 +0000 (11:43 -0800)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
qa/tasks/cbt.py

index 90f93f4e28bbc13a5b1eb50beb7188c79e8fb333..48ea463e525a57d514d833c8c7ac4b642d6500ce 100644 (file)
@@ -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()]