Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
houska2 opened this issue Aug 12, 2024 · 1 comment
Open

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

houska2 opened this issue Aug 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@houska2
Copy link

houska2 commented Aug 12, 2024

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.

@houska2 houska2 added bug Something isn't working untriaged labels Aug 12, 2024
@dblock
Copy link
Member

dblock commented Sep 2, 2024

[Weekly Catch All Triage - 1]

@dblock dblock removed the untriaged label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants