load_images.sh: Add missing ssh_options 49/43949/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 2 Oct 2017 20:16:38 +0000 (22:16 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 2 Oct 2017 20:18:42 +0000 (22:18 +0200)
Empty ssh_options led to ssh login failure, which stopped the whole
script.

Change-Id: I8374a30a02b14d04eb0f623a0c58d7ebed77a589
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
tests/ci/load_images.sh

index 89ebb2d..689d919 100755 (executable)
@@ -20,6 +20,7 @@ fi
 
 # Look for a compute node, that is online, and check if it is aarch64
 if [ "${INSTALLER_TYPE}" == 'fuel' ]; then
+    ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
     COMPUTE_ARCH=$(ssh -l ubuntu ${INSTALLER_IP} -i ${SSH_KEY} ${ssh_options} \
         "sudo salt 'cmp*' grains.get cpuarch --out yaml | awk '{print \$2; exit}'")
     if [ "${COMPUTE_ARCH}" == 'aarch64' ]; then