From 7f87efdd21e92721fe2bf8bb493deb4822e32f1b Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 9 Oct 2015 10:07:11 -0400 Subject: [PATCH] Remove project_id from nova service urls Nova API itself supports both URL modes: with project-id and without project-id However, we are changing service catalogs for removing project-id based on the discussion. We have agreement on https://review.openstack.org/#/c/181393 like the following: - Standard required naming for endpoints (versioned vs. unversioned, contains project ID vs. no project ID). * We want unversioned endpoints so that the user can get information about multiple available versions in a given cloud. * We do not want project ID, account ID, or tenant ID as part of the resource URI for an OpenStack API endpoint. So this patch removes project-id from Nova service catalog for this direction. Change-Id: Ifd74152727b5c0c75924419a7a52e024a69ce72c --- lib/nova | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nova b/lib/nova index 1b3d08651b..9449cfa98d 100644 --- a/lib/nova +++ b/lib/nova @@ -429,9 +429,9 @@ function create_nova_accounts { get_or_create_endpoint \ "compute" \ "$REGION_NAME" \ - "$nova_api_url/v2.1/\$(project_id)s" \ - "$nova_api_url/v2.1/\$(project_id)s" \ - "$nova_api_url/v2.1/\$(project_id)s" + "$nova_api_url/v2.1" \ + "$nova_api_url/v2.1" \ + "$nova_api_url/v2.1" fi if is_service_enabled n-api; then