aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmeed Ashour <Ameed.Ashour.Ext@nokia.com>2018-09-25 15:38:43 +0300
committerEmma Foley <emma.l.foley@intel.com>2018-10-30 14:42:19 +0000
commitee5373fbe026b625aefa4e7fef949a7711ea76fd (patch)
treeee2ae83734756a7a1ea5b9e87defad659863e41b
parente17ba5d730878ae2a92cc9130e47630cc6745d91 (diff)
Allow to see steady state status in the yardstick logs
Change-Id: Ic2281b300ed1de6ecd3daf14b5273db22688de8d JIRA: YARDSTICK-1454 Signed-off-by: Ameed Ashour <Ameed.Ashour.Ext@nokia.com> (cherry picked from commit ad08f101fa3a23e9a35fa9ba3e28dd22a054ef52)
-rw-r--r--yardstick/benchmark/scenarios/storage/storperf.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/yardstick/benchmark/scenarios/storage/storperf.py b/yardstick/benchmark/scenarios/storage/storperf.py
index 8093cd2d2..6eda72ada 100644
--- a/yardstick/benchmark/scenarios/storage/storperf.py
+++ b/yardstick/benchmark/scenarios/storage/storperf.py
@@ -213,11 +213,20 @@ class StorPerf(base.Scenario):
# else:
# time.sleep(int(esti_time)/2)
- result_res = requests.get('http://%s:5000/api/v1.0/jobs?id=%s' %
- (self.target, job_id))
+ result_res = requests.get('http://%s:5000/api/v1.0/jobs?type='
+ 'metadata&id=%s' % (self.target, job_id))
+ result_res_content = jsonutils.loads(result_res.content)
+ if 'report' in result_res_content and \
+ 'steady_state' in result_res_content['report']['details']:
+ res = result_res_content['report']['details']['steady_state']
+ steady_state = res.values()[0]
+ LOG.info("Job %s completed with steady state %s",
+ job_id, steady_state)
+
+ result_res = requests.get('http://%s:5000/api/v1.0/jobs?'
+ 'type=status&id=%s' % (self.target, job_id))
result_res_content = jsonutils.loads(
result_res.content)
-
result.update(result_res_content)
def initialize_disks(self):