-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Newly created Enrollment Tokens are not working to fully deploy an Agent (no Beats come on line) #81214
Comments
Pinging @elastic/kibana-test-triage (failed-test) |
Pinging @elastic/ingest-management (Team:Ingest Management) |
@mdelapenya thank you for looking at this with @michalpristas and raising it. |
a 'ps ax' call on the test mac shows nothing is running except core Agent process: Agent logs |
api call used for new policy, POST to /api/fleet/agent_policies?sys_monitoring=true with response including the newly created policy ID: api call used to create new token, POST to /api/fleet/enrollment-api-keys command line used for install: I don't know how to check for ACL or permissions problems on the Agent side when its using the token and starting up Beats. Anyone help confirm that? Because the default policy can have new enrollment tokens created against it and THOSE seem to work, it seems to feel ACL related to me. |
There is a bug on Kibana side the AgentAction Policy change (that is the config build for the agent) is generated before the system package is added to the config, I am working on a fix. |
we can re-test this in the e2e-testing framework as well as manually when the next builds come out (may not be in 7.10 BC3, may need to wait for BC4, tbd) |
Kibana version:
7.10 BC2 as deployed via Cloud on cloud-staging env
Browser version:
macOS Chrome
Describe the bug:
when using the default policy, new enrollment tokens can be used, but when using newly created policies, new enrollment tokens do not successfully deploy Agent. They do not result in an Agent with the expected Beats (it does come 'online' and look to be doing something... but it doesn't do much). Agent shows a 'policy config change' item in the Activity Log, but then... nothing else at all, ever.
Pre-reqs:
Steps to reproduce:
NOTE our e2e automated test finds this, and is using linux Agents on various versions.
Expected behavior:
The new enrollment token would work just like others to successfully start up beats on Agent deploys
Screenshots (if relevant):
![Screen Shot 2020-10-20 at 1 14 20 PM](https://user-images.githubusercontent.com/12970373/96623283-243b4780-12d9-11eb-8daf-7ecd16bc7509.png)
Errors in browser console (if relevant):
none in browser console or on UI
Provide logs and/or server output (if relevant):
Any additional context:
somewhat relating to #81041
we have tests for this on the Kibana side:
https://github.com/elastic/kibana/blob/4a160bff8013146280c22a022ce6d8e2a4aea842/x-pack/test/ingest_manager_api_integration/apis/fleet/enrollment_api_keys/crud.ts
this is also being reported in the e2e-testing repository in a number of failed cases, hence the 'failed-test' label
I can do some research to see if it worked in 7.9 to help narrow when it began, and i'll post API calls to ensure usage as well as Agent logs.
The text was updated successfully, but these errors were encountered: