The Elastic Agent fails to update the fleet-server hosts when the first host is unreachable.
{"log.level":"error","@timestamp":"2022-09-27T13:38:46.667Z","log.origin":{"file.name":"fleet/fleet_gateway.go","file.line":202},"message":"failed to dispatch actions, error: fail to communicate with updated API client hosts: Get \"https://localhost:8220/api/status?\": dial tcp 127.0.0.1:8220: connect: connection refused","ecs.version":"1.6.0"}
The Elastic Agent fails to update the fleet-server hosts when the first host is unreachable.
Steps to Reproduce:
https://localhost:8220)Affected versions