-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Ingest-Management]: Agent with Online, Offline status also appears under "Show Inactive" filter results. #73237
Comments
@rahulgupta-qasource : Please review and assigned the issue. |
Pinging @elastic/ingest-management (Team:Ingest Management) |
Reviewed and assigned to @EricDavisX |
@nchaulet can you comment here please? Nicolas, I suppose the inactive Agent should have eventually disappeared unless there was some problem? If the Agent was active and successful prior, and the host reachable, is there any known bug / reason from the BC4 build as to why it wouldn't have worked? And if no known bug, what details do you need from QA to triage it? The Agent logs would help for a start I suppose... anything else? @kamalpreetpahwa-qasource can you post those to start? And tell us what OS version the host was? |
I want to call out that we shall track the basic work-flow here, the specific of this concern needs to be resolved as well, that the "Un-enroll option is still available for an agent which is already un-enrolled and displayed under Show Inactive filter." From #73236 |
@EricDavisX Currently the |
@EricDavisX I think the behavior is correct, by default we don't show inactive agent that match your query? |
@nchaulet @EricDavisX The unenroll an already unenroll agent is a bug though, I think we can do it in 7.10. |
Yes the unenroll an already agent is a bug, I can do a PR to remove it from the UI #73348 |
I understand more context after reading it a few times. I understand this last part now, and I'm fine with 7.10. My main concern was if there was an Agent that didn't successfully un-enroll... that would be a bug of some sort. @rahulgupta-qasource please do re-test that tonight and let us know in a separate ticket if you have any Agent scenario where a valid, running Agent does not successfully un-enroll and disappear after around 2 minutes. |
Hi @EricDavisX We have validated the "Un-enroll scenario" on 7.9 BC 4 cloud environment on Host OS Windows 10_x64 and observed the following: Observation:
Logs: possibly pertinent log lines with errors:
Activity Logs:
Please let us know if anything else is required on same. Thanks |
@nchaulet it looks to me like with the BC4 build there is a case where the Agent doesn't fully unenroll (after a minute it sits in 'inactive') - what would we need to investigate that more? To confirm, The subsequent actions are done after an indeterminate state (we can put an item into the readme for users and testers to manually 'force unenroll' if / when Agent gets to that state before carrying on more tests on the same host. @kamalpreetpahwa-qasource FYI - a best practice for testing ^. Once we get to a weird state, we need to heavily consider if the subsequent actions are valid state of the system. |
Do you have agent logs? |
I do not. @kamalpreetpahwa-qasource if you see this reproduced with BC5 can you pass logs in please? |
Hi @EricDavisX , We have validated this ticket on 7.9 BC 5 cloud environment with agent 7.9. Please find below our observation and attached logs. Observation: We observed that still agent moves to "Inactive" state when we simply Un-enroll the agent. Screenshot: Agent Activity Logs
Please let us know if there is any other way to get the logs for this scenario. Thanks, |
Hi @EricDavisX Thanks for sharing the information on logs location and detailed steps. We have already attached the same log file elastic-agent-json.txt file that displayed under data/logs folder, after clicking Un-enroll button in my previous comment.
Please refer the latest Zip folder below that have the logs, which displayed under data/logs folder, after clicking Un-enroll button next to agent and it moves to inactive state. Please let me know if any other information is required from my end. Thanks |
Hi @kamalpreetpahwa-qasource the --staging command needs a value passed to it, else it is expected to error. This is a good exploratory test, but not one we need to repeat or document. I do not think that the failed enrollment invalidates the rest of the scenario. Can you post specifics of what version of Windows 10 this is? Service pack and security patch info, etc? Please also cite its name for me to find if needed in the vSphere cluster. @nchaulet I'm removing Kamal and Rahul, its assigned just on your side now if you can take a look at the logs and find anything out further. If we need to borrow the vm or kibana environment I think Kamal could likely post us creds in chat so we could access it, and I can help access the vm specifically if it is on the Endgame vSphere side, as I expect it is. |
@rahulgupta-qasource can you help follow up on what info we were asking? |
I'm closing this issue due to lack of activity. From the conversation in this ticket, I don't think there is a UI issue: "Show inactive" filter adds inactive agents to the list of agents shown in the existing table state. Re-enrolling a previous unenrolled agent will count as a "new" agent, so it can show up in inactive + active. If there are further issues found with unenrollment, a new issue can be opened. |
Kibana version:
Kibana: 7.9 BC4
Elasticsearch version:
Elasticsearch: 7.9 BC4
Agent version:
Agent: 7.9 BC4
Browser version:
Windows 10, Chrome
Original install method (e.g. download page, yum, from source, etc.):
From 7.9 BC4
Description
[Ingest-Management]: Agent with Online, Offline status also appears under "Show Inactive" filter results.
Preconditions
Steps to Reproduce
Test data
N/A
Impacted Test case id
N/A
Actual Result
[Ingest-Management]: Agent with Online, Offline status also appears under "Show Inactive" filter results.
Expected Result
Agent with Online, Offline status should not appear under "Show Inactive" filter results.
What's working
N/A
What's not working
Agent with Offline status also appears under "Show Inactive" filter results.
Screenshot
Logs
N/A
The text was updated successfully, but these errors were encountered: