From 51f54b8e7bb048822856a67a083880b6a15f0ebb Mon Sep 17 00:00:00 2001 From: Kevin Zhao Date: Wed, 16 Aug 2017 18:02:42 +0800 Subject: [PATCH] Add new entrypoint 'experimental' for capsules According to the comment in https://review.openstack.org/#/c/484602/, introduce the new api endpoint for capsules will reduce the API burden when changing. Change-Id: Ia686406449fdfa3ac4947fd997d9e2a8baf8f4b6 Signed-off-by: Kevin Zhao --- devstack/lib/zun | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devstack/lib/zun b/devstack/lib/zun index 761fcea26..2bd2cb653 100644 --- a/devstack/lib/zun +++ b/devstack/lib/zun @@ -147,6 +147,7 @@ function upload_sandbox_image { function create_zun_accounts { create_service_user "zun" "admin" + create_service_user "zun-experimental" "admin" if is_service_enabled zun-api; then @@ -159,11 +160,18 @@ function create_zun_accounts { local zun_service=$(get_or_create_service "zun" \ "container" "Container As Service") + local zun_experimental_service=$(get_or_create_service "zun-experimental" \ + "container-experimental" "Container As Service - Experimental") get_or_create_endpoint $zun_service \ "$REGION_NAME" \ "$zun_api_url/v1" \ "$zun_api_url/v1" \ "$zun_api_url/v1" + get_or_create_endpoint $zun_experimental_service \ + "$REGION_NAME" \ + "$zun_api_url/experimental" \ + "$zun_api_url/experimental" \ + "$zun_api_url/experimental" fi }