Copy the jumphost ssh key into the container 41/25541/2
authorDan Radez <dradez@redhat.com>
Tue, 6 Dec 2016 14:17:17 +0000 (09:17 -0500)
committerDan Radez <dradez@redhat.com>
Tue, 6 Dec 2016 14:23:22 +0000 (09:23 -0500)
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>
dovetail/container.py

index 2716a08..a0cdf65 100644 (file)
@@ -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' % \