elastic / elastic-agent

Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
Other
124 stars 134 forks source link

Agent service broken message is displayed while uninstalling development agent when first agent is uninstalled. #5229

Open amolnater-qasource opened 1 month ago

amolnater-qasource commented 1 month ago

Kibana Build details:

VERSION: 8.15.0 BC4
BUILD: 76261
COMMIT: 9d62937675e62265342e86d8f0db601dc75498b8

Artifact link: https://staging.elastic.co/8.15.0-a7432175/downloads/beats/elastic-agent/elastic-agent-8.15.0-linux-x86_64.tar.gz

Preconditions:

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

Steps to reproduce:

  1. Install agent and development agent.
  2. Now run sudo elastic-development-agent uninstall command.
  3. Observe no error for agent service broken is displayed.
  4. Now cancel the uninstallation and uninstall first agent using sudo elastic-agent uninstall command.
  5. Observe agent is uninstalled without any error now run sudo elastic-development-agent uninstall command.
  6. Observe message: Elastic Agent is installed but currently broken: service is not installed.

Expected Result: Agent service broken message should not be displayed while uninstalling development agent when first agent is uninstalled.

What's working fine:

Screenshots: image image image

elasticmachine commented 1 month ago

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

amolnater-qasource commented 1 month ago

@karanbirsingh-qasource Please review.

ghost commented 1 month ago

secondary review of this ticket is done