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.
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:
AcceptsRestartCommandhas no correspondingOffers*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 advertisedAcceptsRestartCommandin its most recentAgentToServermessage. 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
AcceptsRestartCommandby default — the supervisor config must setcapabilities.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.