From d60707e88d0d6ebde0d52b9af5a18e1663aeafac Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 1 May 2018 05:57:21 -0500 Subject: [PATCH] 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 (cherry picked from commit 69057d46556db95267a4bc4156dadc88b5064ab9) --- lib/cinder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cinder b/lib/cinder index 96a7d5bb8e..2b6ee9bee1 100644 --- a/lib/cinder +++ b/lib/cinder @@ -350,7 +350,7 @@ function create_cinder_accounts { get_or_create_endpoint \ "block-storage" \ "$REGION_NAME" \ - "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/" + "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v3/\$(project_id)s" get_or_create_endpoint \ "volume" \ @@ -372,7 +372,7 @@ function create_cinder_accounts { get_or_create_endpoint \ "block-storage" \ "$REGION_NAME" \ - "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST/" + "$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST/volume/v3/\$(project_id)s" get_or_create_endpoint \ "volume" \