Fix cinder-api ubuntu binary
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: I86ae3ec899e9b7b1ad9f727b9b9bb3549738f944
Closes-Bug: #1676751
(cherry picked from commit d14aadd65d
)
This commit is contained in:
parent
8cf8fb2599
commit
6a1629b0a7
|
@ -21,7 +21,9 @@ RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf
|
|||
'libapache2-mod-wsgi'
|
||||
] %}
|
||||
{{ macros.install_packages(cinder_api_packages | customizable("packages")) }}
|
||||
RUN echo > /etc/apache2/ports.conf
|
||||
RUN mkdir -p /var/www/cgi-bin/cinder \
|
||||
&& cp -a /usr/bin/cinder-wsgi /var/www/cgi-bin/cinder/cinder-wsgi \
|
||||
&& echo > /etc/apache2/ports.conf
|
||||
{% endif %}
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
|
@ -49,4 +51,9 @@ RUN chmod 755 /usr/local/bin/kolla_cinder_extend_start
|
|||
{% block cinder_api_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
|
||||
{% if install_type == 'binary' and base_distro in ['debian', 'ubuntu'] %}
|
||||
RUN chown -R cinder: /var/www/cgi-bin/cinder \
|
||||
&& chmod 755 /var/www/cgi-bin/cinder/cinder-wsgi
|
||||
{% else %}
|
||||
USER cinder
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue