Disable uWSGI usage by default

While we are supposed to move Neutron fully to uWSGI usage from current
eventlet for 2024.2 release, in order to make change backportable we
are disabling uWSGI usage for Neutron API by default as it requires
more services to run, which were added just for 2024.2 cycle.

All prior releases are still expected to run old eventlet version to
avoid any potenital issues.

[1] https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.org/thread/SVP3VUCOZGIY63TGD33H6NQ6UBAFDN5V/

Change-Id: I5bea4bf1946f9788d9d87561da15c3abdcba1993
This commit is contained in:
Dmitriy Rabotyagov 2024-09-04 01:11:05 +02:00
parent d81a2fb7aa
commit 63900b617d
3 changed files with 17 additions and 2 deletions

View File

@ -194,7 +194,7 @@ neutron_ovn_metadata_agent_init_overrides: {}
### UWSGI
###
# NOTE(noonedeadpunk): uWSGI is still not fully supported. See: https://bugs.launchpad.net/neutron/+bug/1912359
neutron_use_uwsgi: "{{ (neutron_plugin_type not in ['ml2.ovn']) }}"
neutron_use_uwsgi: False
neutron_wsgi_processes_max: 16
neutron_wsgi_processes: "{{ [[ansible_facts['processor_vcpus'] | default(1), 1] | max * 2, neutron_wsgi_processes_max] | min }}"
neutron_wsgi_threads: 1

View File

@ -0,0 +1,13 @@
---
upgrade:
- |
Default for Neutron API has been switched from using uWSGI to old
eventlet due to found compatability issues for the current OpenStack
release.
You can find more infromation in Neutron
`bug report <https://bugs.launchpad.net/neutron/+bug/2069581>`_
You can preserve current behaviour by setting ``neutron_use_uwsgi: True``
fixes:
- |
In case of switching Neutron from uWSGI to old eventlet,
`neutron-rpc-server` service will be disabled and stopped by the role.

View File

@ -502,7 +502,9 @@ neutron_services:
neutron-rpc-server:
group: neutron_server
service_name: neutron-rpc-server
service_en: "{{ neutron_use_uwsgi }}"
service_en: True
enabled: "{{ neutron_use_uwsgi }}"
state: "{{ neutron_use_uwsgi | ternary('started', 'stopped') }}"
init_config_overrides: "{{ neutron_rpc_server_init_overrides | combine(neutron_server_init_overrides) }}"
start_order: 2
execstarts: >-