Skip to content

[index lifecycle management] Cloned managed ilm policies shouldn't be marked as managed#248586

Merged
mattkime merged 5 commits intomainfrom
ilm_dupe_managed_policies
Jan 12, 2026
Merged

[index lifecycle management] Cloned managed ilm policies shouldn't be marked as managed#248586
mattkime merged 5 commits intomainfrom
ilm_dupe_managed_policies

Conversation

@mattkime
Copy link
Contributor

@mattkime mattkime commented Jan 11, 2026

Summary

This pr fixes the case where a managed index lifecycle management policy is duplicated and shows as managed. It will now be unmanaged.

Closes #248524

@mattkime mattkime self-assigned this Jan 11, 2026
@mattkime mattkime added Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// bug Fixes for quality problems that affect the customer experience release_note:fix labels Jan 11, 2026
@mattkime mattkime changed the title when cloning a managed policy, the clone should _not_ be managed Jan 11, 2026
@mattkime mattkime marked this pull request as ready for review January 11, 2026 17:45
@mattkime mattkime requested a review from a team as a code owner January 11, 2026 17:45
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

@mattkime mattkime added the backport:version Backport to applied version labels label Jan 11, 2026
Copy link
Contributor

@SoniaSanzV SoniaSanzV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested locally, lgtm!

@mattkime mattkime enabled auto-merge (squash) January 12, 2026 11:43
@mattkime mattkime merged commit 6ea176a into main Jan 12, 2026
13 checks passed
@mattkime mattkime deleted the ilm_dupe_managed_policies branch January 12, 2026 17:09
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.2, 9.3

https://github.com/elastic/kibana/actions/runs/20928196589

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #100 / Cloud Security Posture POST /internal/cloud_security_posture/graph Happy flows Enrich graph with entity metadata should enrich graph with multiple targets from different fields with mixed grouping
  • [job] [logs] FTR Configs #90 / Cloud Security Posture Security Network Page - Graph visualization ECS fields only expanded flyout - entity enrichment for multiple actors and targets
  • [job] [logs] FTR Configs #47 / Serverless Common UI - Management Index Management Index Details can view index details can add mappings

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
indexLifecycleManagement 146.2KB 146.3KB +70.0B

History

cc @mattkime

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jan 12, 2026
… marked as managed (elastic#248586)

## Summary

This pr fixes the case where a managed index lifecycle management policy
is duplicated and shows as managed. It will now be unmanaged.

Closes elastic#248524

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 6ea176a)
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jan 12, 2026
… marked as managed (elastic#248586)

## Summary

This pr fixes the case where a managed index lifecycle management policy
is duplicated and shows as managed. It will now be unmanaged.

Closes elastic#248524

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 6ea176a)
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jan 12, 2026
… marked as managed (elastic#248586)

## Summary

This pr fixes the case where a managed index lifecycle management policy
is duplicated and shows as managed. It will now be unmanaged.

Closes elastic#248524

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 6ea176a)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.2
9.3

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jan 12, 2026
…n't be marked as managed (#248586) (#248726)

# Backport

