You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the bug?
Index-management plugin is installed in Opensearch. No policies are created yet, so the index .opendistro-ism-config does not exist yet.
Listing ism policies does not fail, and prints an empty list.
However, listing snapshot-management policies throws an exception due to absence of the index.
curl 127.0.0.1:9200/_plugins/_sm/policies
{"error":{"root_cause":[{"type":"status_exception","reason":"Snapshot management config index not found"}],"type":"status_exception","reason":"Snapshot management config index not found"},"status":404}
How can one reproduce the bug?
Steps to reproduce the behavior:
Install Opensearch with index-management plugin
After the cluster is ready (healthy), run the above mentioned GET cmds to list ism and sm policies.
See error while listing sm policies.
What is the expected behavior?
Like ism policies, even the sm api could respond with an empty list, instead of an exception.
What is your host/environment?
OS: Windows 10
Version 2.8 (latest branch)
Plugins
The text was updated successfully, but these errors were encountered:
Hi
The expectation is consistent behaviour between ism and sm policies. Either both APIs must throw similar exception when the index does not exist, or both should return an empty list.
Request feedback from repo maitainers to decide next steps for this issue,
Hi,
Request feedback from maintainers on whether the requested change is valid/desirable from the plugin's design, and if yes, I would be interested to pick this item to contribute.
Hi,
Gentle reminder: Request feedback from maintainers on this issue.
If this change is desirable, I would be interested to start working on the PR. I have already identified a potential fix.
What is the bug?
Index-management plugin is installed in Opensearch. No policies are created yet, so the index .opendistro-ism-config does not exist yet.
Listing ism policies does not fail, and prints an empty list.
However, listing snapshot-management policies throws an exception due to absence of the index.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Like ism policies, even the sm api could respond with an empty list, instead of an exception.
What is your host/environment?
The text was updated successfully, but these errors were encountered: