From 14eb51f41f7cf67bf0c1946f2ce65a65cabaa8d3 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Tue, 27 Nov 2018 16:48:55 -0500 Subject: [PATCH] CPERF: Fixes issue with known hosts Exporting the global var to disable ansible host key checking doesn't ignore known hosts in the file. To fix this, this patch sets the known hosts file to /dev/null. Reference: https://github.com/ansible/ansible/issues/9442 Jobs currently failing due to known hosts: https://build.opnfv.org/ci/job/cperf-apex-csit-master/320/console Change-Id: Ic3470b368a056b3a3981f9555160a44018f97ebd Signed-off-by: Tim Rozet --- jjb/cperf/cperf-robot-netvirt-csit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jjb/cperf/cperf-robot-netvirt-csit.sh b/jjb/cperf/cperf-robot-netvirt-csit.sh index 892f0aa7a..fe5d57879 100755 --- a/jjb/cperf/cperf-robot-netvirt-csit.sh +++ b/jjb/cperf/cperf-robot-netvirt-csit.sh @@ -90,7 +90,7 @@ fi # Upload glance image into openstack wget -O ${WORKSPACE}/cirros-0.3.5-x86_64-disk.img http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img export ANSIBLE_HOST_KEY_CHECKING=False -ansible-playbook -i ${CONTROLLER_1_IP}, -u heat-admin --key-file ${WORKSPACE}/id_rsa ${REL_PATH}/cirros-upload.yaml.ansible -vvv +ansible-playbook -i ${CONTROLLER_1_IP}, -u heat-admin --key-file ${WORKSPACE}/id_rsa ${REL_PATH}/cirros-upload.yaml.ansible --ssh-extra-args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' -vvv LOGS_LOCATION=/tmp/robot_results @@ -185,4 +185,4 @@ docker run -i --net=host \ ${robot_cmd} ${suites};" echo "Running post CSIT clean" -ansible-playbook -i ${CONTROLLER_1_IP}, -u heat-admin --key-file ${WORKSPACE}/id_rsa ${REL_PATH}/csit-clean.yaml.ansible -vvv +ansible-playbook -i ${CONTROLLER_1_IP}, -u heat-admin --key-file ${WORKSPACE}/id_rsa ${REL_PATH}/csit-clean.yaml.ansible --ssh-extra-args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' -vvv -- 2.16.6