Add CACERT file to Yardstick Container for fuel installer 63/44063/1
authorDelia Popescu <delia.popescu@enea.com>
Tue, 3 Oct 2017 10:04:52 +0000 (13:04 +0300)
committerDelia Popescu <delia.popescu@enea.com>
Tue, 3 Oct 2017 10:14:46 +0000 (13:14 +0300)
CACERT file is needed for authentication to and
between openstack services.

Change-Id: Ic6c48ad0ac6f16c2dca82214f5b44d2f8dcac4fc
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
jjb/yardstick/yardstick-daily.sh

index a2d4ec2..8841e09 100755 (executable)
@@ -18,10 +18,6 @@ if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
     fi
 fi
 
-if [[ "${INSTALLER_TYPE}" == 'fuel' ]]; then
-    sshkey="-v ${SSH_KEY}:/root/.ssh/mcp.rsa"
-fi
-
 if [[ ${INSTALLER_TYPE} == 'joid' ]]; then
     if [[ "${DEPLOY_SCENARIO:0:2}" == "k8" ]];then
         rc_file_vol="-v /home/ubuntu/config:/etc/yardstick/admin.conf"
@@ -36,6 +32,9 @@ elif [[ ${INSTALLER_TYPE} == 'compass' ]]; then
     cacert_file_vol="-v ${HOME}/os_cacert:/etc/yardstick/os_cacert"
     echo "export OS_CACERT=/etc/yardstick/os_cacert" >> ${HOME}/opnfv-openrc.sh
     rc_file_vol="-v ${HOME}/opnfv-openrc.sh:/etc/yardstick/openstack.creds"
+elif [[ ${INSTALLER_TYPE} == 'fuel' ]]; then
+    cacert_file_vol="-v ${HOME}/os_cacert:/etc/ssl/certs/mcp_os_cacert"
+    sshkey="-v ${SSH_KEY}:/root/.ssh/mcp.rsa"
 else
     rc_file_vol="-v ${HOME}/opnfv-openrc.sh:/etc/yardstick/openstack.creds"
 fi