From 749e766c90a77e6e84ef216385fe5acd6daf24d8 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Tue, 21 Jun 2016 06:32:14 -0400 Subject: Apex, Functest: Fixes ssh options when copying Apex stackrc Change-Id: I53e7e208d380beb2799182dc85394215d7397f7c Signed-off-by: Tim Rozet --- jjb/functest/set-functest-env.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jjb/functest/set-functest-env.sh') diff --git a/jjb/functest/set-functest-env.sh b/jjb/functest/set-functest-env.sh index aae6f768a..7e500ed02 100755 --- a/jjb/functest/set-functest-env.sh +++ b/jjb/functest/set-functest-env.sh @@ -5,6 +5,7 @@ set -e # labconfig is used only for joid labconfig="" if [[ ${INSTALLER_TYPE} == 'apex' ]]; then + ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" if sudo virsh list | grep instack; then instack_mac=$(sudo virsh domiflist instack | grep default | \ grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+") @@ -17,7 +18,7 @@ if [[ ${INSTALLER_TYPE} == 'apex' ]]; then fi INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'}) sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa" - sudo scp root@${INSTALLER_IP}:/home/stack/stackrc . + sudo scp $ssh_options root@${INSTALLER_IP}:/home/stack/stackrc . stackrc="-v ./stackrc:/home/opnfv/functest/conf/stackrc" if sudo iptables -C FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable 2> ${redirect}; then -- cgit 1.2.3-korg