Skip to content

Improve human-readability of ILM timing error message #70336

@cjcenizal

Description

@cjcenizal

In #70089 we added guardrails to protect against ILM policies being created with phase timings that would result in phases running out of order.

For example, let's say the user tries to save a policy configured with a the warm phase that runs 3 days after rollover, a cold phase that runs 2 days after rollover, and a delete phase that runs 1 day after rollover. The API would reject this policy with this error:

phases [cold,delete] configure a [min_age] value less than the [min_age] of [3d] for the [warm] phase, configuration: {cold=2d, delete=1d}

The UI team hasn't budgeted time to replicate this error-checking logic in the UI, so for the time being we'll surface the API error directly to the user. Can we make it more human-readable? For example:

Your policy is configured to run the cold phase (min_age: 2 days) and the delete phase (min_age: 1 day) before the warm phase (min_age: 3 days). Change the phase timing so that the phases will execute in the order of hot, warm, then cold.

CC @dakrone @debadair @jloleysens

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions