aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios/storage
diff options
context:
space:
mode:
authorJingLu5 <lvjing5@huawei.com>2017-04-05 06:11:16 +0000
committerJingLu5 <lvjing5@huawei.com>2017-04-05 06:11:16 +0000
commitb2fb23ca8ccc1acedaa9156552af4ba347f24103 (patch)
tree5c19128ffaa2c2c80f95e70b0b6b1c5ef6aec21f /yardstick/benchmark/scenarios/storage
parent65b2c23bff92368a9993d03ec70a64ed7344f1e8 (diff)
Bugfix: fix query job status in TC074
JIRA: YARDSTICK-621 The storperf job status query in TC074 didn' work properly. The cause is the "type: status" is not passed in the URL. This patch also update storperf VM image to xenial. Change-Id: Idd9f501416b24612f6045a57ba2a95e2ed3a9572 Signed-off-by: JingLu5 <lvjing5@huawei.com>
Diffstat (limited to 'yardstick/benchmark/scenarios/storage')
-rw-r--r--yardstick/benchmark/scenarios/storage/storperf.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/yardstick/benchmark/scenarios/storage/storperf.py b/yardstick/benchmark/scenarios/storage/storperf.py
index 6ea035133..672cfaba2 100644
--- a/yardstick/benchmark/scenarios/storage/storperf.py
+++ b/yardstick/benchmark/scenarios/storage/storperf.py
@@ -117,7 +117,8 @@ class StorPerf(base.Scenario):
"""Query the status of the supplied job_id and report on metrics"""
LOG.info("Fetching report for %s...", job_id)
report_res = requests.get('http://{}:5000/api/v1.0/jobs'.format
- (self.target), params={'id': job_id})
+ (self.target),
+ params={'id': job_id, 'type': 'status'})
report_res_content = jsonutils.loads(
report_res.content)
@@ -126,10 +127,10 @@ class StorPerf(base.Scenario):
raise RuntimeError("Failed to fetch report, error message:",
report_res_content["message"])
else:
- job_status = report_res_content["status"]
+ job_status = report_res_content["Status"]
LOG.debug("Job is: %s...", job_status)
- self.job_completed = job_status == "completed"
+ self.job_completed = job_status == "Completed"
# TODO: Support using StorPerf ReST API to read Job ETA.