Unable to change managed index policy

Hello!

I want to update a rollover policy. The only changes are min_index_age and min_rollover_age values. The policy is:

{
    "policy_id": "rollover-policy",
    "default_state": "rollover",
    "states": [
           {
                   "name": "rollover",
                   "actions": [
                            {
                                "rollover": {
                                    "min_index_age": "1d"
                                }
                            }
                   ],
                   "transitions": [
                            {
                                "state_name": "delete",
                                "conditions": {
                                    "min_rollover_age": "14d"
                                }
                            }
                   ]
           },
           {
                   "name": "delete",
                   "actions": [
                            {
                                "delete": {}
                            }
                    ]
                    }
                ],
                "ism_template": [
                    {
                        "index_patterns": ["documents-*"]
                    }
                ]
            }

The documentation states that “in this case, even if the policy is in the middle of executing an action, ISM applies the new policy”. But when I am trying to change managed index policy to its new version I get error “Cannot change policy while transitioning to new state.” for indices that are in transition from “rollover” to “delete” state and are waiting for transition conditions to be met.

Is it possible to update min_rollover_age value for transition condition for indices that are already in transition step?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.