Skip to content

Handle rollback command/action in upgrade flow #6889

@pchila

Description

@pchila

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:
  • write desired_outcome: ROLLBACK in the upgrade marker
  • start a watcher in case one isn't already running.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions