Default to Cinder REST API v2

Set OS_VOLUME_API_VERSION environment variable to 2 so we use
specifically Cinder REST API v2. v1 is still enabled in the catalog, but
we want more exposure to v2 for testing.

Change-Id: I6c2f29edf44a0f58a7830fe4dd2db35f2db3658c
This commit is contained in:
Mike Perez 2013-08-20 21:53:30 -07:00 committed by Gerrit Code Review
parent 79ad861710
commit bd8ac01b02

5
openrc
View File

@ -81,3 +81,8 @@ export OS_CACERT=$INT_CA_DIR/ca-chain.pem
export NOVA_VERSION=${NOVA_VERSION:-1.1} export NOVA_VERSION=${NOVA_VERSION:-1.1}
# In the future this will change names: # In the future this will change names:
export COMPUTE_API_VERSION=${COMPUTE_API_VERSION:-$NOVA_VERSION} export COMPUTE_API_VERSION=${COMPUTE_API_VERSION:-$NOVA_VERSION}
# Currently cinderclient needs you to specify the *volume api* version. This
# needs to match the config of your catalog returned by Keystone.
export CINDER_VERSION=${CINDER_VERSION:-2}
export OS_VOLUME_API_VERSION=${OS_VOLUME_API_VERSION:-$CINDER_VERSION}