From 3ea5c24e99d6f976b70c104c8abeb3c1bdecfcbe Mon Sep 17 00:00:00 2001 From: BruceChiZhang Date: Thu, 20 Sep 2018 20:33:43 +0800 Subject: [PATCH] devstack install trio2o service endpoint with port 19996 1. what is the problem? trio2o endpoint with port 19996 not create https://bugs.launchpad.net/trio2o/+bug/1793517 2. What is the solution to the problem? fix the bug in devstack plugin.sh create_trio2o_accounts script 3. What the features to be implemented in the Trio2o to realize the solution? none Signed-off-by: zhangchi co-Authored-By: tangzhuo Change-Id: Ic71debedbf14e4f94a346d5fbca5ca5617040c1a --- devstack/plugin.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index c82de03..78a6078 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -17,15 +17,14 @@ function create_trio2o_accounts { if [[ "$ENABLED_SERVICES" =~ "t-oapi" ]]; then create_service_user "trio2o" - if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then - local trio2o_api=$(get_or_create_service "trio2o" \ - "Cascading" "OpenStack Cascading Service") - get_or_create_endpoint $trio2o_api \ - "$REGION_NAME" \ - "$SERVICE_PROTOCOL://$TRIO2O_API_HOST:$TRIO2O_API_PORT/v1.0" \ - "$SERVICE_PROTOCOL://$TRIO2O_API_HOST:$TRIO2O_API_PORT/v1.0" \ - "$SERVICE_PROTOCOL://$TRIO2O_API_HOST:$TRIO2O_API_PORT/v1.0" - fi + local trio2o_api=$(get_or_create_service "trio2o" \ + "Cascading" "OpenStack Cascading Service") + get_or_create_endpoint $trio2o_api \ + "$REGION_NAME" \ + "$SERVICE_PROTOCOL://$TRIO2O_API_HOST:$TRIO2O_API_PORT/v1.0" \ + "$SERVICE_PROTOCOL://$TRIO2O_API_HOST:$TRIO2O_API_PORT/v1.0" \ + "$SERVICE_PROTOCOL://$TRIO2O_API_HOST:$TRIO2O_API_PORT/v1.0" + fi }