summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-11-27 16:48:55 -0500
committerTim Rozet <trozet@redhat.com>2018-11-27 16:48:55 -0500
commit14eb51f41f7cf67bf0c1946f2ce65a65cabaa8d3 (patch)
tree2907970b5fb7893ce6e82590a992d0bb5c47742c
parentdd211e56e0e40f4b470b24ec00f6d2e68da28dbb (diff)
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 <trozet@redhat.com>
-rwxr-xr-xjjb/cperf/cperf-robot-netvirt-csit.sh4
1 files 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