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: >-