This will backport the following commits from `main` to `9.3`:
- [[index lifecycle management] Cloned managed ilm policies shouldn't be
marked as managed
(#248586)](#248586)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Matthew
Kime","email":"matt@mattki.me"},"sourceCommit":{"committedDate":"2026-01-12T17:09:15Z","message":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed (#248586)\n\n## Summary\n\nThis pr fixes the case where a
managed index lifecycle management policy\nis duplicated and shows as
managed. It will now be unmanaged.\n\nCloses
https://github.com/elastic/kibana/issues/248524\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ea176aee22424d4c1693eb5bbac0fe445d55d05","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Kibana
Management","backport:version","v9.3.0","v9.4.0","v9.2.5","v8.19.11"],"title":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed","number":248586,"url":"https://github.com/elastic/kibana/pull/248586","mergeCommit":{"message":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed (#248586)\n\n## Summary\n\nThis pr fixes the case where a
managed index lifecycle management policy\nis duplicated and shows as
managed. It will now be unmanaged.\n\nCloses
https://github.com/elastic/kibana/issues/248524\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ea176aee22424d4c1693eb5bbac0fe445d55d05"}},"sourceBranch":"main","suggestedTargetBranches":["9.3","9.2","8.19"],"targetPullRequestStates":[{"branch":"9.3","label":"v9.3.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/248586","number":248586,"mergeCommit":{"message":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed (#248586)\n\n## Summary\n\nThis pr fixes the case where a
managed index lifecycle management policy\nis duplicated and shows as
managed. It will now be unmanaged.\n\nCloses
https://github.com/elastic/kibana/issues/248524\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ea176aee22424d4c1693eb5bbac0fe445d55d05"}},{"branch":"9.2","label":"v9.2.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.11","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Matthew Kime <matt@mattki.me>
tsullivan pushed a commit that referenced this pull request Jan 12, 2026
… marked as managed (#248586)

## Summary

This pr fixes the case where a managed index lifecycle management policy
is duplicated and shows as managed. It will now be unmanaged.

Closes #248524

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jan 13, 2026
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @mattkime

kibanamachine added a commit that referenced this pull request Jan 13, 2026
…n't be marked as managed (#248586) (#248725)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[index lifecycle management] Cloned managed ilm policies shouldn't be
marked as managed
(#248586)](#248586)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Matthew
Kime","email":"matt@mattki.me"},"sourceCommit":{"committedDate":"2026-01-12T17:09:15Z","message":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed (#248586)\n\n## Summary\n\nThis pr fixes the case where a
managed index lifecycle management policy\nis duplicated and shows as
managed. It will now be unmanaged.\n\nCloses
https://github.com/elastic/kibana/issues/248524\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ea176aee22424d4c1693eb5bbac0fe445d55d05","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Kibana
Management","backport:version","v9.3.0","v9.4.0","v9.2.5","v8.19.11"],"title":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed","number":248586,"url":"https://github.com/elastic/kibana/pull/248586","mergeCommit":{"message":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed (#248586)\n\n## Summary\n\nThis pr fixes the case where a
managed index lifecycle management policy\nis duplicated and shows as
managed. It will now be unmanaged.\n\nCloses
https://github.com/elastic/kibana/issues/248524\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ea176aee22424d4c1693eb5bbac0fe445d55d05"}},"sourceBranch":"main","suggestedTargetBranches":["9.3","9.2","8.19"],"targetPullRequestStates":[{"branch":"9.3","label":"v9.3.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/248586","number":248586,"mergeCommit":{"message":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed (#248586)\n\n## Summary\n\nThis pr fixes the case where a
managed index lifecycle management policy\nis duplicated and shows as
managed. It will now be unmanaged.\n\nCloses
https://github.com/elastic/kibana/issues/248524\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ea176aee22424d4c1693eb5bbac0fe445d55d05"}},{"branch":"9.2","label":"v9.2.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.11","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Matthew Kime <matt@mattki.me>
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @mattkime

3 similar comments
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @mattkime

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @mattkime

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @mattkime

kibanamachine added a commit that referenced this pull request Jan 20, 2026
…dn't be marked as managed (#248586) (#248724)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[index lifecycle management] Cloned managed ilm policies shouldn't be
marked as managed
(#248586)](#248586)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Matthew
Kime","email":"matt@mattki.me"},"sourceCommit":{"committedDate":"2026-01-12T17:09:15Z","message":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed (#248586)\n\n## Summary\n\nThis pr fixes the case where a
managed index lifecycle management policy\nis duplicated and shows as
managed. It will now be unmanaged.\n\nCloses
https://github.com/elastic/kibana/issues/248524\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ea176aee22424d4c1693eb5bbac0fe445d55d05","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Kibana
Management","backport:version","v9.3.0","v9.4.0","v9.2.5","v8.19.11"],"title":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed","number":248586,"url":"https://github.com/elastic/kibana/pull/248586","mergeCommit":{"message":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed (#248586)\n\n## Summary\n\nThis pr fixes the case where a
managed index lifecycle management policy\nis duplicated and shows as
managed. It will now be unmanaged.\n\nCloses
https://github.com/elastic/kibana/issues/248524\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ea176aee22424d4c1693eb5bbac0fe445d55d05"}},"sourceBranch":"main","suggestedTargetBranches":["9.3","9.2","8.19"],"targetPullRequestStates":[{"branch":"9.3","label":"v9.3.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/248586","number":248586,"mergeCommit":{"message":"[index
lifecycle management] Cloned managed ilm policies shouldn't be marked as
managed (#248586)\n\n## Summary\n\nThis pr fixes the case where a
managed index lifecycle management policy\nis duplicated and shows as
managed. It will now be unmanaged.\n\nCloses
https://github.com/elastic/kibana/issues/248524\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"6ea176aee22424d4c1693eb5bbac0fe445d55d05"}},{"branch":"9.2","label":"v9.2.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.11","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Matthew Kime <matt@mattki.me>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v8.19.11 v9.2.4 v9.2.5 v9.3.0 v9.4.0

4 participants