-
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
Not fixed in 8.9.1 / Integrations in multiple Kibana Spaces #164243
Comments
Pinging @elastic/fleet (Team:Fleet) |
@matthiasledergerber Could you please give more details on how the issue can be reproduced? |
@juliaElastic I can confirm this. After Upgrading this issue happens. Seems to be related with multiple kibana spaces and integrations. |
I could reproduce this on a 8.9.1 cluster, when installing the system integration in a non-default space, after kibana restart, the I did some investigation and noticed that the data views are being recreated in default space during the kibana saved object migration, that runs on every kibana restart. When I disabled this with Hey @elastic/kibana-core, could you confirm that this is an issue with SO migrations, that index patterns are not being migrated with the right namespace? Can it be fixed? Seeing this in kibana logs during the SO migration:
When I install the
|
Sorry, what's the difference between the two, here? |
When the package is installed in a non-default space, the |
I created #164454 to track the issue on Core's side |
After discussing internally, it seems we found the issue. The index patterns are created by Fleet without specifying a |
…ation version setting (#164456) ## Summary Closes #164243 Added a `typeMigrationVersion: '8.0.0'` to index patterns until #164454 is fixed. Related to #161969 Feedback from kibana core team, we should always set the migration version fields, even if `migrationVersion` is not set. It would be good to backport this to 8.9 too. How to test locally: - create a test space - install system integration in test space - restart kibana - verify that the index patterns `logs-*`, `metrics-*` are still in test space in Data Views UI ### Checklist - [ ] [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
…ation version setting (elastic#164456) ## Summary Closes elastic#164243 Added a `typeMigrationVersion: '8.0.0'` to index patterns until elastic#164454 is fixed. Related to elastic#161969 Feedback from kibana core team, we should always set the migration version fields, even if `migrationVersion` is not set. It would be good to backport this to 8.9 too. How to test locally: - create a test space - install system integration in test space - restart kibana - verify that the index patterns `logs-*`, `metrics-*` are still in test space in Data Views UI ### Checklist - [ ] [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 (cherry picked from commit 433d4f2)
…ix migration version setting (#164456) (#164484) # Backport This will backport the following commits from `main` to `8.10`: - [[Fleet] Fix index patterns being recreated in default space, fix migration version setting (#164456)](#164456) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julia Bardi","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-22T16:55:17Z","message":"[Fleet] Fix index patterns being recreated in default space, fix migration version setting (#164456)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/164243\r\nAdded a `typeMigrationVersion: '8.0.0'` to index patterns until\r\nhttps://github.com//issues/164454 is fixed.\r\n\r\nRelated to https://github.com/elastic/kibana/pull/161969\r\nFeedback from kibana core team, we should always set the migration\r\nversion fields, even if `migrationVersion` is not set.\r\n\r\nIt would be good to backport this to 8.9 too.\r\n\r\nHow to test locally:\r\n\r\n- create a test space\r\n- install system integration in test space\r\n- restart kibana\r\n- verify that the index patterns `logs-*`, `metrics-*` are still in test\r\nspace in Data Views UI\r\n\r\n### Checklist\r\n\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"433d4f21c39fa7c364e3275443f673360dda5d18","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v8.10.0","v8.11.0","v8.9.2"],"number":164456,"url":"https://github.com/elastic/kibana/pull/164456","mergeCommit":{"message":"[Fleet] Fix index patterns being recreated in default space, fix migration version setting (#164456)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/164243\r\nAdded a `typeMigrationVersion: '8.0.0'` to index patterns until\r\nhttps://github.com//issues/164454 is fixed.\r\n\r\nRelated to https://github.com/elastic/kibana/pull/161969\r\nFeedback from kibana core team, we should always set the migration\r\nversion fields, even if `migrationVersion` is not set.\r\n\r\nIt would be good to backport this to 8.9 too.\r\n\r\nHow to test locally:\r\n\r\n- create a test space\r\n- install system integration in test space\r\n- restart kibana\r\n- verify that the index patterns `logs-*`, `metrics-*` are still in test\r\nspace in Data Views UI\r\n\r\n### Checklist\r\n\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"433d4f21c39fa7c364e3275443f673360dda5d18"}},"sourceBranch":"main","suggestedTargetBranches":["8.10","8.9"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164456","number":164456,"mergeCommit":{"message":"[Fleet] Fix index patterns being recreated in default space, fix migration version setting (#164456)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/164243\r\nAdded a `typeMigrationVersion: '8.0.0'` to index patterns until\r\nhttps://github.com//issues/164454 is fixed.\r\n\r\nRelated to https://github.com/elastic/kibana/pull/161969\r\nFeedback from kibana core team, we should always set the migration\r\nversion fields, even if `migrationVersion` is not set.\r\n\r\nIt would be good to backport this to 8.9 too.\r\n\r\nHow to test locally:\r\n\r\n- create a test space\r\n- install system integration in test space\r\n- restart kibana\r\n- verify that the index patterns `logs-*`, `metrics-*` are still in test\r\nspace in Data Views UI\r\n\r\n### Checklist\r\n\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"433d4f21c39fa7c364e3275443f673360dda5d18"}},{"branch":"8.9","label":"v8.9.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Julia Bardi <[email protected]>
…ation version setting (elastic#164456) Closes elastic#164243 Added a `typeMigrationVersion: '8.0.0'` to index patterns until elastic#164454 is fixed. Related to elastic#161969 Feedback from kibana core team, we should always set the migration version fields, even if `migrationVersion` is not set. It would be good to backport this to 8.9 too. How to test locally: - create a test space - install system integration in test space - restart kibana - verify that the index patterns `logs-*`, `metrics-*` are still in test space in Data Views UI - [ ] [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
The fix is merged and will be included in 8.9.2 |
I can confirm this fix worked, however there seems to be another issue with the integrations in one of the latest upgrades. I'm not sure where the problem is exactly, it seems as the install/uninstall routine can get stuck becaused of saved object conflicts that lead to a reinstall loop. This fills Kibana spaces randomly with saved objects from the integration even if the integration wasn't installed into the Kibana space and furthermore it makes the integration stuck in the Fleet page even if there are no installed integrations anymore |
If you update or reinstall some Integrations and restart Kibana after this you get logs-* and metrics-* Data Views in the default Space. And logs-* and metrics-* is deleted in other Spaces.
Originally posted by @cemetery84 in #161804 (comment)
The text was updated successfully, but these errors were encountered: