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

elastic-agent uninstall command is unable to uninstall the elastic-agent on endpoint #21247

Closed
ghost opened this issue Sep 23, 2020 · 5 comments
Assignees
Labels
bug impact:high Short-term priority; add to current release, or definitely next.

Comments

@ghost
Copy link

ghost commented Sep 23, 2020

Kibana version:
Kibana: 8.0.0-SNAPSHOT

Elasticsearch version:
Elasticsearch: 8.0.0-SNAPSHOT

Host OS and Browser version:
Windows 10 , All

Original install method (e.g. download page, yum, from source, etc.):
From 8.0.0-SNAPSHOT on staging cloud environment https://staging.found.no/

Description
elastic-agent uninstall command is unable to uninstall the elastic-agent on endpoint

Preconditions

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

Steps to Reproduce

  1. Open the 8.0.0-SNAPSHOT Kibana cloud environment in browser.
  2. Download the 8.0.0 agent from artifact link(https://console.cloud.google.com/storage/browser/beats-ci-artifacts/pull-requests/pr-21206/elastic-agent?pageState=(%22StorageObjectListTable%22:(%22f%22:%22%255B%255D%22))&prefix=&forceOnObjectsSortingFiltering=false)
  3. RDP to the endpoint and place the agent.
  4. Unarchive the agent
  5. Open powershell as admin and run the command for interactive mode:
    ./elastic-agent install
  6. Observe that installation is successful on endpoint but agent is unable to enroll into fleet.
  7. Now run the elastic-agent uninstall command and observe that agent is still running.
    Message displayed: can only be uninstall by executing the installed Elastic Agent at: C:\Program Files\Elastic\Agent\elastic-agent.exe

Test data
N/A

Impacted Test case id
N/A

Actual Result
[Ingest Management]: elastic-agent uninstall command is unable to uninstall the elastic-agent

Expected Result
[Ingest Management]: elastic-agent uninstall command should be able to uninstall the elastic-agent

What's working

  • N/A

What's not working

  • Issue is also occurring for mac and linux

Screenshot
Untitled

Logs
N/A

@ghost ghost added the bug label Sep 23, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 23, 2020
@ghost ghost added Team:Ingest Management and removed needs_team Indicates that the issue/PR needs a Team:* label labels Sep 23, 2020
@elasticmachine
Copy link
Collaborator

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

@ghost ghost added the impact:high Short-term priority; add to current release, or definitely next. label Sep 23, 2020
@ghost
Copy link
Author

ghost commented Sep 23, 2020

@muskangulati-qasource Please review the bug.

@muskangulati-qasource
Copy link

Reviewed & assigned to @EricDavisX

@blakerouse
Copy link
Contributor

This is correct behavior. As it states you must perform:

C:\Program Files\Elastic\Agent\elastic-agent.exe uninstall

A non-installed Elastic Agent cannot uninstall an installed agent.

@ghost
Copy link
Author

ghost commented Nov 25, 2020

Bug Conversion:

Testcase already exists for this ticket.
https://elastic.testrail.io/index.php?/cases/view/33951

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug impact:high Short-term priority; add to current release, or definitely next.
Projects
None yet
Development

No branches or pull requests

4 participants