From 4e2567b6b34535279e1af8c9b5e88292ccd95a36 Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Tue, 19 Jun 2018 19:28:31 -0700 Subject: [PATCH] couple more fixes for config Signed-off-by: Vasu Kulkarni --- qa/tasks/cbt.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qa/tasks/cbt.py b/qa/tasks/cbt.py index 48ea463e525a5..9a6d388efc888 100644 --- a/qa/tasks/cbt.py +++ b/qa/tasks/cbt.py @@ -18,7 +18,7 @@ class CBT(Task): self.log = log def hosts_of_type(self, type_): - return [r.name for r in self.ctx.cluster.only(misc.is_type(type_)).remotes.keys()] + return [r.hostname for r in self.ctx.cluster.only(misc.is_type(type_)).remotes.keys()] def generate_cbt_config(self): mon_hosts = self.hosts_of_type('mon') @@ -57,8 +57,7 @@ class CBT(Task): 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()] - benchmark_config['cosbench']['auth'] = "username=cosbench:operator;password=intel2012;url=http://%s:7280/auth/v1.0;retry=9" % (clients[0]) + benchmark_config['cosbench']['auth'] = "username=cosbench:operator;password=intel2012;url=http://%s:7280/auth/v1.0;retry=9" % (client_hosts[0]) return dict( cluster=cluster_config, -- 2.39.5