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

2015-11-22 Thread Ian Wienand
On 11/23/2015 03:17 PM, Wilence Yao wrote:
> source openrc admin admin
> openrc:90: unknown condition: -v

I'm pretty sure you're using zsh -- we only support bash (stack.sh
checks for bash, maybe we should add that to openrc)

Anyway, you can probably follow [1] to source it; other things might
break though

-i

[1] 
http://docs.openstack.org/developer/devstack/faq.html#can-i-at-least-source-openrc-with-zsh

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2015-11-22 Thread Tony Breeds
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.


pgpXs2_0bKhgk.pgp
Description: PGP signature
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2015-11-22 Thread Wilence Yao
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 ?

Wilence
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev