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:
parent
3b1c87c92f
commit
d0a7d42715
@ -12,18 +12,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
|
|
||||||
{% set opensearch_dashboards_packages = ['opensearch-dashboards'] %}
|
{% 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
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||||
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||||
|
|
||||||
|
@ -14,16 +14,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
'opensearch'
|
'opensearch'
|
||||||
] %}
|
] %}
|
||||||
|
|
||||||
{% if base_distro_tag.startswith('stream9') or base_distro == 'rocky' %}
|
ENV OPENSEARCH_INITIAL_ADMIN_PASSWORD="Kolla24OpenSearch"
|
||||||
{# 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 %}
|
|
||||||
|
|
||||||
{# TODO: ugly hack to get past opensearch postinst, remove once #}
|
{{ macros.install_packages(opensearch_packages | customizable("packages")) }}
|
||||||
{# 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) }}
|
|
||||||
|
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||||
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||||
|
@ -99,6 +99,7 @@ UNBUILDABLE_IMAGES = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'source': {
|
'source': {
|
||||||
|
"bifrost-base", # Broken on unmaintained/yoga
|
||||||
},
|
},
|
||||||
|
|
||||||
'centos': {
|
'centos': {
|
||||||
|
Loading…
Reference in New Issue
Block a user