Fix register tricircle endpoint failed

1. What is the problem?
When installing tricircle using devstatck, the tricircle endpoint can not
be successfully registered

2. What is the solution to the problem?
Remove KEYSTONE_CATALOG_BACKEND equal to 'sql' judgement

3. What the features need to be implemented to the Tricircle to realize
the solution?
No new features

Change-Id: I214c3e6942a53707616a7d46d39a3a5b2936366f
This commit is contained in:
xiulin yin 2016-11-28 16:23:47 +08:00
parent 133c99b28d
commit aa6bfdf75a
1 changed files with 7 additions and 10 deletions

View File

@ -16,16 +16,13 @@ function is_tricircle_enabled {
function create_tricircle_accounts {
if [[ "$ENABLED_SERVICES" =~ "t-api" ]]; then
create_service_user "tricircle"
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
local tricircle_api=$(get_or_create_service "tricircle" \
"Tricircle" "Cross Neutron Networking Automation Service")
get_or_create_endpoint $tricircle_api \
"$CENTRAL_REGION_NAME" \
"$SERVICE_PROTOCOL://$TRICIRCLE_API_HOST:$TRICIRCLE_API_PORT/v1.0" \
"$SERVICE_PROTOCOL://$TRICIRCLE_API_HOST:$TRICIRCLE_API_PORT/v1.0" \
"$SERVICE_PROTOCOL://$TRICIRCLE_API_HOST:$TRICIRCLE_API_PORT/v1.0"
fi
local tricircle_api=$(get_or_create_service "tricircle" \
"Tricircle" "Cross Neutron Networking Automation Service")
get_or_create_endpoint $tricircle_api \
"$CENTRAL_REGION_NAME" \
"$SERVICE_PROTOCOL://$TRICIRCLE_API_HOST:$TRICIRCLE_API_PORT/v1.0" \
"$SERVICE_PROTOCOL://$TRICIRCLE_API_HOST:$TRICIRCLE_API_PORT/v1.0" \
"$SERVICE_PROTOCOL://$TRICIRCLE_API_HOST:$TRICIRCLE_API_PORT/v1.0"
fi
}