Bugfix: context not found for server ''node1.LF'' 01/27201/1
authorchenjiankun <chenjiankun1@huawei.com>
Thu, 19 Jan 2017 09:59:58 +0000 (09:59 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Thu, 19 Jan 2017 09:59:58 +0000 (09:59 +0000)
JIRA: YARDSTICK-540

We are adding dynamically generated suffix to server name in the
previous patch.
But in that patch we just change the 'target', 'host' in nodes, but not
'node1', 'node2' ...
This patch will change all this.

Change-Id: Ic7c82c323dea24a40f1fe30871603d30c2689f67
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
yardstick/benchmark/core/task.py

index d05117b..6cfec7b 100644 (file)
@@ -294,7 +294,8 @@ class TaskParser(object):       # pragma: no cover
             change_server_name(scenario, name_suffix)
 
             try:
-                change_server_name(scenario['nodes'], name_suffix)
+                for node in scenario['nodes']:
+                    scenario['nodes'][node] += name_suffix
             except KeyError:
                 pass