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

Allow elastic-agent upgrade to start when in UPG_ROLLBACK_AVAILABLE state by cleaning up the available rollback #6892

Open
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

Elastic Agent upgrade must be allowed even if there is a rollback available:

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

verify that the state is valid for an upgrade:

  • either there is no upgrade marker, upgrade can proceed as normal
  • or there is an upgrade marker indicating that the previous update has completed (state is UPG_ROLLBACK_AVAILABLE and completed_at is populated

If the upgrade is allowed, the agent should:

  • clean up the existing rollback installations first
  • remove the upgrade marker and ensure that watcher processes are not running or scheduled
  • proceed to download and unpack artifacts as usual
@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Feb 18, 2025
# 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