Use ansible_facts['processor_vcpus'] instead of fact variable

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/912768
Change-Id: If9fc16a7938a49d51dbd1110e908e3bda74e7adb
This commit is contained in:
Jimmy McCrory 2024-03-11 07:21:58 -07:00 committed by Dmitriy Rabotyagov
parent 4e855db6b2
commit 66cdc8fa7c
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ neutron_ovn_metadata_agent_init_overrides: {}
# 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_wsgi_processes_max: 16
neutron_wsgi_processes: "{{ [[ansible_processor_vcpus | default(1), 1] | max * 2, neutron_wsgi_processes_max] | min }}"
neutron_wsgi_processes: "{{ [[ansible_facts['processor_vcpus'] | default(1), 1] | max * 2, neutron_wsgi_processes_max] | min }}"
neutron_wsgi_threads: 1
neutron_uwsgi_tls:
crt: "{{ neutron_ssl_cert }}"