Skip to content

Commit

Permalink
Pin OpenSearch Dashboards to 2.15
Browse files Browse the repository at this point in the history
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] opensearch-project/OpenSearch-Dashboards#7626

Closes-Bug: #2077319
Change-Id: I0de9928b2657ab5f31580325e866bff28f2b5510
(cherry picked from commit 3c49991)
  • Loading branch information
markgoddard committed Sep 9, 2024
1 parent 4df43ab commit a58a7f8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docker/opensearch/opensearch-dashboards/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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")) }}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Package: opensearch-dashboards
Pin: version 2.15.*
Pin-Priority: 1000
9 changes: 9 additions & 0 deletions releasenotes/notes/bug-2077319-a47a06175a589a1a.yaml
Original file line number Diff line number Diff line change
@@ -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>`__

0 comments on commit a58a7f8

Please sign in to comment.