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

[Ingest Manager] When I unenroll the Agent it doesn't disappear from UI (remains in unenrolling state) #20006

Closed
EricDavisX opened this issue Jul 16, 2020 · 10 comments · Fixed by elastic/kibana#72386
Assignees
Labels
Ingest Management:beta1 Group issues for ingest management beta1

Comments

@EricDavisX
Copy link
Contributor

[Ingest Manager] When I unenroll the Agent it doesn't disappear from UI (remains in unenrolling state)

For confirmed bugs, please report:

  • Version: 7.9 near-BC1 snapshot (from 7/15 afternoon) - kibana commit: e5eadb02
    Agent is from 7/16 Beats CI build.
    image:

Screen Shot 2020-07-16 at 4 18 33 PM

  • Operating System:
    Win 7 x64

  • Steps to Reproduce:
    TL;DR;
    install agent.
    unenroll agent.

...
Details:
I used Cloud to install the stack... I'll post more

api:
api-call-seems-ok

before unenroll:
before

after unenroll:
after-unenroll

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ingest-management (Team:Ingest Management)

@michalpristas
Copy link
Contributor

do you have agent logs available? did ACK to action arrived?

@EricDavisX
Copy link
Contributor Author

I hear Nicolas mention he is brewing a PR for this, its reproduced and being handled.

@ph
Copy link
Contributor

ph commented Jul 20, 2020 via email

@EricDavisX
Copy link
Contributor Author

EricDavisX commented Jul 20, 2020

Hi - I see that the 'force unenroll' is coming in ticket elastic/kibana#72386 , but that's more of a 'save me' option instead of the normal flow of an Agent successfully enrolling, there may yet be a bug here.

@michalpristas here are some logs, from a centos7 unenroll that didnt work:

request looks usual:
Request URL: https://b034192bc7194df8a82b4b440dd1f323.europe-west1.gcp.cloud.es.io:9243/api/ingest_manager/fleet/agents/c0426c1d-59de-40f4-a4a7-f037291aeb96/unenroll

log:
linux-unenroll.log

unenroll...
unenroll-option

then stuck for 3 mins, logs were not growing and UI seemed stuck.
unenrolling-stuck-3-mins

I can note that a Win7 x86 host I unenrolled actually worked - if that helps. : /

@ph
Copy link
Contributor

ph commented Jul 21, 2020

@blakerouse This seems to be a timeout issue that we were discussing this morning.

@blakerouse
Copy link
Contributor

So I looked at this from the Agent side as well, even with timeouts on all 3 sub-applications, endpoint-security, filebeat, and metricbeat my Agent still unenrolled.

I tested this on Windows 10 7.9 BC2.

It did take a bit, probably 2 minutes for it to fully complete once it finished all the timeouts, but it still was marked Unenrolled and was removed from the UI.

@michalpristas
Copy link
Contributor

same here results on my end. i will try few more tests with local agent and cloud UI but i expect same result.

@EricDavisX
Copy link
Contributor Author

if you're both using BC2 code strictly, then there may be some other factor at play. we could list out what specifics we are doing with the config? the big one is Endpoint. Did you both have Endpoint successfully deployed to the host in your config when you unenrolled? @blakerouse @michalpristas ?

Maybe things will work better in BC3, too - there have been changes to the unenroll and other places in Ingest and a ton on Endpoint and Kibana-endpoint side... we can re-test in a day, if nothing else, and report back

@blakerouse
Copy link
Contributor

@EricDavisX Yes I specifically test with Endpoint enabled and disabled, both worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ingest Management:beta1 Group issues for ingest management beta1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants