opensearch-project / index-management

🗃 Automate periodic data operations, such as deleting indices at a certain age or performing a rollover at a certain size
https://opensearch.org/docs/latest/im-plugin/index/
Apache License 2.0
52 stars 107 forks source link

[BUG] ISM Policy validation does not turn on #978

Open kinseii opened 9 months ago

kinseii commented 9 months ago

What is the bug? I'm trying to enable ISM Policy validation (here docs), but OpenSearch gives me an error:

PUT /_cluster/settings?pretty=true
{
   "persistent" : {
      "plugins.index_state_management.validation_action.enabled" : true
   }
}

Answer:

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "persistent setting [plugins.index_state_management.validation_action.enabled], not recognized"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "persistent setting [plugins.index_state_management.validation_action.enabled], not recognized"
  },
  "status": 400
}

What is the expected behavior? Validation should enable, according to the documentation: https://opensearch.org/docs/latest/im-plugin/ism/api/#error-prevention-validation

Plugins

opensearch-alerting                  2.9.0.0
opensearch-anomaly-detection         2.9.0.0
opensearch-asynchronous-search       2.9.0.0
opensearch-cross-cluster-replication 2.9.0.0
opensearch-geospatial                2.9.0.0
opensearch-index-management          2.9.0.0
opensearch-job-scheduler             2.9.0.0
opensearch-knn                       2.9.0.0
opensearch-ml                        2.9.0.0
opensearch-neural-search             2.9.0.0
opensearch-notifications             2.9.0.0
opensearch-notifications-core        2.9.0.0
opensearch-observability             2.9.0.0
opensearch-performance-analyzer      2.9.0.0
opensearch-reports-scheduler         2.9.0.0
opensearch-security                  2.9.0.0
opensearch-security-analytics        2.9.0.0
opensearch-sql                       2.9.0.0
repository-s3                        2.9.0

What is your host/environment?

kinseii commented 6 months ago

bump

dblock commented 1 month ago

@kinseii Sorry for chiming in so late. Is this still an issue? Want to try and write a (failing) test that reproduces this problem?

[Triage -- attendees 1, 2, 3, 4, 5, 6, 7]

kinseii commented 1 month ago

@kinseii Sorry for chiming in so late. Is this still an issue? Want to try and write a (failing) test that reproduces this problem?

Hi! I just checked on OpenSearch version 2.12 and the error remain.