Opensearch datasource plug-in index pattern is misconfigured

Bug #2039500 reported by Dawud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Status tracked in Caracal
Bobcat
In Progress
Undecided
Unassigned
Caracal
Fix Released
Undecided
Dawud

Bug Description

In ansible/roles/grafana/defaults/main.yml we have specified a YYYY.MM.DD pattern for the index (flog-YYYY.MM.DD):

```
grafana_data_sources:
<...Removed irrelevant code...>
  opensearch:
    enabled: "{{ enable_opensearch | bool }}"
    data:
      name: "opensearch"
      type: "grafana-opensearch-datasource"
      access: "proxy"
      url: "{{ opensearch_internal_endpoint }}"
      jsonData:
        flavor: "elasticsearch"
        database: "[flog-]YYYY.MM.DD"
        version: "7.0.0"
        timeField: "@timestamp"

However this does not work out of the box. When you go to the datasource section of Grafana and click "Save and test" with these defaults, it fails with `OpenSearch error: no such index [[flog-]YYYY.MM.DD]`

Revision history for this message
Dawud (dawudm) wrote :
Changed in kolla-ansible:
assignee: nobody → Dawud (dawudm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/898736

Dawud (dawudm)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)
Changed in kolla-ansible:
status: New → In Progress
Dawud (dawudm)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/913320
Committed: https://opendev.org/openstack/kolla-ansible/commit/9afc9da22621cc808287874915ab3c1305592d15
Submitter: "Zuul (22348)"
Branch: master

commit 9afc9da22621cc808287874915ab3c1305592d15
Author: Dawud <email address hidden>
Date: Fri Mar 15 10:49:51 2024 +0000

    Update Grafana OpenSearch datasource configuration

    Updates the Grafana OpenSearch datasource configuration to use values
    for OpenSearch that work out of the box.

    Closes-Bug: #2039500
    Change-Id: Id9c7e59e6ae1dd98176c68b14a2aff1985306751

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/917097

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.