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 / Agent] when persistent agent 'install' is rebooted on darwin system, not all Beats are restarted #21451

Closed
EricDavisX opened this issue Oct 1, 2020 · 7 comments
Assignees
Labels

Comments

@EricDavisX
Copy link
Contributor

[Fleet / Agent] when persistent agent 'install' is rebooted on darwin system, not all Beats are restarted

related to #21424 which is for the Elastic Endpoint port. This is just for the other beats, tho the cause may be related (tbd), logging separately for safety.

tested with latest 8.0 Agent + Kibana
agent:
https://snapshots.elastic.co/8.0.0-f437c552/downloads/beats/elastic-agent/elastic-agent-8.0.0-SNAPSHOT-darwin-x86_64.tar.gz

kibana, commit: 5aa3fb5e0634c84ae3521de6cad663585d7b01ae, from date: Wed Sep 30 19:04:22 2020 -0600

Tested on darwin 10.15.6 (19G2021)

download the agent and unzip.
install kibana via cloud
use the (not yet shown in the UI) steps to install, as:

then add Endpoint to the policy
then wait 5-10 mins for it to all come on line
do a 'ps ax | grep elastic' to see all of the Beats running, from the default config options (4)
then reboot the machine.
see that only 1 beat comes back with Agent (Endpoint concern is logged separately)

screenshots:
before reboot, after install and policy change and 5 min wait:
Screen Shot 2020-10-01 at 1 40 15 PM

after reboot:
Screen Shot 2020-10-01 at 1 39 59 PM

note we have a test that covers this, but not sufficiently - we need help to implement the test, see:
elastic/e2e-testing#218

@elasticmachine
Copy link
Collaborator

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

@ph ph added the bug label Oct 1, 2020
@ph
Copy link
Contributor

ph commented Oct 1, 2020

@EricDavisX This is with a latest snapshot?

@blakerouse Can you take a look?

@EricDavisX
Copy link
Contributor Author

Yes, PH.

Here are the logs, and I acknowledge some errors there are known, and even expected since I ran against my own laptop (unadvised) and Mac SIP protections are in place (which explains the failed Endpoint policy)

darwin-agent.log

@EricDavisX
Copy link
Contributor Author

@rahulgupta-qasource please hold off on doing more install tests for reboot until after this is fixed. you can still test basic initial stand-alone mode install, and we can test 'upgrade' when its available (soon).

@ghost
Copy link

ghost commented Oct 5, 2020

Hi Eric

Thank you for the update.

We have hold on the install tests for reboot validated the basic initial stand-alone mode install under #21019 ticket.

We will test the 'upgrade' tests once they are available.

@blakerouse
Copy link
Contributor

@EricDavisX Is this still reproducable? I think this was because of the action_store.yaml issue that is now fixed.

@EricDavisX
Copy link
Contributor Author

indeed this looks fixed to me - tested on 7.10 BC2 on a catalina darwin host. i feel ok to close this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants