ba78082e0c
This changes moves cinder-api to make use of apache to launch its processes. Ubuntu binary removed support in Ocata for cinder-api system services [1]. At this moment cinder in Ocata branch is not working at all due this issue. This changes aims to fix cinder in master only for ubuntu binary with the purpose of make a clean backport to stable/ocata without do any other change on the backport process. A follow up change will migrate other OS/install_type to make use of Apache but only changing master branch. [1] http://lists.openstack.org/pipermail/openstack-dev/2017-January/111069.html Change-Id: I9885d6acadbac1da46844f583e7cd37785505ae0 Closes-Bug: #1676751
16 lines
765 B
Django/Jinja
16 lines
765 B
Django/Jinja
{% set python_path = '/usr/lib/python2.7/site-packages' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
|
|
Listen {{ api_interface_address }}:{{ cinder_api_port }}
|
|
|
|
<VirtualHost *:{{ cinder_api_port }}>
|
|
WSGIDaemonProcess cinder-api processes={{ openstack_service_workers }} threads=1 user=cinder group=cinder display-name=%{GROUP} python-path={{ python_path }}
|
|
WSGIProcessGroup cinder-api
|
|
WSGIScriptAlias / /var/www/cgi-bin/cinder/cinder-wsgi
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
<IfVersion >= 2.4>
|
|
ErrorLogFormat "%{cu}t %M"
|
|
</IfVersion>
|
|
ErrorLog /var/log/kolla/cinder/cinder-api.log
|
|
CustomLog /var/log/kolla/cinder/cinder-api-access.log combined
|
|
</VirtualHost>
|