From: Dan Radez Date: Tue, 6 Dec 2016 14:17:17 +0000 (-0500) Subject: Copy the jumphost ssh key into the container X-Git-Tag: ovp.0.9.0~271^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F41%2F25541%2F2;p=dovetail.git Copy the jumphost ssh key into the container When functest runs against Apex it needs to ssh from the container to the undercloud to get the keystonerc file so it can authenticate to the overcloud. Change-Id: Iea3273d4d1611733f167ffab0b2a75330c413edc Signed-off-by: Dan Radez --- diff --git a/dovetail/container.py b/dovetail/container.py index 2716a089..a0cdf657 100644 --- a/dovetail/container.py +++ b/dovetail/container.py @@ -41,12 +41,11 @@ class Container: @classmethod def create(cls, type): - # sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa " + sshkey = "-v /root/.ssh/id_rsa:/root/.ssh/id_rsa " dovetail_config = dt_config.dovetail_config docker_image = cls.get_docker_image(type) envs = dovetail_config[type]['envs'] opts = dovetail_config[type]['opts'] - sshkey = '' result_volume = ' -v %s:%s ' % (dovetail_config['result_dir'], dovetail_config[type]['result']['dir']) cmd = 'sudo docker run %s %s %s %s %s /bin/bash' % \