# Unable to change managed index policy

**URL:** <https://forum.opensearch.org/t/unable-to-change-managed-index-policy/17678>\
**Category:** Index Management\
**Created:** [February 1, 2024, 12:08pm UTC](https://forum.opensearch.org/t/unable-to-change-managed-index-policy/17678 "2024-02-01T12:08:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSNikolaevich](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@SSNikolaevich](https://forum.opensearch.org/u/SSNikolaevich)\
**Post date:** [February 1, 2024, 12:08pm UTC](https://forum.opensearch.org/t/unable-to-change-managed-index-policy/17678/1 "2024-02-01T12:08:33Z")

</div>

Hello!

I want to update a rollover policy. The only changes are min\_index\_age and min\_rollover\_age values. The policy is:

```auto
{
    "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](https://opensearch.org/docs/latest/im-plugin/ism/managedindexes/#change-policy) 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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [April 1, 2024, 12:09pm UTC](https://forum.opensearch.org/t/unable-to-change-managed-index-policy/17678/2 "2024-04-01T12:09:22Z")

</div>

Closed on April 1, 2024, 12:09pm UTC

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