summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2016-12-06 09:17:17 -0500
committerDan Radez <dradez@redhat.com>2016-12-06 09:23:22 -0500
commit6bb2c9a96a2084fc08019d1b2bff16f8a1ecc66d (patch)
treeecdb0c16e9494cc30e57db30ea5cc3323aa5246b
parentec43484e1c8c8123a0e45c78d6fcb5a8d5560b43 (diff)
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 <dradez@redhat.com>
-rw-r--r--dovetail/container.py3
1 files changed, 1 insertions, 2 deletions
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' % \