* Default IDENTITY_API_VERSION to '2.0' in stackrc
Note: the value of these *_API_VERSION variables will NOT include
the leading 'v' as the CLI tools do not allow it.
Change-Id: Ic6473833be35625282e7442f3c88fc1c4d0cc134
| ... | ... |
@@ -3,11 +3,12 @@ |
| 3 | 3 |
|
| 4 | 4 |
# Dependencies: |
| 5 | 5 |
# ``functions`` file |
| 6 |
+# ``DEST``, ``STACK_USER`` |
|
| 7 |
+# ``IDENTITY_API_VERSION`` |
|
| 6 | 8 |
# ``BASE_SQL_CONN`` |
| 7 | 9 |
# ``SERVICE_HOST``, ``SERVICE_PROTOCOL`` |
| 8 | 10 |
# ``SERVICE_TOKEN`` |
| 9 | 11 |
# ``S3_SERVICE_PORT`` (template backend only) |
| 10 |
-# ``STACK_USER`` |
|
| 11 | 12 |
|
| 12 | 13 |
# ``stack.sh`` calls the entry points in this order: |
| 13 | 14 |
# |
| ... | ... |
@@ -249,9 +250,9 @@ create_keystone_accounts() {
|
| 249 | 249 |
keystone endpoint-create \ |
| 250 | 250 |
--region RegionOne \ |
| 251 | 251 |
--service_id $KEYSTONE_SERVICE \ |
| 252 |
- --publicurl "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v2.0" \ |
|
| 253 |
- --adminurl "$KEYSTONE_AUTH_PROTOCOL://$KEYSTONE_AUTH_HOST:$KEYSTONE_AUTH_PORT/v2.0" \ |
|
| 254 |
- --internalurl "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v2.0" |
|
| 252 |
+ --publicurl "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v$IDENTITY_API_VERSION" \ |
|
| 253 |
+ --adminurl "$KEYSTONE_AUTH_PROTOCOL://$KEYSTONE_AUTH_HOST:$KEYSTONE_AUTH_PORT/v$IDENTITY_API_VERSION" \ |
|
| 254 |
+ --internalurl "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v$IDENTITY_API_VERSION" |
|
| 255 | 255 |
fi |
| 256 | 256 |
} |
| 257 | 257 |
|
| ... | ... |
@@ -302,7 +303,7 @@ function start_keystone() {
|
| 302 | 302 |
# Start Keystone in a screen window |
| 303 | 303 |
screen_it key "cd $KEYSTONE_DIR && $KEYSTONE_DIR/bin/keystone-all --config-file $KEYSTONE_CONF $KEYSTONE_LOG_CONFIG -d --debug" |
| 304 | 304 |
echo "Waiting for keystone to start..." |
| 305 |
- if ! timeout $SERVICE_TIMEOUT sh -c "while ! http_proxy= curl -s http://$SERVICE_HOST:$service_port/v2.0/ >/dev/null; do sleep 1; done"; then |
|
| 305 |
+ if ! timeout $SERVICE_TIMEOUT sh -c "while ! http_proxy= curl -s http://$SERVICE_HOST:$service_port/v$IDENTITY_API_VERSION/ >/dev/null; do sleep 1; done"; then |
|
| 306 | 306 |
die $LINENO "keystone did not start" |
| 307 | 307 |
fi |
| 308 | 308 |
|
| ... | ... |
@@ -75,6 +75,9 @@ export OS_AUTH_URL=$SERVICE_PROTOCOL://$SERVICE_HOST:5000/v2.0 |
| 75 | 75 |
# Set the pointer to our CA certificate chain. Harmless if TLS is not used. |
| 76 | 76 |
export OS_CACERT=$INT_CA_DIR/ca-chain.pem |
| 77 | 77 |
|
| 78 |
+# Identity API version |
|
| 79 |
+export OS_IDENTITY_API_VERSION=${IDENTITY_API_VERSION:-2.0}
|
|
| 80 |
+ |
|
| 78 | 81 |
# Currently novaclient needs you to specify the *compute api* version. This |
| 79 | 82 |
# needs to match the config of your catalog returned by Keystone. |
| 80 | 83 |
export NOVA_VERSION=${NOVA_VERSION:-1.1}
|
| ... | ... |
@@ -37,6 +37,9 @@ ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-s |
| 37 | 37 |
# Set the default Nova APIs to enable |
| 38 | 38 |
NOVA_ENABLED_APIS=ec2,osapi_compute,metadata |
| 39 | 39 |
|
| 40 |
+# Configure Identity API version: 2.0, 3 |
|
| 41 |
+IDENTITY_API_VERSION=2.0 |
|
| 42 |
+ |
|
| 40 | 43 |
# Whether to use 'dev mode' for screen windows. Dev mode works by |
| 41 | 44 |
# stuffing text into the screen windows so that a developer can use |
| 42 | 45 |
# ctrl-c, up-arrow, enter to restart the service. Starting services |