-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Ingest Manager] Support for UPGRADE_ACTION #73069
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
This fits perfectly with the protocol I proposed so we can test it out locally - https://github.com/elastic/beats/pull/20146/files#diff-8c2bfe38adf296a51ff5fbe4b2ed2f0aR55 Perfect! |
Needing some clarification about how the agent upgrade works.
|
i think we should prevent getting into a situation of having disconnected agent by enabling agent.ver > fleet.ver |
We should not allow upgrade passed to current Kibana version, that way we do not need to worry about Downgrading needs to be possible, because there could be a situation where after an upgrade the results are not correct (even though Agent thinks everything is fine), and the user wants to revert the Agent back to it's previous version. I don't know if they need to ability to downgrade to any version, but back to the previous needs to be supported. I think if you upgrade from Kibana |
@blakerouse It is possible to enroll an agent version > kibana version if the patch version is higher: |
@neptunian based on comments from @ruflin I think that patched versions are allowed to be higher. |
@ph @ruflin Are we wanting to allow the user to specify as part of the Other than that, for simplicity's sake, I think they should be able to install any version so long as it passes validateAgentVersion described in #75176 (comment) . If we really want to restrict what they are allowed to downgrade (previous version only), we'll need to save that. As far as the verson kibana will send from the UI, it would be the same version as the kibana version they are on. |
Could we do that in a followup PRs? I would even be ok to default to the current Kibana version for first release. |
++ on fixing it the exact Kibana version for now. Also ++ on what Blake described that downgrades are only possible to the exact version the user had before as we know it was working and likely still have the binary around. |
we discussed the form of the action to be
version
is the target version agent should upgrade into,sourceURI
is the URI compatible with artifacts.elastic.co containing binaries, hashes and asc files.Upgrade action needs to work with snapshots as well, in this case action will look as following
Action will get ACKnowledged once upgrade operation is finished.
Agent will report state SUCCESS/FAILURE together with ACK
The text was updated successfully, but these errors were encountered: