-
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
[Fleet] Integration update fails when changing subobjects
property
#193044
Comments
Pinging @elastic/fleet (Team:Fleet) |
@jsoriano thanks for the workaround. Did the following in the dev console for the OOTB Okta integration and it worked.
|
@jsoriano @kpollich We stumbled on the same issue when changed the top level mapping to
The workaround for Okta https://support.elastic.dev/knowledge/view/1a2f83e7 mentions that this will be resolved in 8.17 |
From what I can tell, this issue hasn't been addressed, I can still reproduce it in 8.17 snapshots. I am reproducing it with elastic-package, from the integrations repository:
And then trying to upgrade from the UI.
I think this issue was indeed originally planned for 8.17, but it seems to be in the backlog now 🤔 |
I tried to reproduce the issue on local (latest main) by installing Could reproduce now by installing version 2.11.0 and then installing 2.12.0.
Interestingly when upgrading to
|
…202689) ## Summary Closes elastic#193044 The previously added `subobjectsFieldChanged` check was not picking up the subobjects change in this case (okta integration), maybe because it is in dynamic template mappings. Added an additional condition to pick up on the `mapper_exception` with subobjects mentioned in the reason. To verify: - install okta-2.11.0 integration - upgrade to okta-2.12.0 - expect upgrade successful, the data stream should be rolled over ``` POST kbn:/api/fleet/epm/packages/okta/2.11.0 { "force": true } POST logs-okta.system-default/_doc { "message": "abc", "@timestamp": "2024-05-30T07:50:00.000Z" } POST kbn:/api/fleet/epm/packages/okta/2.12.0 { "force": true } GET logs-okta.system-default/_mapping ``` ### Checklist - [x] [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 1edcb62)
…202689) ## Summary Closes elastic#193044 The previously added `subobjectsFieldChanged` check was not picking up the subobjects change in this case (okta integration), maybe because it is in dynamic template mappings. Added an additional condition to pick up on the `mapper_exception` with subobjects mentioned in the reason. To verify: - install okta-2.11.0 integration - upgrade to okta-2.12.0 - expect upgrade successful, the data stream should be rolled over ``` POST kbn:/api/fleet/epm/packages/okta/2.11.0 { "force": true } POST logs-okta.system-default/_doc { "message": "abc", "@timestamp": "2024-05-30T07:50:00.000Z" } POST kbn:/api/fleet/epm/packages/okta/2.12.0 { "force": true } GET logs-okta.system-default/_mapping ``` ### Checklist - [x] [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 1edcb62)
…202689) ## Summary Closes elastic#193044 The previously added `subobjectsFieldChanged` check was not picking up the subobjects change in this case (okta integration), maybe because it is in dynamic template mappings. Added an additional condition to pick up on the `mapper_exception` with subobjects mentioned in the reason. To verify: - install okta-2.11.0 integration - upgrade to okta-2.12.0 - expect upgrade successful, the data stream should be rolled over ``` POST kbn:/api/fleet/epm/packages/okta/2.11.0 { "force": true } POST logs-okta.system-default/_doc { "message": "abc", "@timestamp": "2024-05-30T07:50:00.000Z" } POST kbn:/api/fleet/epm/packages/okta/2.12.0 { "force": true } GET logs-okta.system-default/_mapping ``` ### Checklist - [x] [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
…202689) ## Summary Closes elastic#193044 The previously added `subobjectsFieldChanged` check was not picking up the subobjects change in this case (okta integration), maybe because it is in dynamic template mappings. Added an additional condition to pick up on the `mapper_exception` with subobjects mentioned in the reason. To verify: - install okta-2.11.0 integration - upgrade to okta-2.12.0 - expect upgrade successful, the data stream should be rolled over ``` POST kbn:/api/fleet/epm/packages/okta/2.11.0 { "force": true } POST logs-okta.system-default/_doc { "message": "abc", "@timestamp": "2024-05-30T07:50:00.000Z" } POST kbn:/api/fleet/epm/packages/okta/2.12.0 { "force": true } GET logs-okta.system-default/_mapping ``` ### Checklist - [x] [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
…202689) ## Summary Closes elastic#193044 The previously added `subobjectsFieldChanged` check was not picking up the subobjects change in this case (okta integration), maybe because it is in dynamic template mappings. Added an additional condition to pick up on the `mapper_exception` with subobjects mentioned in the reason. To verify: - install okta-2.11.0 integration - upgrade to okta-2.12.0 - expect upgrade successful, the data stream should be rolled over ``` POST kbn:/api/fleet/epm/packages/okta/2.11.0 { "force": true } POST logs-okta.system-default/_doc { "message": "abc", "@timestamp": "2024-05-30T07:50:00.000Z" } POST kbn:/api/fleet/epm/packages/okta/2.12.0 { "force": true } GET logs-okta.system-default/_mapping ``` ### Checklist - [x] [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
Same issue as reported in #183496 for custom integrations is happening also for integrations distributed in packages, as reported in elastic/integrations#10972.
As mentioned in the latter issue, this can be reproduced by trying to update from Okta 2.11.0 to 2.12.0.
On these cases a rollover should be performed by Fleet on upgrade.
Current workaround is to update the package using the install API with
ignoreMappingUpdateErrors=true
and rollover the data stream. For example for a local environment and thelogs-okta.system-69312
data stream:The text was updated successfully, but these errors were encountered: