diff options
author | Tim Rozet <trozet@redhat.com> | 2016-06-21 06:32:14 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2016-06-21 06:32:14 -0400 |
commit | 749e766c90a77e6e84ef216385fe5acd6daf24d8 (patch) | |
tree | 33078f9f8b55ca7d4ee0c8f4a9351ce6c3a7019e /jjb | |
parent | a0ce2546d6de3f196da3affe70653318ec4137f6 (diff) |
Apex, Functest: Fixes ssh options when copying Apex stackrc
Change-Id: I53e7e208d380beb2799182dc85394215d7397f7c
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb')
-rwxr-xr-x | jjb/functest/set-functest-env.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |