-
Notifications
You must be signed in to change notification settings - Fork 154
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
Invalid api key
error is observed in CLI on running uninstall command for unenrolled agent.
#6711
Comments
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
@muskangulati-qasource Please review. |
Secondary review is Done for this ticket! |
Hey folks, |
Thank you for looking into this issue.
Screenshot:
Yes, the agent gets uninstalled even with this error. Please let us know if anything else is required from our end. |
Yes if agent was unenrolled from Fleet, agent's attempt at an uninstall notification will fail. We should probably modify this error to indicate it isn't a problem if agent was already unenrolled, perhaps we need to special case the invalid api key error in this case. CC @michel-laterman |
Thanks @amolnater-qasource for the additional information. |
Kibana Build details:
Preconditions:
Steps to reproduce:
sudo elastic-agent uninstall
invalid api key
error on running uninstall command.NOTE:
Expected Result:
Invalid api key
error should not be displayed in CLI on running uninstall command for unenrolled agent.Screenshot:
The text was updated successfully, but these errors were encountered: