From 63900b617dbc58cc1d80cc73523f52142fcd0b0d Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 4 Sep 2024 01:11:05 +0200 Subject: [PATCH] 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 --- defaults/main.yml | 2 +- ...able_neutron_uwsgi_default-1763a0cbc17f23c8.yaml | 13 +++++++++++++ vars/main.yml | 4 +++- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/disable_neutron_uwsgi_default-1763a0cbc17f23c8.yaml diff --git a/defaults/main.yml b/defaults/main.yml index 255767a4..89f0e523 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/releasenotes/notes/disable_neutron_uwsgi_default-1763a0cbc17f23c8.yaml b/releasenotes/notes/disable_neutron_uwsgi_default-1763a0cbc17f23c8.yaml new file mode 100644 index 00000000..2a4e409f --- /dev/null +++ b/releasenotes/notes/disable_neutron_uwsgi_default-1763a0cbc17f23c8.yaml @@ -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 `_ + 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. diff --git a/vars/main.yml b/vars/main.yml index e30cb341..f712e31a 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -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: >-