lib/placement: Migrate placement to WSGI module path

Change-Id: If9e2cc9247d707a451ef394615e547515115f9e0
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Depends-on: https://review.opendev.org/c/openstack/placement/+/919569
This commit is contained in:
Stephen Finucane 2024-12-09 14:03:44 +00:00
parent 3510a4c583
commit 5bf9d13f27

View File

@ -37,7 +37,7 @@ if [[ ${USE_VENV} = True ]]; then
else else
PLACEMENT_BIN_DIR=$(get_python_exec_prefix) PLACEMENT_BIN_DIR=$(get_python_exec_prefix)
fi fi
PLACEMENT_UWSGI=$PLACEMENT_BIN_DIR/placement-api PLACEMENT_UWSGI=placement.wsgi.api:application
PLACEMENT_UWSGI_CONF=$PLACEMENT_CONF_DIR/placement-uwsgi.ini PLACEMENT_UWSGI_CONF=$PLACEMENT_CONF_DIR/placement-uwsgi.ini
if is_service_enabled tls-proxy; then if is_service_enabled tls-proxy; then
@ -86,7 +86,7 @@ function configure_placement {
sudo install -d -o $STACK_USER $PLACEMENT_CONF_DIR sudo install -d -o $STACK_USER $PLACEMENT_CONF_DIR
create_placement_conf create_placement_conf
write_uwsgi_config "$PLACEMENT_UWSGI_CONF" "$PLACEMENT_UWSGI" "/placement" write_uwsgi_config "$PLACEMENT_UWSGI_CONF" "$PLACEMENT_UWSGI" "/placement" "" "placement-api"
if [[ "$PLACEMENT_ENFORCE_SCOPE" == "True" || "$ENFORCE_SCOPE" == "True" ]]; then if [[ "$PLACEMENT_ENFORCE_SCOPE" == "True" || "$ENFORCE_SCOPE" == "True" ]]; then
iniset $PLACEMENT_CONF oslo_policy enforce_new_defaults True iniset $PLACEMENT_CONF oslo_policy enforce_new_defaults True
iniset $PLACEMENT_CONF oslo_policy enforce_scope True iniset $PLACEMENT_CONF oslo_policy enforce_scope True