Switch from wsgi script to wsgi module

Change-Id: Iea05ecc9a2a8352b89ec7e1d3f56554fffcc5d5b
This commit is contained in:
Jonathan Rosser
2025-05-20 17:00:00 +01:00
parent bbdc63c1ef
commit bb14d9c79f
2 changed files with 1 additions and 2 deletions

View File

@@ -313,7 +313,7 @@ glance_services:
start_order: 1 start_order: 1
execstarts: "{{ glance_bin }}/glance-api" execstarts: "{{ glance_bin }}/glance-api"
wsgi_app: "{{ glance_use_uwsgi }}" wsgi_app: "{{ glance_use_uwsgi }}"
wsgi_name: glance-wsgi-api wsgi: "glance.wsgi.api:application"
uwsgi_overrides: "{{ glance_api_uwsgi_ini_overrides }}" uwsgi_overrides: "{{ glance_api_uwsgi_ini_overrides }}"
uwsgi_bind_address: "{{ glance_api_bind_address }}" uwsgi_bind_address: "{{ glance_api_bind_address }}"
uwsgi_port: "{{ glance_api_service_port }}" uwsgi_port: "{{ glance_api_service_port }}"

View File

@@ -56,7 +56,6 @@ uwsgi_glance_services: |-
and ('wsgi_app' in value and value['wsgi_app']) %} and ('wsgi_app' in value and value['wsgi_app']) %}
{% set _ = value.update( {% set _ = value.update(
{ {
'wsgi_path': glance_bin ~ '/' ~ value.wsgi_name,
'wsgi_venv': ((glance_install_method == 'source') | ternary(glance_bin | dirname, None)), 'wsgi_venv': ((glance_install_method == 'source') | ternary(glance_bin | dirname, None)),
'uwsgi_uid': glance_system_user_name, 'uwsgi_uid': glance_system_user_name,
'uwsgi_guid': glance_system_group_name, 'uwsgi_guid': glance_system_group_name,