From 4411a184ebc813223f98f73805f5a3b16ebda041 Mon Sep 17 00:00:00 2001 From: "Mytnyk, Volodymyr" Date: Thu, 20 Sep 2018 10:13:03 +0100 Subject: SA: Fix private key file name generation issue In current implementation of Yardstick, SA context uses the same SSH key file name for each VM created. E.g. the Yardstick overrides the key file context each time the new VM is created. As a result, the key file is valid only for last VM created by Yardstick causing the connection problem for other VMs. Solution is to generate different key file name for each VM name separately. JIRA: YARDSTICK-1436 Change-Id: I22ae2874695736255aa3314654a2cced9338b53d Signed-off-by: Mytnyk, Volodymyr --- yardstick/benchmark/contexts/standalone/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yardstick/benchmark/contexts/standalone/model.py b/yardstick/benchmark/contexts/standalone/model.py index fa78fc1eb..1004c62d1 100644 --- a/yardstick/benchmark/contexts/standalone/model.py +++ b/yardstick/benchmark/contexts/standalone/model.py @@ -564,7 +564,7 @@ class StandaloneContextHelper(object): key_filename = ''.join( [constants.YARDSTICK_ROOT_PATH, 'yardstick/resources/files/yardstick_key-', - id_name]) + id_name, '-', vm_name]) ssh.SSH.gen_keys(key_filename) node['key_filename'] = key_filename # Update image with public key -- cgit 1.2.3-korg