Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.18.0(was 2.11.0)
Describe the issue:
I have a cluster 2.18.0 (was 2.11.0). And created simple ILM policy. And policy work only with action rollover by age. And didn’t work with min_size or min_primary_shard_size. I got “Pending rollover of index”. And min_index_age is updating every 5m. But other conditions didn’t.
Manual rollover is work. I recreated policy. Update cluster from 2.11.0 to 2.18.0
{
“message”: “Pending rollover of index [index=haproxy-000020]”,
“conditions”: {
“min_primary_shard_size”: {
“condition”: “20mb”,
“current”: “449.1kb”,
“shard”: 0
},
“min_index_age”: {
“condition”: “1h”,
“current”: “35.2m”,
“creationDate”: 1738242827385
}
}
}
Configuration:
ILM policy
{
“id”: “haproxy_policy”,
“seqNo”: 8685576,
“primaryTerm”: 9,
“policy”: {
“policy_id”: “haproxy_policy”,
“description”: “A sample description of the policy”,
“last_updated_time”: 1738239138610,
“schema_version”: 21,
“error_notification”: null,
“default_state”: “init_state”,
“states”: [
{
“name”: “init_state”,
“actions”: [
{
“retry”: {
“count”: 3,
“backoff”: “exponential”,
“delay”: “1m”
},
“rollover”: {
“min_index_age”: “1h”,
“min_primary_shard_size”: “20mb”,
“copy_alias”: false
}
}
],
“transitions”: [
{
“state_name”: “delete”,
“conditions”: {
“min_index_age”: “7d”
}
}
]
},
{
“name”: “delete”,
“actions”: [
{
“retry”: {
“count”: 3,
“backoff”: “exponential”,
“delay”: “1m”
},
“delete”: {}
}
],
“transitions”:
}
],
“ism_template”: [
{
“index_patterns”: [
“haproxy-*”
],
“priority”: 10,
“last_updated_time”: 1738222922062
}
]
}
}
Relevant Logs or Screenshots: