]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
move cos driver into its own role
authorVasu Kulkarni <vasu@redhat.com>
Wed, 20 Jun 2018 00:20:37 +0000 (17:20 -0700)
committerrakeshgm <rgowdege@redhat.com>
Thu, 1 Aug 2019 05:43:12 +0000 (11:13 +0530)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
qa/tasks/cbt.py

index 3b3bb0955be267c8e1d343e4ef5b1dee6a489aa0..cb88356ff28596a0d20a8217748fe76dbe4b2702 100644 (file)
@@ -25,6 +25,7 @@ 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 +56,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'] = osd_hosts[0]
+            benchmark_config['cosbench']['controller'] = cos_driver[0]
 
             # set auth details
             remotes_and_roles = self.ctx.cluster.remotes.items()