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

Development agent gets unhealthy on adding Elastic Defend. when not added to the primary agent. #5007

Closed
amolnater-qasource opened this issue Jun 26, 2024 · 9 comments · Fixed by #5098
Labels
bug Something isn't working impact:medium Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@amolnater-qasource
Copy link

Kibana Build details:

VERSION: 8.15.0 SNAPSHOT
BUILD: 75674
COMMIT: c47f4833230ac0c14af5c4669d68ab41ceac4dd6

Preconditions:

  1. 8.15.0-SNAPSHOT Kibana cloud environment should be available.

Steps to reproduce:

  1. Install a primary agent with Agent policy 1.
  2. Install development agent with Agent policy 2.
  3. Now add Elastic Defend to Agent policy 2.
  4. Observe agent gets unhealthy on adding Elastic Defend to development agent.

Expected Result:
Development agent should remain healthy on adding Elastic Defend. when not added to the primary agent.

Screenshot:
image

Agent Logs:
elastic-agent-diagnostics-2024-06-26T09-29-38Z-00.zip

@amolnater-qasource amolnater-qasource added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team impact:medium labels Jun 26, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@amolnater-qasource
Copy link
Author

@manishgupta-qasource Please review.

@manishgupta-qasource
Copy link

Secondary Review for this ticket is Done

@amolnater-qasource
Copy link
Author

JFI @pierrehilbert

@pierrehilbert
Copy link
Contributor

As discussed earlier today I think this is an expected behavior (as Endpoint probably requires specific path to be able to work correctly) but @cmacknz will be able to confirm.

@cmacknz
Copy link
Member

cmacknz commented Jun 26, 2024

You should not be able to run Defend twice. You should be able to run Defend in the development agent when it is not in the primary agent.

@blakerouse
Copy link
Contributor

@cmacknz I don't believe that is true, because the development Elastic Agent will be installed into a slightly different path. Endpoint requires that Elastic Agent be installed at a specific location any deviation from that path will cause it not to work.

@jlind23
Copy link
Contributor

jlind23 commented Jun 26, 2024

Hence I believe it validates #5007 (comment) and this is indeed an expected behaviour. @pierrehilbert @cmacknz do you think we should document this somewhere?

@cmacknz
Copy link
Member

cmacknz commented Jul 2, 2024

I will document this in the readme section for the development agent. Internal uses will have the primary agent running elastic agent all the time, so it wouldn't work because of that anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working impact:medium Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants