[openstack-dev] [devstack] How to source openrc?

Tony Breeds tony at bakeyournoodle.com
Mon Nov 23 05:28:21 UTC 2015


On Mon, Nov 23, 2015 at 12:17:13PM +0800, Wilence Yao wrote:
> Hi all,
> 
> In devstack stable/liberty, error is :
> 
> source openrc admin admin
> openrc:90: unknown condition: -v
> 
> the line 90 and code block in openrc is
> ```
> # Set OS_CACERT to a default CA certificate chain if it exists.
> if [[ ! -v OS_CACERT ]] ; then
>     DEFAULT_OS_CACERT=$INT_CA_DIR/ca-chain.pem
>     # If the file does not exist, this may confuse preflight sanity checks
>     if [ -e $DEFAULT_OS_CACERT ] ; then
>         export OS_CACERT=$DEFAULT_OS_CACERT
>     fi
> fi
> ```
> So how to source devstack/openrc ? What command it is ?

You shell needs to be bash 4 (IIRC bash 3 won't do)
then:
     . openrc admin admin

Yours Tony.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151123/07cf9f76/attachment.pgp>


More information about the OpenStack-dev mailing list