From: Vasu Kulkarni Date: Wed, 20 Jun 2018 02:28:31 +0000 (-0700) Subject: couple more fixes for config X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=626fc7125fb51cc3a37bf04ced7591846322fdde;p=ceph.git couple more fixes for config Signed-off-by: Vasu Kulkarni --- diff --git a/qa/tasks/cbt.py b/qa/tasks/cbt.py index 48ea463e525..9a6d388efc8 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,