-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to unenroll an Elastic Agent from the client side #125
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
we should be able to mitigate some of this with plans in place already for 'bulk actions' coming soon; wherein you can select all of the stranded agents, and then do the clicks just once a day or once a week (etc) to get rid of cruft in the UI. I like the idea of having more support on the Agent side, I'm not sure if there are technical reasons it wasn't implemented or considered prior - but we can evaluate it and put it to the roadmap, etc. thanks for logging! |
@ruflin Can you look into this, I think its related to the higher discussion concerning how we work with container. |
I like the idea of having an @jamiesmith Is there an option in docker to have a special call on teardown? If not, an option could also be that an Agent is started with a flag |
I am running it with a shell script in the container, so I would just set up an exit trap, which I verified works (except for a force stop). |
Oh, the ephemeral option is good too |
@ruflin I think |
Good point, lets say you have laptop It would be weird to allow someone to |
I'm not sure the permission to unenroll is always tied to On top of setting it in the policy, it could also be part of capabilities elastic/beats#21096 A user could probably work around it by stopping and agent, change capabilities and restart it. But that is something the system at least would see. |
@blakerouse Can you take a look at this? A bit related to the k8s story. |
Will look into it, think it is related to uninstall. Both could probably be solved at once. |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Closing for now as it never was prioritized. Can be reopened later on if needed. cc @nimarezainia |
I am a little flabbergasted, why an uninstall does not include an unenroll. There should at least be both options available. |
@ulab we would prefer to rely on our state machine to unenrol the agent from Fleet when the un-installation at the remote host has occurred. When uninstalled, the agent will miss checkins and transition to OFFLINE and INACTIVE and eventually removed. these changes have been implemented i the upcoming release. |
Describe the enhancement:
Currently there's no way to unenroll an elastic-agent from the client side
Describe a specific use case for the enhancement or feature:
When running ephemeral instances (containers, for example) each can enroll, but when the container is stopped we end up with stranded offline instances in fleet, which then takes two commands per host on the Fleet screen (unenroll and force unenroll, because they never unenroll), for a total of 6 clicks, plus delays, for each host.
If there were an
unenroll
subcommand for./elastic-agent
it could be called in the container teardownThe text was updated successfully, but these errors were encountered: