[Fleet] Use type@lifecycle ILMs for new package installs#241992
[Fleet] Use type@lifecycle ILMs for new package installs#241992juliaElastic merged 60 commits intoelastic:mainfrom
Conversation
…atus --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/maintenance_window --include-path /api/agent_builder --update
…tion_tests/ci_checks
…tion_tests/ci_checks
…tion_tests/ci_checks
…tion_tests/ci_checks
…atus --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/maintenance_window --include-path /api/agent_builder --update
…tion_tests/ci_checks
Good idea, we can do that. The difference would be that for each package installation we would check the migration status for all types (logs, metrics, synthetics), not only for those data stream types that are part of the package. I think it should be fine, we want to do the migration sooner than later. |
azasypkin
left a comment
There was a problem hiding this comment.
The PR adds a new migration to the GLOBAL_SETTINGS_SAVED_OBJECT_TYPE (ingest_manager_settings) saved object type that doesn't seem to be an encrypted saved object, so LGTM from the security perspective.
…atus --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/maintenance_window --include-path /api/agent_builder --update
| }); | ||
|
|
||
| export const SettingsSchemaV5 = schema.object({ | ||
| has_seen_add_data_notice: schema.maybe(schema.boolean()), |
There was a problem hiding this comment.
There's a property defined in the mappings but not in the schema, not sure if it's intentional: fleet_server_hosts: { type: 'keyword' }
There was a problem hiding this comment.
I think it's a deprecated field that's no longer used in the SettingsSchema.
It was removed from the API here: https://github.com/elastic/kibana/pull/198799/files#diff-928c69c436a8c2e0ba247288a26603a901701e6ca70b2db67a22e3ed757efb68
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
|
) ## Summary Closes elastic/ingest-dev#6082 Start using `type@lifecycle` ILM policies when installing new packages and record migration status. To test: - install a package e.g. system - verify that the migration status is saved - verify that the `type@lifecycle` ILM policies are used ``` [2025-11-11T10:21:53.722+01:00][INFO ][plugins.fleet] Saving ILM migration status changes: [["logs","success"],["metrics","success"],["synthetics",null]] GET .kibana_ingest/_doc/ingest_manager_settings:fleet-default-settings "_source": { "ingest_manager_settings": { "prerelease_integrations_enabled": true, "use_space_awareness_migration_status": "success", "ilm_migration_status": { "logs": "success", "metrics": "success" } }, ``` <img width="1658" height="813" alt="image" src="https://github.com/user-attachments/assets/750e0127-6e75-481b-a159-0e3432893ab7" /> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [ ] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ### Identify risks Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss. Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging. - [ ] [See some risk examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) - [ ] ... --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co>
Summary
Closes https://github.com/elastic/ingest-dev/issues/6082
Start using
type@lifecycleILM policies when installing new packages and record migration status.To test:
type@lifecycleILM policies are usedChecklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.Identify risks
Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.
Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.