Browse code

Register versioned endpoint for block-storage service

cinder does not yet support operations without project_id in the url.
The unversioned endpoint is not a usable endpoint for a user that
requests the block-storage service. Although it would be lovely to have
the block-storage service have the unversioned endpoint in the catalog,
we need to get project-id out of the urls first.

Change-Id: I4246708b6ea31496ba4d565ab422abc76f730ee7
Needed-By: https://review.openstack.org/564494

Monty Taylor authored on 2018/05/01 19:57:21
Showing 1 changed files
... ...
@@ -349,7 +349,7 @@ function create_cinder_accounts {
349 349
             get_or_create_endpoint \
350 350
                 "block-storage" \
351 351
                 "$REGION_NAME" \
352
-                "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/"
352
+                "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v3/\$(project_id)s"
353 353
 
354 354
             get_or_create_endpoint \
355 355
                 "volume" \
... ...
@@ -371,7 +371,7 @@ function create_cinder_accounts {
371 371
             get_or_create_endpoint \
372 372
                 "block-storage" \
373 373
                 "$REGION_NAME" \
374
-                "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST/volume/"
374
+                "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST/volume/v3/\$(project_id)s"
375 375
 
376 376
             get_or_create_endpoint \
377 377
                 "volume" \