load_images.sh: Add missing ssh_options 57/43957/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 21:12:28 +0000 (21:12 +0000)
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>
(cherry picked from commit 77c7d358bc6a61e2a5c24c6056cc3e40561f27c7)

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