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

User is unable to uninstall mac agent if x86_64 architecture agent is installed using Elastic Defend integration on mac with ARM architecture. #5966

Open
amolnater-qasource opened this issue Nov 7, 2024 · 6 comments
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.16.0 BC3
BUILD: 79556
COMMIT: f02d1303b5230c357ac7e4c49c8adadd5f66af38

Artifact Link: https://staging.elastic.co/8.16.0-485065f1/downloads/beats/elastic-agent/elastic-agent-8.16.0-darwin-x86_64.tar.gz

Preconditions:

  1. 8.16.0-BC3 Kibana cloud environment should be available.

Steps to reproduce:

  1. Install mac x86_64 architecture agent is installed using Elastic Defend integration on mac with ARM architecture.
  2. Run agent uninstall command- sudo elastic-agent uninstall.
  3. Observe user is not able to uninstall agent.

Expected Result:
User should be able to uninstall mac agent if x86_64 architecture agent is installed using Elastic Defend integration on mac with ARM architecture.

Screenshot:
Image

Agent Logs:
[aarch uninstall]elastic-agent-diagnostics-2024-11-06T08-56-14Z-00.zip

What's working fine:

  • On removing Elastic Defend integration user is able to uninstall elastic-agent.
@amolnater-qasource amolnater-qasource added bug Something isn't working impact:medium Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Nov 7, 2024
@elasticmachine
Copy link
Contributor

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

@amolnater-qasource
Copy link
Author

@muskangulati-qasource Please review.

@muskangulati-qasource
Copy link

Secondary review is Done for this ticket!

@ycombinator
Copy link
Contributor

@amolnater-qasource Is this bug reproducible with Elastic Agent 8.15.3? Just wondering if it's a regression.

@amolnater-qasource
Copy link
Author

Hi @ycombinator

We have revalidated this issue for Elastic Agent- v8.15.3 and found it reproducible there too.

Observations:

  • User is unable to uninstall mac agent if x86_64 architecture agent is installed using Elastic Defend integration on mac with ARM architecture.

Logs:
elastic-agent-diagnostics-2024-11-12T04-33-14Z-00.zip

Screenshot:
Image

Artifact Link:
https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.15.3-darwin-x86_64.tar.gz

Please let us know if anything else is required from our end.

Thanks!!

@cmacknz
Copy link
Member

cmacknz commented Nov 12, 2024

I don't think defend supports running x86 emulated binaries on arm, we probably should never have let defend install at all. Then we wouldn't have to deal with uninstalling it.

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

No branches or pull requests

5 participants