Skip to content

[BUG] ISM doesn't work with datastreams  #1227

Open
@houska2

Description

@houska2

What is the bug?
Simple ISM policy doesnt work with datastreams
I asked in forum and reply was to open this report

How can one reproduce the bug?
This policy should delete older datastreams.

{
    "id": "delete_after_7_days",
    "seqNo": 66941,
    "primaryTerm": 1,
    "policy": {
        "policy_id": "delete_after_7_days",
        "description": "Policy to delete indices older than 7 days",
        "last_updated_time": 1718804887897,
        "schema_version": 21,
        "error_notification": null,
        "default_state": "hot",
        "states": [
            {
                "name": "hot",
                "actions": [],
                "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": [
                    "*nonp_app*",
                    "*nonp_system*",
                    "*security-auditlog*"
                ],
                "priority": 2,
                "last_updated_time": 1718797014932
            }
        ]
    }
}

What is the expected behavior?
A clear and concise description of what you expected to happen.

What is your host/environment?
Debian opensearch 2.14.0

Do you have any screenshots?
f964c02d3d10982e92f1653bd18223990bbe52cb

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions