fix ssh bug when running tc043 on huawei_pod1 41/16141/1
authorrexlee8776 <limingjiang@huawei.com>
Thu, 30 Jun 2016 01:39:54 +0000 (01:39 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Thu, 30 Jun 2016 01:41:53 +0000 (01:41 +0000)
Change-Id: I333122dae5c00da3ad9fa495e0ca9e8f5d23ae4f
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
tests/opnfv/test_cases/opnfv_yardstick_tc043.yaml
yardstick/benchmark/scenarios/networking/ping.py

index b45e41e..6f2952f 100644 (file)
@@ -9,8 +9,8 @@ scenarios:
   type: Ping
   options:
     packetsize: 100
-  host: node1.LF
-  target: node2.LF
+  host: node4.LF
+  target: node5.LF
 
   runner:
     type: Duration
index aa1a500..ae21666 100644 (file)
@@ -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()