Fix loading of Storm on Centos8 / Python 3

In the Centos8 images, Storm fails to start since it cannot find
Python. This patch ensures that it can by setting the PYTHON env
var.

Change-Id: If6663b2f6dfadfd6a6db5e4aaca4eb782b87161f
Closes-Bug: #1876461
This commit is contained in:
Doug Szumski 2020-05-23 16:23:09 +00:00 committed by Marcin Juszkiewicz
parent 039a6d431a
commit dcde7ffdd0
2 changed files with 12 additions and 0 deletions

View File

@ -42,6 +42,13 @@ RUN curl -sSL -o /tmp/storm.tgz ${storm_url} \
{% endblock %}
{% block storm_python_version %}
# NOTE(dszumski): Storm needs to be told where the Py3 interpreter lives
{% if distro_python_version.startswith('3') %}
ENV PYTHON={{ '/usr/bin/python' ~ distro_python_version }}
{% endif %}
{% endblock %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes an issue with loading Storm and Monasca Thresh when using
Centos8 containers.