From 6bb2c9a96a2084fc08019d1b2bff16f8a1ecc66d Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Tue, 6 Dec 2016 09:17:17 -0500 Subject: 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 --- dovetail/container.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dovetail/container.py') 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' % \ -- cgit 1.2.3-korg