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
38 lines
1.2 KiB
Django/Jinja
38 lines
1.2 KiB
Django/Jinja
{% set command = '/usr/sbin/apache2 -DFOREGROUND' if kolla_base_distro in ['ubuntu', 'debian'] and kolla_install_type == 'binary' else 'cinder-api --config-file /etc/cinder/cinder.conf' %}
|
|
{
|
|
"command": "{{ command }}",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/cinder.conf",
|
|
"dest": "/etc/cinder/cinder.conf",
|
|
"owner": "cinder",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/policy.json",
|
|
"dest": "/etc/cinder/policy.json",
|
|
"owner": "cinder",
|
|
"perm": "0600",
|
|
"optional": true
|
|
}{% if kolla_base_distro in ['ubuntu', 'debian'] and kolla_install_type == 'binary' %},
|
|
{
|
|
"source": "{{ container_config_directory }}/cinder-wsgi.conf",
|
|
"dest": "/etc/apache2/conf-enabled/cinder-wsgi.conf",
|
|
"owner": "cinder",
|
|
"perm": "0600"
|
|
}{% endif %}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/lib/cinder",
|
|
"owner": "cinder:cinder",
|
|
"recurse": true
|
|
},
|
|
{
|
|
"path": "/var/log/kolla/cinder",
|
|
"owner": "cinder:cinder",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|