opensearch-project/index-management-dashboards-plugin

[BUG] OpenSearch Dashboards displays incorrect cron expression for SM policies.

Opened this issue · 1 comments

What is the bug?
OpenSearch Dashboards displays incorrect cron expression for SM policies.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Create an SM policy with custom cron expression (ex: 0 0,8,16 * * *) using OpenSearch Dashboards.
  2. Click on the crated SM policy, dashboard displays:
    Frequency. Cron schedule
    Daily 12:00 am (UTC)

What is the expected behavior?
The dashboard should display something like this:
Frequency. Cron schedule
Custom 0 0,8,16 * * *

What is your host/environment?

  • AWS OpenSearch
  • Version : Experienced the same issue with versions 2.5, 2.7, 2.11
  • Plugins: SM

Do you have any screenshots?
image
Do you have any additional context?
Even though the dashboard shows an inaccurate cron expression, the API GET _plugins/_sm/policies/ returns correct cron expression, and the SM policy operates as intended, capturing snapshots three times daily in accordance with the cron expression (0 0,8,16 * * *).

Catch All Triage - 1 2 3 4 5 6