Index setting "plugins" : { "index_state_management" : { "auto_manage" : "false" } creating problem

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
1.2.4

Describe the issue:
I installed opensearch with index_management enabled. I have few indices in my cluster, all indices were in green state and i do not have this parameter
“plugins” : {
“index_state_management” : {
“auto_manage” : “false”
}
in any of the index setting.

Later i restarted opensearch ,then i got that setting in 2 of the indices.

This setting is causing problem when i rollback to Opensearch version where i disabled ISM. Those 2 indices are in red state after rollback.

Can anyone please help if there is any way we can delete this particular parameter from the index setting?

Relevant Logs or Screenshots:
bash-4.4$ esRest GET /logs-2024.02.01/_settings?pretty
{
“logs-2024.02.01” : {
“settings” : {
“index” : {
“refresh_interval” : “1s”,
“number_of_shards” : “5”,
“plugins” : {
“index_state_management” : {
“auto_manage” : “false”
}
},
“provided_name” : “logs-2024.02.01”,
“creation_date” : “1706785252346”,
“unassigned” : {
“node_left” : {
“delayed_timeout” : “3m”
}
},
“number_of_replicas” : “1”,
“uuid” : “QUU-DLtrTMSf20sN0aHQkL”,
“version” : {
“created” : “135238227”
}
}
}
}
}

You can reset the setting to null by this:

PUT logs-2024.02.01/_settings
{
  "plugins": {
    "index_state_management": {
      "auto_manage": null
    }
  }
}

Hi @gaobinlong , i reset it and it worked. Thanks.
But without removing any policy on that index, why that parameter is showing up after i restart the pods?
Can you clarify me here?

Did you check that setting before you restart the pods? I think that setting was set when you configured ISM policy for the new created indices in OpenSearch with ISM plugin installed.

Hi @gaobinlong , i checked the setting of that index before restart, it was not there.
Is there anyway it created due to any conflict of any setting?

Hi @gaobinlong ,
If we are removing policy manually from an index, we are getting this parameter in setting of that particular index.

“plugins” : {
“index_state_management” : {
“auto_manage” : “false”
}

But if we add policy manually to that index again, still this setting is appeared, until i set it to null manually.
Why cant this parameter is removed when we reapply the policy to that index?
Can i get help here?

This maybe a bug, could you help to open an issue here:Issues · opensearch-project/index-management · GitHub?