From: rexlee8776 Date: Tue, 14 Jun 2016 10:43:56 +0000 (+0000) Subject: fix bug when running tc043, ssh fail X-Git-Tag: colorado.1.0~151 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F15517%2F2;p=yardstick.git fix bug when running tc043, ssh fail Change-Id: Ifcbb93f517063d3144f3ea4d7772071d62826e9c Signed-off-by: rexlee8776 --- diff --git a/yardstick/benchmark/scenarios/networking/ping.py b/yardstick/benchmark/scenarios/networking/ping.py index fc4176650..aa1a500cf 100644 --- a/yardstick/benchmark/scenarios/networking/ping.py +++ b/yardstick/benchmark/scenarios/networking/ping.py @@ -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):