Switch from wsgi script to wsgi module

Change-Id: Ieac8f3bbe2ff1a04305a254c295cb414e0e6e55a
This commit is contained in:
Jonathan Rosser
2025-05-21 09:56:16 +01:00
parent 34ee179ea7
commit c26f7726a7
2 changed files with 1 additions and 2 deletions

View File

@@ -397,7 +397,7 @@ cinder_services:
init_config_overrides: "{{ cinder_api_init_overrides }}"
start_order: 4
wsgi_app: true
wsgi_name: cinder-wsgi
wsgi: "cinder.wsgi.api:application"
uwsgi_overrides: "{{ cinder_api_uwsgi_ini_overrides }}"
uwsgi_port: "{{ cinder_service_port }}"
uwsgi_tls: "{{ cinder_backend_ssl | ternary(cinder_uwsgi_tls, {}) }}"

View File

@@ -79,7 +79,6 @@ uwsgi_cinder_services: |-
and ('wsgi_app' in value and value['wsgi_app']) %}
{% set _ = value.update(
{
'wsgi_path': cinder_bin ~ '/' ~ value.wsgi_name,
'wsgi_venv': ((cinder_install_method == 'source') | ternary(cinder_bin | dirname, None)),
'uwsgi_uid': cinder_system_user_name,
'uwsgi_guid': cinder_system_group_name,