-
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] Test Elasticsearch deprecation logs generated by Fleet #120000
Comments
Pinging @elastic/fleet (Team:Fleet) |
@joshdover Thanks for filing this. Should this be on the iteration board or backlog? |
@joshdover I've started with #120044 which I think is the approach that will provide the richest context for Kibana developers about the origin of a deprecation. I hope to be able to streamline the whole process in the next week or so #120043 But if you want to be proactive you can find the fleet_api_integration test suites in the build output from #117937 If at the bottom of the fleet_api_integration output there aren't any deprecation logs you're good to go (similar to your instructions just don't have to run it locally) |
Wasn't sure when you put things into the Iteration board so I just put into Backlog for now since it wasn't an 8.0 FF item. Should we just go ahead and move it to Iteration? EDIT: nvm Julia already moved it :) |
I think it makes sense to add since we are working on it this iteration. |
@joshdover This is what I found so far. For the rest Rudolf's pr #120044 would help to track down the stacktrace. Fleet Integration tests
Manual testing
Deprecation logs from CI are here: #117937 , no specific fleet errors here either. Note: I couldn't fully run fleet_integration_tests locally, it starts breaking after some point with this error in ES logs:
Test output:
|
This is curious because Kibana already provides the Note that this warning says the error in on the |
Curious where this one is coming from. @juliaElastic does this happen when you install or upgrade the endpoint package? Wonder if we need to adjust any of our settings update or mapping update code to have the |
@joshdover yes, I tested with |
If it's not from package install, upgrade, or removal then I think we can let Security handle it. |
@joshdover I found the issue with the bad named fleet agent it's one of our fixture that contains a typo #120098 |
I've ran e2e-tests and didn't see any new deprecation logs (though some tests failed for me locally). |
@juliaElastic I think we can close this now unless there's any additional testing you think we need. |
@joshdover
|
Ok let's just close and if anything else comes up we'll address it. These warnings are going to be suppressed by Kibana anyways so it's not a release blocker. |
In order to improve the upgrade experience for 8.0, we should be sure Fleet's usage of Elasticsearch APIs do not generate any deprecation logs that could confuse the customer when trying to find deprecation usages in their own tooling. I don't currently expect Fleet to be an offender here since the code base is very new, but we check anyways.
This should be done on the 7.last release and should combine both automated and manual tests:
fleet_api_integration
FTR suitenode scripts/functional_test_runner.js --config x-pack/test/fleet_api_integration/config.ts
in one shell and after ES and Kibana have fully started, run follow the instructions in another shell to run the tests.After running any of these tests, we should query and log out all documents from the
.logs-deprecation.elasticsearch-default
data stream to and try to track down any Fleet-specific records. Example command (requires curl and jq):As I mentioned above, I don't expect Fleet to be an offender. But if needed, we may be able to use the x-opaque-id header feature that propogates to the deprecation logs (see docs below) somehow if we suspect we're adding anything. @rudolf any guidance on a way to get our plugin ID in to the
x-opaque-id
header we send to Elasticsearch?Helpful links:
The text was updated successfully, but these errors were encountered: