Java home directory does not include arch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Undecided
|
Doug Szumski |
Bug Description
During the build of the Elasticsearch image, the Dockerfile sets an env var specifying the Java home directory according to the required arch. The relevant code is:
```
{% if base_arch == 'x86_64' %}
ENV java_arch=amd64
{% elif base_arch == 'aarch64' %}
ENV java_arch=arm64
{% else %}
ENV java_arch={{ base_arch }}
{% endif %}
ENV JAVA_HOME /usr/lib/
```
This code sets the java_arch environment variable. Since this is not the java_arch Jinja variable, the JAVA_HOME env var does not contain the java_arch. For example:
```
INFO:kolla.
INFO:kolla.
INFO:kolla.
INFO:kolla.
INFO:kolla.
```
The expected behaviour is that the JAVA_HOME env var includes the arch.
Changed in kolla: | |
assignee: | nobody → Doug Szumski (dszumski) |
description: | updated |
Fix proposed to branch: master /review. openstack. org/581079
Review: https:/