Skip to content

Commit

Permalink
PBench Uperf Update
Browse files Browse the repository at this point in the history
This work is to increase timeouts (needed for slow metadata services to
inject keys into the guest). Additionally we need to capture the proper
metrics after pbench-uperf is complete. This patch addresses both of
these items.

Change-Id: Idc6f1f340438c35dfa46654ea366a07ada130cc3
  • Loading branch information
jtaleric committed Jun 25, 2018
1 parent 604149b commit 0231ea9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions rally/rally-plugins/workloads/pbench-uperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def create_guest_pairs(

# Check status of guest
ready = False
retry = 10
retry = 50
while (not ready):
for sip in _servers + _clients:
cmd = "ssh -o StrictHostKeyChecking=no {}@{} /bin/true".format(
Expand All @@ -150,6 +150,8 @@ def create_guest_pairs(
if retry < 1:
LOG.error(
"Error : Issue reaching {} the guests through the Jump host".format(sip))
LOG.error(
"Console : stdout:{} stderr:{}".format(s1_stdout,s1_stderr))
return False
if s1_exitcode is 0:
LOG.info("Server: {} ready".format(sip))
Expand Down Expand Up @@ -209,7 +211,7 @@ def run(self, image, flavor, user, test_types, protocols, samples, test_name, ex
# Execute pbench-uperf
# execute returns, exitcode,stdout,stderr
LOG.info("Starting Rally - PBench UPerf")
uperf_exitcode, stdout_uperf, stderr = jump_ssh.execute(uperf)
uperf_exitcode, stdout_uperf, stderr = jump_ssh.execute(uperf,timeout=0)

# Prepare results
cmd = "cat {}/uperf_{}*/result.csv".format(pbench_results, test_name)
Expand Down Expand Up @@ -247,7 +249,12 @@ def run(self, image, flavor, user, test_types, protocols, samples, test_name, ex
creader = csv.reader(result)
report = []
for row in creader:
if len(row) >= 1:
LOG.info("Row: {}".format(row))
if len(row) < 1 :
continue
if row[2] is '' or row[3] is '' :
continue
if len(row) >= 3:
report.append(
["aggregate.{}".format(row[1]), float(row[2])])
report.append(["single.{}".format(row[1]), float(row[3])])
Expand All @@ -263,4 +270,4 @@ def run(self, image, flavor, user, test_types, protocols, samples, test_name, ex
cmd = "echo nameserver {}".format(dns_ip)
self._run_command_over_ssh(jump_ssh, {"remote_path": cmd})
cmd = "{}/util-scripts/pbench-move-results".format(pbench_path)
self._run_command_over_ssh(jump_ssh, {"remote_path": cmd})
exitcode, stdout, stderr = jump_ssh.execute(cmd)

0 comments on commit 0231ea9

Please sign in to comment.