Pin OpenSearch Dashboards to 2.15

OpenSearch Dashboards 2.16.0 discover page hangs after initial
deployment due to an upstream bug [1].

This change fixes the issue by pinning OpenSearch Dashboards to 2.15.

Note that it seemed safer not to pin OpenSearch to fix this issue, to
avoid breaking deployments that have already deployed 2.16.

[1] https://github.com/opensearch-project/OpenSearch-Dashboards/issues/7626

Closes-Bug: #2077319
Change-Id: I0de9928b2657ab5f31580325e866bff28f2b5510
This commit is contained in:
Mark Goddard 2024-08-19 11:29:06 +01:00
parent 3c130f290e
commit 3c49991a86
3 changed files with 26 additions and 1 deletions

View File

@ -10,7 +10,20 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.configure_user(name='opensearch-dashboards', shell='/bin/bash', homedir='/usr/share/opensearch-dashboards') }}
{{ macros.enable_extra_repos(['opensearch-dashboards']) }}
{% set opensearch_dashboards_packages = ['opensearch-dashboards'] %}
# NOTE(mgoddard): Pinning to 2.15 due to https://bugs.launchpad.net/kolla/+bug/2077319
{% if base_package_type == 'deb' %}
COPY apt_preferences_opensearch_dashboards /etc/apt/preferences.d/opensearch_dashboards
{% endif %}
{% if base_package_type == 'rpm' %}
{% set opensearch_dashboards_packages = [
'opensearch-dashboards-2.15.*'
] %}
{% elif base_package_type == 'deb' %}
{% set opensearch_dashboards_packages = [
'opensearch-dashboards'
] %}
{% endif %}
{{ macros.install_packages(opensearch_dashboards_packages | customizable("packages")) }}

View File

@ -0,0 +1,3 @@
Package: opensearch-dashboards
Pin: version 2.15.*
Pin-Priority: 1000

View File

@ -0,0 +1,9 @@
---
fixes:
- |
Fixes an `issue
<https://github.com/opensearch-project/OpenSearch-Dashboards/issues/7626>`__
in the OpenSearch Dashboards image where the discover page would hang after
initial deployment when there is no index pattern. This has been resolved
by reverting OpenSearch Dashboards to version 2.15.
`LP#2077319 <https://bugs.launchpad.net/kolla/+bug/2077319>`__