Skip to content

[BUG] ISM plugin doesn't recognize convert_index_to_remote action type (blank policy details page) #1430

Description

@cmklem

What is the bug?
When an ISM policy contains the convert_index_to_remote action (introduced in OpenSearch 3.5.0), attempting to view that policy in the Dashboards plugin results in a blank page. The error in browser dev tools:

Error: Action type [convert_index_to_remote] not supported
    at ActionRepository.getUIAction (indexManagementDashboards.plugin.js:7:2932121)
    at ActionRepository.getUIActionFromData (indexManagementDashboards.plugin.js:7:2931940)
    at indexManagementDashboards.plugin.js:7:1675261
    at Array.map (<anonymous>)
    at State (indexManagementDashboards.plugin.js:7:1674951)
    at og (osd-ui-shared-deps.js:1:1598318)
    at l (osd-ui-shared-deps.js:1:1659178)
    at sF (osd-ui-shared-deps.js:1:1638855)
    at sP (osd-ui-shared-deps.js:1:1638725)
    at sS (osd-ui-shared-deps.js:1:1635496)
Uncaught Error: Action type [convert_index_to_remote] not supported
    at ActionRepository.getUIAction (indexManagementDashboards.plugin.js:7:2932121)
    at ActionRepository.getUIActionFromData (indexManagementDashboards.plugin.js:7:2931940)
    at indexManagementDashboards.plugin.js:7:1675261
    at Array.map (<anonymous>)
    at State (indexManagementDashboards.plugin.js:7:1674951)
    at og (osd-ui-shared-deps.js:1:1598318)
    at l (osd-ui-shared-deps.js:1:1659178)
    at sF (osd-ui-shared-deps.js:1:1638855)
    at sP (osd-ui-shared-deps.js:1:1638725)
    at sS (osd-ui-shared-deps.js:1:1635496)

The policy and API behave fine, but the UI does not support the new action type.

How can one reproduce the bug?

  1. Create an ISM policy with the convert_index_to_remote action.
  2. Dashboards > Index Management > State management policies (policies are listed)
  3. Click the policy just created.
  4. A page loads but, apart from the Dashboards header, there is no content. If the policy does not contain convert_index_to_remote, it loads as expected.

What is the expected behavior?
The page should load successfully and display policy details.

What is your host/environment?

  • OS: (e.g.) Ubuntu 24.04
  • OpenSearch: 3.6.0 (deb)
  • OpenSearch Dashboards: 3.6.0 (deb)
  • Plugins: ISM, repository-s3

Do you have any screenshots?
Image
Image

Do you have any additional context?

A fix could consist of registering a new action type convert_index_to_remote in the Dashboards plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions