From 300e1bf276b16c7aeab1631f709048346db63bd8 Mon Sep 17 00:00:00 2001 From: Yong Sheng Gong Date: Wed, 28 Aug 2013 17:02:56 +0800 Subject: [PATCH] Use the varialbe to export right keystone api version Change-Id: I1e8ea2b7173c549065ed1f08814eb4b4bb2f05cd Fixes: Bug #1217783 --- openrc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/openrc b/openrc index a23c6e95bd..3de7e3958f 100644 --- a/openrc +++ b/openrc @@ -63,21 +63,19 @@ SERVICE_PROTOCOL=${SERVICE_PROTOCOL:-http} # should be listening on HOST_IP. If its running elsewhere, it can be set here GLANCE_HOST=${GLANCE_HOST:-$HOST_IP} +# Identity API version +export OS_IDENTITY_API_VERSION=${IDENTITY_API_VERSION:-2.0} + # Authenticating against an Openstack cloud using Keystone returns a **Token** # and **Service Catalog**. The catalog contains the endpoints for all services # the user/tenant has access to - including nova, glance, keystone, swift, ... # We currently recommend using the 2.0 *identity api*. # -# *NOTE*: Using the 2.0 *identity api* does not mean that compute api is 2.0. We -# will use the 1.1 *compute api* -export OS_AUTH_URL=$SERVICE_PROTOCOL://$SERVICE_HOST:5000/v2.0 +export OS_AUTH_URL=$SERVICE_PROTOCOL://$SERVICE_HOST:5000/v${OS_IDENTITY_API_VERSION} # Set the pointer to our CA certificate chain. Harmless if TLS is not used. export OS_CACERT=$INT_CA_DIR/ca-chain.pem -# Identity API version -export OS_IDENTITY_API_VERSION=${IDENTITY_API_VERSION:-2.0} - # Currently novaclient needs you to specify the *compute api* version. This # needs to match the config of your catalog returned by Keystone. export NOVA_VERSION=${NOVA_VERSION:-1.1}