From 8bf932a368859a83934cb2e3c4b59d3238cc6624 Mon Sep 17 00:00:00 2001 From: Stefan Dinescu Date: Fri, 27 Mar 2020 15:20:36 +0200 Subject: [PATCH] Fix remote dcmanager access Dcmanager needs another environment variable set in order to properly work with the remote setup. The variable is OS_ENDPOINT_TYPE and must be set to "publicURL" for any kind of remote access. Unless otherwise specified, dcmanager defaults to "internalURL". The issue only affect dcmanager, as other platform commands (system and fm) work without this variable set, but also don't seem to be affected in any way when this variable is configured to "publicURL". Change-Id: Ic70de40ff169d07800f9ee42f744b12768dc70ac Closes-bug: 1869258 Signed-off-by: Stefan Dinescu --- remote_cli/client_wrapper.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/remote_cli/client_wrapper.sh b/remote_cli/client_wrapper.sh index 113ec48..3c28a1b 100755 --- a/remote_cli/client_wrapper.sh +++ b/remote_cli/client_wrapper.sh @@ -38,7 +38,15 @@ OS_AUTH_URL OS_USERNAME OS_INTERFACE OS_PROJECT_DOMAIN_NAME OS_AUTH_TYPE EOF -COMMAND_ENV="" +# We initialize the environment variable list with the OS_ENDPOINT_TYPE set +# "publicURL" because dcmanager defaults to "internalURL" if not overridden +# by a parameter to the command itself or by the environment variable. +# For remote access the endpoint-type must always be publicURL, but the +# environment variable is not part of the set of variables present in the +# platform RC file downloaded from Horizon. +# In order for dcmanager to work properly, we manually set this variable +# to the correct value. +COMMAND_ENV="-e OS_ENDPOINT_TYPE=publicURL" for exp in $EXPORTS; do # If variable is not defined, don't pass it over to the container