Skip to content

Commit

Permalink
lib/placement: Migrate placement to WSGI module path
Browse files Browse the repository at this point in the history
Change-Id: If9e2cc9247d707a451ef394615e547515115f9e0
Signed-off-by: Stephen Finucane <[email protected]>
Depends-on: https://review.opendev.org/c/openstack/placement/+/919569
  • Loading branch information
stephenfin committed Dec 9, 2024
1 parent 3510a4c commit 5bf9d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/placement
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ ${USE_VENV} = True ]]; then
else
PLACEMENT_BIN_DIR=$(get_python_exec_prefix)
fi
PLACEMENT_UWSGI=$PLACEMENT_BIN_DIR/placement-api
PLACEMENT_UWSGI=placement.wsgi.api:application
PLACEMENT_UWSGI_CONF=$PLACEMENT_CONF_DIR/placement-uwsgi.ini

if is_service_enabled tls-proxy; then
Expand Down Expand Up @@ -86,7 +86,7 @@ function configure_placement {
sudo install -d -o $STACK_USER $PLACEMENT_CONF_DIR
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
iniset $PLACEMENT_CONF oslo_policy enforce_new_defaults True
iniset $PLACEMENT_CONF oslo_policy enforce_scope True
Expand Down

0 comments on commit 5bf9d13

Please sign in to comment.