[utils, functest] Fix SSL-enabled Fuel condition 31/65731/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 11 Dec 2018 15:10:55 +0000 (16:10 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 11 Dec 2018 15:22:27 +0000 (16:22 +0100)
Fuel enables SSL based on scenario type (only for HA), not based
on cluster type (baremetal or virtual).

Change-Id: I3dc94f953e9a8ee0e94028577270ac05c9318ad6
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
jjb/functest/functest-alpine.sh
utils/fetch_os_creds.sh

index 42bf60b..91ca5eb 100755 (executable)
@@ -98,7 +98,7 @@ if [[ ${INSTALLER_TYPE} == 'joid' ]]; then
 elif [[ ${INSTALLER_TYPE} == 'compass' ]]; then
     cacert_file_vol="-v ${HOME}/os_cacert:${FUNCTEST_DIR}/conf/os_cacert"
     echo "export OS_CACERT=${FUNCTEST_DIR}/conf/os_cacert" >> ${HOME}/opnfv-openrc.sh
-elif [[ ${INSTALLER_TYPE} == 'fuel' && ${DEPLOY_TYPE} == 'baremetal' ]]; then
+elif [[ ${INSTALLER_TYPE} == 'fuel' ]] && [[ "${DEPLOY_SCENARIO}" =~ -ha$ ]]; then
     cacert_file_vol="-v ${HOME}/os_cacert:/etc/ssl/certs/mcp_os_cacert"
 fi
 
index 5010950..4a66187 100755 (executable)
@@ -113,7 +113,7 @@ if [ "$installer_type" == "fuel" ]; then
         ssh ${ssh_options} "${ssh_user}@${controller_ip}" \
             "sudo cat /root/keystonercv3" > "${dest_path}"
 
-        if [[ ! "${BUILD_TAG}" =~ 'virtual' ]]; then
+        if [[ ! "${DEPLOY_SCENARIO}" =~ -noha$ ]]; then
             ssh ${ssh_options} "${ssh_user}@${installer_ip}" \
                 "cat /etc/ssl/certs/os_cacert" > "${os_cacert}"
         fi