Skip to content

Fleet Server bootstrap is broken on containers; re-enrolls on every container restart #15971

Description

@blakerouse

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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions