-
Notifications
You must be signed in to change notification settings - Fork 188
Open
Labels
Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teamLabel for the Agent Control Plane team
Description
This issue implements the main part of the manual rollback feature.
Depends on #6883
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:
- there's an upgrade marker with
available_rollbacks
populated - the upgrade state is valid: ``UPG_WATCHING` (if Allow elastic-agent rollback in
UPG_WATCHING
state #6890 has been implemented already) or upgrade is complete
- there's an upgrade marker with
- write
desired_outcome: ROLLBACK
in the upgrade marker - start a watcher in case one isn't already running.
Metadata
Metadata
Assignees
Labels
Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teamLabel for the Agent Control Plane team