opensearch: set OPENSEARCH_INITIAL_ADMIN_PASSWORD

Since 2.12 OpenSearch requires setting initial admin password,
that is not trivial/weak.

Change [1] has been bundled with this commit, since it's an ancestor
in newer branches, but it won't build without this one.

Mark bifrost as unbuildable for now, see [2].

[1]: https://review.opendev.org/c/openstack/kolla/+/909823
[2]: https://review.opendev.org/c/openstack/bifrost/+/909844

Closes-Bug: #2054586

Change-Id: I6b6ef656bc2009a2dc3cdfcb01956d50fba4b7b9
(cherry picked from commit 756ee984c3)
This commit is contained in:
Michal Nasiadka 2024-02-21 11:10:30 +01:00
parent 3b1c87c92f
commit d0a7d42715
3 changed files with 3 additions and 21 deletions

View File

@ -12,18 +12,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set opensearch_dashboards_packages = ['opensearch-dashboards'] %}
{% if base_distro_tag.startswith('stream9') or base_distro == 'rocky' %}
{# TODO: OpenSearch will move from SHA1 in 2.8 release, remove this once 2.8 is out #}
RUN update-crypto-policies --set DEFAULT:SHA1
{% endif %}
{# TODO: ugly hack to get past opensearch postinst, remove once #}
{# https://github.com/opensearch-project/opensearch-build/pull/3435 gets merged #}
{# and packages get rebuilt #}
RUN touch /usr/bin/systemd-tmpfiles && chmod a+rx /usr/bin/systemd-tmpfiles \
&& {{ macros.install_packages(opensearch_dashboards_packages | customizable("packages"), chain=True) }} \
&& rm -f /usr/bin/systemd-tmpfiles
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start

View File

@ -14,16 +14,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'opensearch'
] %}
{% if base_distro_tag.startswith('stream9') or base_distro == 'rocky' %}
{# TODO: OpenSearch will move from SHA1 in 2.8 release, remove this when 2.8 is out #}
RUN update-crypto-policies --set DEFAULT:SHA1
{% endif %}
ENV OPENSEARCH_INITIAL_ADMIN_PASSWORD="Kolla24OpenSearch"
{# TODO: ugly hack to get past opensearch postinst, remove once #}
{# https://github.com/opensearch-project/opensearch-build/pull/3435 gets merged #}
{# and packages get rebuilt #}
RUN touch /usr/bin/systemd-tmpfiles && chmod a+rx /usr/bin/systemd-tmpfiles \
&& {{ macros.install_packages(opensearch_packages | customizable("packages"), chain=True) }}
{{ macros.install_packages(opensearch_packages | customizable("packages")) }}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start

View File

@ -99,6 +99,7 @@ UNBUILDABLE_IMAGES = {
},
'source': {
"bifrost-base", # Broken on unmaintained/yoga
},
'centos': {