When running elastic-agent as a co-located Fleet Server (FLEET_SERVER_ENABLE=1) in a container with the state directory persisted on a volume, the agent re-enrolls on every container restart, producing a new agent record and access API key each time. Previous enrollments become offline ghosts. The persisted state is never honored.
This is a single logical bug with two manifestations, both in shouldFleetEnroll(): the function does not understand the co-located Fleet Server topology and cannot correctly determine whether re-enrollment is needed.
For confirmed bugs, please report:
- Version: 8.19.18+
- Operating System: Containers
When running elastic-agent as a co-located Fleet Server (
FLEET_SERVER_ENABLE=1) in a container with the state directory persisted on a volume, the agent re-enrolls on every container restart, producing a new agent record and access API key each time. Previous enrollments become offline ghosts. The persisted state is never honored.This is a single logical bug with two manifestations, both in
shouldFleetEnroll(): the function does not understand the co-located Fleet Server topology and cannot correctly determine whether re-enrollment is needed.For confirmed bugs, please report: