Support agent available rollback fields#5975
Merged
pchila merged 10 commits intoelastic:mainfrom Dec 12, 2025
Merged
Conversation
8 tasks
529235c to
68867ee
Compare
68867ee to
79698cd
Compare
Contributor
|
I am actually good with this PR. I don't want to override @michalpristas comments about the available rollbacks, but if he also agrees to keep them seperate then I am +1 |
Contributor
|
I'm good with it paolo explained reasoning offline |
michalpristas
previously approved these changes
Dec 9, 2025
cmacknz
reviewed
Dec 9, 2025
cmacknz
reviewed
Dec 10, 2025
cmacknz
reviewed
Dec 10, 2025
Member
cmacknz
left a comment
There was a problem hiding this comment.
Looks good besides my one remaining comment.
When we are done with these changes, it would be good to update the horde drones to report as having available rollbacks so that the scale tests exercise these code paths.
8a1c4fd to
7009b95
Compare
7009b95 to
f026157
Compare
cmacknz
previously approved these changes
Dec 11, 2025
Merged
8 tasks
cmacknz
approved these changes
Dec 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the problem this PR solves?
This PR handles new
available_rollbacksfield sent by elastic-agent during checkin (implemented in PR elastic/elastic-agent#11143).This information will be consumed by the Fleet UI to allow a manual rollback of recently upgraded agents.
How does this PR solve the problem?
This PR introduces new
available_rollbacksfield both inCheckinRequestandpendingTstructs as a slice ofAvailableRollbacksand a JSON array of objects respectively.On Elasticsearch the documents in
.fleet-agentswill have a new fieldupgrade.rollbackssimilar to:How to test this PR locally
Refer to PR elastic/elastic-agent#11143
How to test this PR locallysection.Design Checklist
Checklist
./changelog/fragmentsusing the changelog toolRelated issues