fix bug when running tc043, ssh fail 17/15517/2
authorrexlee8776 <limingjiang@huawei.com>
Tue, 14 Jun 2016 10:43:56 +0000 (10:43 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Tue, 14 Jun 2016 10:55:14 +0000 (10:55 +0000)
Change-Id: Ifcbb93f517063d3144f3ea4d7772071d62826e9c
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
yardstick/benchmark/scenarios/networking/ping.py

index fc41766..aa1a500 100644 (file)
@@ -41,10 +41,11 @@ class Ping(base.Scenario):
         user = host.get('user', 'ubuntu')
         ip = host.get('ip', None)
         key_filename = host.get('key_filename', '~/.ssh/id_rsa')
+        password = host.get('password', 'root')
 
         LOG.info("user:%s, host:%s", user, ip)
-
-        self.connection = ssh.SSH(user, ip, key_filename=key_filename)
+        self.connection = ssh.SSH(user, ip, key_filename=key_filename,
+                                  password=password)
         self.connection.wait()
 
     def run(self, result):