ISM Policy - Still Initializing

Hello everyone,

For the last couple of days i have been working on configuring the Index State Management in order to delete unwanted indices from the cluster.

After a couple of attempts with different policies and different approaches (either API or UI) the result is the same. Every single managed index is stuck on “Still Initializing, please wait a moment.” For your information, im also trying to delete the old indices created days before.

Im following the documentation step by step and i create the policies, the template etc but nothing happens. Is there any way to test them straight away? For example create a policy that would delete them if they are 1h or more old.

I would really appreciate if someone can provide some help here. Please find the policy below.

Thanks in advance
Dimitris

{
    "policy_id": "delete_after_7d",
    "description": "Maintains the indices open by 1 day, then closes those and delete indices after 6 days",
    "last_updated_time": 1632127244467,
    "schema_version": 1,
    "error_notification": null,
    "default_state": "ReadWrite",
    "states": [
        {
            "name": "ReadWrite",
            "actions": [
                {
                    "read_write": {}
                }
            ],
            "transitions": [
                {
                    "state_name": "ReadOnly",
                    "conditions": {
                        "min_index_age": "1d"
                    }
                }
            ]
        },
        {
            "name": "ReadOnly",
            "actions": [
                {
                    "read_only": {}
                }
            ],
            "transitions": [
                {
                    "state_name": "Delete",
                    "conditions": {
                        "min_index_age": "6d"
                    }
                }
            ]
        },
        {
            "name": "Delete",
            "actions": [
                {
                    "notification": {
                        "destination": {
                            "slack": {
                                "url": ""
                            }
                        },
                        "message_template": {
                            "source": "The index {{ctx.index}} is being deleted",
                            "lang": "mustache"
                        }
                    }
                },
                {
                    "delete": {}
                }
            ],
            "transitions": []
        }
    ],
    "ism_template": null
}

Hello all again,

Finally i found the issue. Even though all the indices that i wanted to apply the policy were in Green Status, there was a different one that was in Red Status and it was preventing me to initialize the policy.

Thanks for your time anyway. Hope that my post will help others.

Best Regards
Dimitris