diff options
author | JingLu5 <lvjing5@huawei.com> | 2017-04-05 06:11:16 +0000 |
---|---|---|
committer | Jing Lu <lvjing5@huawei.com> | 2017-04-06 07:19:35 +0000 |
commit | 132564dc6b19cea9145b23332a04c258d1182f64 (patch) | |
tree | b9662af0f7867a2bda9c0ca945f81dc1d21637b2 /yardstick | |
parent | 77f471be8bd681c7a4d41d0549104e231c437e95 (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>
(cherry picked from commit b2fb23ca8ccc1acedaa9156552af4ba347f24103)
Diffstat (limited to 'yardstick')
-rw-r--r-- | yardstick/benchmark/scenarios/storage/storperf.py | 7 |
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. |