OS_CACERT is not exported after sourcing openrc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
High
|
Dr. Jens Harbott |
Bug Description
The usual step to set up a proper authentication environment is to run
. openrc user project
and it contains a section that is meant to set the OS_CACERT variable properly:
# Set OS_CACERT to a default CA certificate chain if it exists.
if [[ ! -v OS_CACERT ]] ; then
# If the file does not exist, this may confuse preflight sanity checks
if [ -e $DEFAULT_OS_CACERT ] ; then
export OS_CACERT=
fi
fi
However, OS_CACERT is contained in the list of variables to be saved into the .stackenv file, STACK_ENV_VARS. So since openrc sources .stackenv before the above block is executed, OS_CACERT is always set at that point, but will not get exported.
Fix proposed to branch: master /review. openstack. org/558734
Review: https:/