Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Handle rollback command/action in upgrade flow #6889

Open
pchila opened this issue Feb 17, 2025 · 0 comments
Open

Handle rollback command/action in upgrade flow #6889

pchila opened this issue Feb 17, 2025 · 0 comments
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@pchila
Copy link
Member

pchila commented Feb 17, 2025

This issue implements the main part of the manual rollback feature.

When the agent receives a manual rollback request via an action or an elastic-agent upgrade command it should:

  • enter the upgrade entrypoint with a flag indicating that this is a rollback request
  • skip all the download, extraction, copying of agent artifacts, creation of the upgrade marker
  • verify that the state is valid for a rollback:
  • write (safely, using the necessary file locks) desired_outcome: ROLLBACK in the upgrade marker
  • start a watcher in case one isn't already running.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

2 participants