Policy for deletion after 90d stuck in evaluating transition conditions

Hi,
we have a policy that should delete indices after 90d:

{
    "policy_id": "delete_index_after_90_days",
    "description": "Delete Indices after 90 days.",
    "last_updated_time": 1637832853750,
    "schema_version": 1,
    "error_notification": null,
    "default_state": "default",
    "states": [
        {
            "name": "default",
            "actions": [],
            "transitions": [
                {
                    "state_name": "delete",
                    "conditions": {
                        "min_index_age": "90d"
                    }
                }
            ]
        },
        {
            "name": "delete",
            "actions": [
                {
                    "delete": {}
                }
            ],
            "transitions": []
        }
    ],
    "ism_template": [
        {
            "index_patterns": [
                "data-*"
            ],
            "priority": 100,
            "last_updated_time": 1637832853750
        }
    ]
}

However, we have indices that are about five to ten days older (I think that was when the initial setup occurred, so it looks like no deletion is happening at all). All indices that are older than 90 days should be deleted by now, however they are all in the ‘evaluating transition conditions’ phase and I do not know why, assuming the policy is correct. The output of

GET _opendistro/_ism/explain/data-2022.03.29

is the following:

{
  "data-2022.03.29" : {
    "index.opendistro.index_state_management.policy_id" : "delete_index_after_90_days",
    "index" : "data-2022.03.29",
    "index_uuid" : "XoUpTI1lTUG9fnTESLHtDw",
    "policy_id" : "delete_index_after_90_days",
    "policy_seq_no" : 82,
    "policy_primary_term" : 1,
    "state" : {
      "name" : "default",
      "start_time" : 1648514208500
    },
    "action" : {
      "name" : "transition",
      "start_time" : 1648515962655,
      "index" : -1,
      "failed" : false,
      "consumed_retries" : 0,
      "last_retry_time" : 0
    },
    "retry_info" : {
      "failed" : false,
      "consumed_retries" : 0
    },
    "info" : {
      "message" : "Evaluating transition conditions [index=data-2022.03.29]"
    }
  }
}
GET data-2022.03.29/_settings

results in:

{
  "data-2022.03.29" : {
    "settings" : {
      "index" : {
        "opendistro" : {
          "index_state_management" : {
            "policy_id" : "delete_index_after_90_days"
          }
        },
        "number_of_shards" : "5",
        "provided_name" : "<data-{now/d}>",
        "creation_date" : "1648512082052",
        "number_of_replicas" : "1",
        "uuid" : "XoUpTI1lTUG9fnTESLHtDw",
        "version" : {
          "created" : "7080099"
        }
      }
    }
  }
}

What am I missing?

Thanks :frowning:

Real quick is the cluster status red? That could cause this to not execute.

Actually, yea! Didn’t know that impacted index transitions, thank you very much :slight_smile: