Skip to content

[OpAMP] Support AcceptsRestartCommand #6818

@ycombinator

Description

@ycombinator

Describe the enhancement:

Add support to Fleet Server for sending restart commands to OpAMP clients that advertise AcceptsRestartCommand. This allows Fleet to trigger a managed agent restart on demand.

Capability advertisement vs. offering:

AcceptsRestartCommand has no corresponding Offers* bit on the server side — the server does not advertise a matching capability. However, Fleet Server MUST NOT send a restart command unless the client has advertised AcceptsRestartCommand in its most recent AgentToServer message. See the ServerToAgentCommand message section of the spec.

Testing:

This feature should be tested against an upstream OTel Collector (contrib distribution) managed by the OpAMP Supervisor. The supervisor does NOT advertise AcceptsRestartCommand by default — the supervisor config must set capabilities.accepts_restart_command: true. See the OpAMP Supervisor README for instructions on running the supervisor, and the OTel Collector contrib releases page for the collector binary.

Describe a specific use case for the enhancement or feature:

Fleet operators need to trigger a restart of a managed agent on demand — for example, to recover from a transient failure or to force a reload after a configuration change that requires a full restart.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions