lib/glance: Migrate Glance to WSGI module path
We also remove an out-of-date note from the called method. Change-Id: I7cc9fd6a568246342395388c31ae0a0918a2c79a Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Depends-on: https://review.opendev.org/c/openstack/glance/+/932701
This commit is contained in:
parent
3cddf9f883
commit
497b4fdf97
@ -313,9 +313,7 @@ function write_uwsgi_config {
|
||||
# For services using chunked encoding, the only services known to use this
|
||||
# currently are Glance and Swift, we need to use an http proxy instead of
|
||||
# mod_proxy_uwsgi because the chunked encoding gets dropped. See:
|
||||
# https://github.com/unbit/uwsgi/issues/1540 You can workaround this on python2
|
||||
# but that involves having apache buffer the request before sending it to
|
||||
# uwsgi.
|
||||
# https://github.com/unbit/uwsgi/issues/1540.
|
||||
function write_local_uwsgi_http_config {
|
||||
local conf=$1
|
||||
local wsgi=$2
|
||||
|
@ -133,7 +133,7 @@ GLANCE_SERVICE_PORT=${GLANCE_SERVICE_PORT:-9292}
|
||||
GLANCE_SERVICE_PORT_INT=${GLANCE_SERVICE_PORT_INT:-19292}
|
||||
GLANCE_HOSTPORT=${GLANCE_HOSTPORT:-$GLANCE_SERVICE_HOST:$GLANCE_SERVICE_PORT}
|
||||
GLANCE_SERVICE_PROTOCOL=${GLANCE_SERVICE_PROTOCOL:-$SERVICE_PROTOCOL}
|
||||
GLANCE_UWSGI=$GLANCE_BIN_DIR/glance-wsgi-api
|
||||
GLANCE_UWSGI=glance.wsgi.api:application
|
||||
GLANCE_UWSGI_CONF=$GLANCE_CONF_DIR/glance-uwsgi.ini
|
||||
|
||||
# Glance default limit for Devstack
|
||||
@ -472,12 +472,11 @@ function configure_glance {
|
||||
fi
|
||||
|
||||
if [[ "$GLANCE_STANDALONE" == False ]]; then
|
||||
write_local_uwsgi_http_config "$GLANCE_UWSGI_CONF" "$GLANCE_UWSGI" "/image"
|
||||
write_local_uwsgi_http_config "$GLANCE_UWSGI_CONF" "$GLANCE_UWSGI" "/image" "glance-api"
|
||||
# Grab our uwsgi listen address and use that to fill out our
|
||||
# worker_self_reference_url config
|
||||
iniset $GLANCE_API_CONF DEFAULT worker_self_reference_url \
|
||||
$(awk '-F= ' '/^http-socket/ { print "http://"$2}' \
|
||||
$GLANCE_UWSGI_CONF)
|
||||
$(awk '-F= ' '/^http-socket/ { print "http://"$2}' $GLANCE_UWSGI_CONF)
|
||||
else
|
||||
write_local_proxy_http_config glance "http://$GLANCE_SERVICE_HOST:$GLANCE_SERVICE_PORT_INT" "/image"
|
||||
iniset $GLANCE_API_CONF DEFAULT bind_host $GLANCE_SERVICE_LISTEN_ADDRESS
|
||||
|
Loading…
x
Reference in New Issue
Block a user