aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2016-06-30 01:39:54 +0000
committerrexlee8776 <limingjiang@huawei.com>2016-06-30 01:41:53 +0000
commit0df428ebf9ded14254f73085b28c264086a1bf0d (patch)
treee4517d31515bb14879e800ef795b05ebb9271f02 /yardstick
parent8a4f8df64b8897bf38e77399099099f92266048b (diff)
fix ssh bug when running tc043 on huawei_pod1
Change-Id: I333122dae5c00da3ad9fa495e0ca9e8f5d23ae4f Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'yardstick')
-rw-r--r--yardstick/benchmark/scenarios/networking/ping.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/benchmark/scenarios/networking/ping.py b/yardstick/benchmark/scenarios/networking/ping.py
index aa1a500cf..ae2166687 100644
--- a/yardstick/benchmark/scenarios/networking/ping.py
+++ b/yardstick/benchmark/scenarios/networking/ping.py
@@ -40,10 +40,10 @@ class Ping(base.Scenario):
host = self.context_cfg['host']
user = host.get('user', 'ubuntu')
ip = host.get('ip', None)
- key_filename = host.get('key_filename', '~/.ssh/id_rsa')
+ key_filename = host.get('key_filename', '/root/.ssh/id_rsa')
password = host.get('password', 'root')
- LOG.info("user:%s, host:%s", user, ip)
+ LOG.info("user:%s, host:%s, key_filename:%s", user, ip, key_filename)
self.connection = ssh.SSH(user, ip, key_filename=key_filename,
password=password)
self.connection.wait()