Set public_endpoint to GLANCE_URL for glance-api
We run glance behind uwsgi. This means that the URL glance knows about itself is wrong, and version discovery fails. Set the public endpoint to the value of GLANCE_URL which should always be correct. Change-Id: Ia7c69024a0ef6cc0fdc284ffcd06eee5678a1007
This commit is contained in:
parent
7fef90aff9
commit
43304849cf
@ -186,9 +186,12 @@ function configure_glance {
|
||||
inicomment $GLANCE_API_CONF glance_store swift_store_auth_address
|
||||
fi
|
||||
|
||||
# We need to tell glance what it's public endpoint is so that the version
|
||||
# discovery document will be correct
|
||||
iniset $GLANCE_API_CONF DEFAULT public_endpoint $GLANCE_URL
|
||||
|
||||
if is_service_enabled tls-proxy; then
|
||||
iniset $GLANCE_API_CONF DEFAULT bind_port $GLANCE_SERVICE_PORT_INT
|
||||
iniset $GLANCE_API_CONF DEFAULT public_endpoint $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT
|
||||
iniset $GLANCE_REGISTRY_CONF DEFAULT bind_port $GLANCE_REGISTRY_PORT_INT
|
||||
|
||||
iniset $GLANCE_API_CONF keystone_authtoken identity_uri $KEYSTONE_AUTH_URI
|
||||
|
Loading…
x
Reference in New Issue
Block a user