
The debian packages for individual cinder services provide service configs which automatically start after install, leading to all cinder services running on each cinder volume host. Instead only install the python3-cinder library package and rely on the service files OSA manages. uwsgi packages are only required on hosts running cinder-api, so an additional variable, 'cinder_api_distro_packages' has been added for packages specific to those hosts. Beginning in the Stein release, Ubuntu distro packages are now using Python3. This requires additionally installing and using the uwsgi python3 plugin. Change-Id: Iafcd9a8141fffb2226ec5103960064decc579bd5
29 lines
904 B
Django/Jinja
29 lines
904 B
Django/Jinja
[uwsgi]
|
|
uid = {{ cinder_system_user_name }}
|
|
gid = {{ cinder_system_group_name }}
|
|
|
|
{% if cinder_install_method == 'source' %}
|
|
virtualenv = /openstack/venvs/cinder-{{ cinder_venv_tag }}
|
|
{% endif %}
|
|
{% if cinder_install_method == 'distro' and (ansible_os_family | lower) == 'debian' %}
|
|
plugin = python3
|
|
{% endif %}
|
|
wsgi-file = {{ cinder_bin }}/{{ item.wsgi_name }}
|
|
http = {{ item.uwsgi_bind_address }}:{{ item.uwsgi_port }}
|
|
|
|
master = true
|
|
enable-threads = true
|
|
processes = {{ cinder_wsgi_processes }}
|
|
threads = {{ cinder_wsgi_threads }}
|
|
exit-on-reload = false
|
|
die-on-term = true
|
|
lazy-apps = true
|
|
add-header = Connection: close
|
|
buffer-size = {{ cinder_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:
|