[Framework bug] Fleet policy changes are not handled correctly, restart required to "sync" state #2992
Labels
bug
Something isn't working
effort:medium
epic:agentless
good first issue
Good for newcomers
priority:medium
v9.0.0
Bug Description
If we change the connector id in fleet policy, e.g.
from connector
xd-123
toxd-456
the agent component will detect this change correctly, but since the only input has been change we will only receive delta event from checkin agent protocol call, see:
We are not receiving any (net new) ES output, so our logic disregards this update and doesn't update config, nor create the new connector doc with new ID. This because we always assume to receive new ES output in update https://github.com/elastic/connectors/blob/main/connectors/agent/protocol.py#L134
If we restart the agent component stuff works fine (and we end up creating xd-456 connector)
To Reproduce
Steps to reproduce the behavior:
TO do
Make it work with delta updates of policy
The text was updated successfully, but these errors were encountered: