Browse code

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

Mike Perez authored on 2013/08/21 13:53:30
Showing 1 changed files
... ...
@@ -81,3 +81,8 @@ export OS_CACERT=$INT_CA_DIR/ca-chain.pem
81 81
 export NOVA_VERSION=${NOVA_VERSION:-1.1}
82 82
 # In the future this will change names:
83 83
 export COMPUTE_API_VERSION=${COMPUTE_API_VERSION:-$NOVA_VERSION}
84
+
85
+# Currently cinderclient needs you to specify the *volume api* version. This
86
+# needs to match the config of your catalog returned by Keystone.
87
+export CINDER_VERSION=${CINDER_VERSION:-2}
88
+export OS_VOLUME_API_VERSION=${OS_VOLUME_API_VERSION:-$CINDER_VERSION}