From 08d887595903aa7127b42eaa8a04add2a09244fe Mon Sep 17 00:00:00 2001 From: xudan Date: Sat, 6 May 2017 04:46:17 -0400 Subject: Support Yardstick to push results to database JIRA: DOVETAIL-421 1. Yardstick is working on supporting push results to mongoDB. see https://gerrit.opnfv.org/gerrit/#/c/34091/ 2. make Dovetail supporting push results to database too when user choose to report to database. Change-Id: Iee06ad6be59dad62ac4f985f4a982fb5ff93a592 Signed-off-by: xudan --- dovetail/container.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dovetail/container.py') diff --git a/dovetail/container.py b/dovetail/container.py index ae7c8e2e..67e26f66 100644 --- a/dovetail/container.py +++ b/dovetail/container.py @@ -100,8 +100,9 @@ class Container(object): return None if dovetail_config['report_dest'].startswith("http"): - cls.logger.info("Yardstick can't push results to DB.") - cls.logger.info("Results will be stored with files.") + envs = envs + " -e DISPATCHER=http" + envs = envs + " -e TARGET=%s" % dovetail_config['report_dest'] + envs = envs + " -e NODE_NAME=master" log_vol = '-v %s:%s ' % (dovetail_config['result_dir'], dovetail_config["yardstick"]['result']['log']) -- cgit 1.2.3-korg