Skip to content
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

[Fleet] Bulk unenroll API doesn't unenroll agents in Elastic Cloud #193782

Closed
kpollich opened this issue Sep 23, 2024 · 2 comments
Closed

[Fleet] Bulk unenroll API doesn't unenroll agents in Elastic Cloud #193782

kpollich opened this issue Sep 23, 2024 · 2 comments
Labels
Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@kpollich
Copy link
Member

To reproduce

  1. Create an Elastic Cloud environment
  2. Enroll a few agents and stop them
  3. Wait for the agents to become inactive
  4. Attempt to unenroll them e.g.
POST kbn:/api/fleet/agents/bulk_unenroll
{
  "includeInactive": true,
  "agents": "status:inactive",
  "force": true
}

Observe the agent action is stuck in in progress and never unenrolls the inactive agents.

Image

Image

@kpollich kpollich added the Team:Fleet Team label for Observability Data Collection Fleet team label Sep 23, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kpollich
Copy link
Member Author

Ah I was neglecting to include revoke: true in the API body - including this causes the API to work as expected. We should probably document this as it's a very common procedure.

@kpollich kpollich closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

No branches or pull requests

2 participants