-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Migrations v2 ignore fleet agent events #96690
Migrations v2 ignore fleet agent events #96690
Conversation
Pinging @elastic/kibana-core (Team:Core) |
@@ -101,7 +101,7 @@ export default function (providerContext: FtrProviderContext) { | |||
); | |||
}); | |||
|
|||
it('should create or update the fleet_enroll user if called multiple times with forceRecreate flag', async () => { | |||
it.skip('should create or update the fleet_enroll user if called multiple times with forceRecreate flag', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elastic/fleet @nchaulet somehow this test is failing when I remove fleet-agent-events
. The same test also fails on master if I enable v1 migrations for this test with the following:
--- a/x-pack/test/fleet_api_integration/config.ts
+++ b/x-pack/test/fleet_api_integration/config.ts
@@ -65,6 +65,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
kbnTestServer: {
...xPackAPITestsConfig.get('kbnTestServer'),
serverArgs: [
+ '--migrations.enableV2=false',
...xPackAPITestsConfig.get('kbnTestServer.serverArgs'),
...(registryPort ? [`--xpack.fleet.registryUrl=http://localhost:${registryPort}`] : []),
],
We're targeting 7.12.1 for this fix, so please take a look and let me know if it's possible to fix this test or if we should skip it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's okay to skip it, we are going to remove that API in 7.13.
Pinging @elastic/fleet (Team:Fleet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 LGTM! Just added a NIT about term
vs. terms
. According to https://discuss.elastic.co/t/term-vs-terms-filter/15533, the only difference in performance is caching. Since, ideally, we should be running this once, I guess it makes no difference.
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
* migrationsv2: ignore fleet agent events and tsvb telemetry * migrationsv1: ignore tsvb-validation-telemetry * Skip fleet test that depends on fleet-agent-events * Fix typescript errors Co-authored-by: Kibana Machine <[email protected]>
💔 Backport failed
Successful backport PRs will be merged automatically after passing CI. To backport manually run: |
* migrationsv2: ignore fleet agent events and tsvb telemetry * migrationsv1: ignore tsvb-validation-telemetry * Skip fleet test that depends on fleet-agent-events * Fix typescript errors Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Rudolf Meijering <[email protected]>
* migrationsv2: ignore fleet agent events and tsvb telemetry * migrationsv1: ignore tsvb-validation-telemetry * Skip fleet test that depends on fleet-agent-events * Fix typescript errors Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # src/core/server/saved_objects/migrationsv2/integration_tests/actions.test.ts
…sted sessions (#96938) (#96892) * Migrations v2 ignore fleet agent events (#96690) * migrationsv2: ignore fleet agent events and tsvb telemetry * migrationsv1: ignore tsvb-validation-telemetry * Skip fleet test that depends on fleet-agent-events * Fix typescript errors Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # src/core/server/saved_objects/migrationsv2/integration_tests/actions.test.ts * Correctly fix merge conflicts * Skip failing fleet-agent-events tests * Skip security solution endpoint telemetry tests depending on fleet-agent-events so's * Exclude non-persisted sessions from SO migration (#96938) (cherry picked from commit bfd5b7b) * use `any` for estypes.QueryContainer Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Pierre Gayvallet <[email protected]>
👍 🥇 💯 |
Summary
Ignore fleet-agent-events and tsvb-validation-telemetry saved objects from both v1 and v2 migrations.
Fixes #95617
Fixes #91869
Release notes
Users who tried the fleet agent beta in 7.10 might have hundreds of thousands of
fleet-agent-events
in their.kibana
index. Due to the large volume of documents, upgrades to 7.12 would frequently fail for these users. In 7.12.1 we drop allfleet-agent-events
during the upgrade migration to address this problem. Thefleet-agent-events
documents are still left in the older.kibana_N
index from previous versions, once the upgrade has succeeded we recommend deleting these indices to recover the disk space, see https://www.elastic.co/guide/en/kibana/current/upgrade-migrations.html#upgrade-migrations-old-indicesChecklist
Delete any items that are not applicable to this PR.
For maintainers