The debian packages for individual nova services provide service configs which automatically start after install, leading to all nova services running on each compute host. Instead only install the python3-nova library package and rely on the service files OSA manages. The nova_service_distro_packages can be cleaned up further since most packages are provided as dependencies. uwsgi packages are only required on hosts running nova-api-os-compute or nova-api-metadata, so an additional key, 'nova_api' has been added for these hosts under 'nova_service_extra_distro_packages'. Beginning in the Stein release, Ubuntu distro packages are now using Python3. This requires additionally installing and using the uwsgi python3 plugin. Change-Id: Id0c7b57f0119c5213abdf3505e4644680a78d55e
30 lines
886 B
Django/Jinja
30 lines
886 B
Django/Jinja
# {{ ansible_managed }}
|
|
[uwsgi]
|
|
uid = {{ nova_system_user_name }}
|
|
gid = {{ nova_system_group_name }}
|
|
|
|
{% if nova_install_method == 'source' %}
|
|
virtualenv = /openstack/venvs/nova-{{ nova_venv_tag }}
|
|
{% endif %}
|
|
{% if nova_install_method == 'distro' and (ansible_os_family | lower) == 'debian' %}
|
|
plugin = python3
|
|
{% endif %}
|
|
wsgi-file = {{ nova_bin }}/{{ item.wsgi_name }}
|
|
http = 0.0.0.0:{{ item.uwsgi_port }}
|
|
|
|
master = true
|
|
enable-threads = true
|
|
processes = {{ nova_wsgi_processes }}
|
|
threads = {{ nova_wsgi_threads }}
|
|
exit-on-reload = false
|
|
die-on-term = true
|
|
lazy-apps = true
|
|
add-header = Connection: close
|
|
buffer-size = {{ nova_wsgi_buffer_size }}
|
|
thunder-lock = true
|
|
logfile-chmod = 644
|
|
pidfile = /var/run/{{ item.service_name }}/{{ item.service_name }}.pid
|
|
|
|
# Avoid filling up the logs with health check requests from haproxy.
|
|
route-user-agent = ^osa-haproxy-healthcheck$ donotlog:
|