elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.63k stars 8.22k forks source link

[Fleet]: Unenrolled agents are not visible View Agents for the unenrolled action is selected under Agent Activity. #160352

Open amolnater-qasource opened 1 year ago

amolnater-qasource commented 1 year ago

Kibana Build details:

VERSION: 8.8.2 BC1
BUILD: 63328
COMMIT: db8521641e9f4c545859a80e19f34066c507a137
Artifact link: https://staging.elastic.co/8.8.2-7d6121e6/summary-8.8.2.html#elastic-agent

Host OS and Browser version: All, All

Preconditions:

  1. 8.8.2 BC1 Kibana cloud environment should be available.
  2. Few agents should be installed.

Steps to reproduce:

  1. Navigate to Fleet>Agents tab.
  2. Unenroll agent from fleet UI.
  3. Navigate to Agent activity and click View Agents for unenrolled action.
  4. Observe all filters are selected, however Unenrolled agents are not visible.

Expected: Unenrolled agents should be visible when View Agents for the unenrolled action is selected under Agent Activity.

Screen Recording:

https://github.com/elastic/kibana/assets/77374876/80cccea3-2939-4f6a-9ca5-7f6d931c2c23

elasticmachine commented 1 year ago

Pinging @elastic/fleet (Team:Fleet)

amolnater-qasource commented 1 year ago

@karanbirsingh-qasource Please review.

ghost commented 1 year ago

Secondary review for this ticket is Done

jlind23 commented 1 year ago

@juliaElastic Could it be that agent are not yet unenrolled as the unenrollment is ongoing thus they are not shown?

juliaElastic commented 1 year ago

The recording shows those agents as unenrolled, so I don't think the unenrollment is ongoing.

@criamico Do you recall what is the filter behind the "View agents" functionality for unenroll action? IIRC the filter should include the agent ids in the action, and the UI should work with unenrolled agents too (the filter is adjusted to include all statuses). If this is not working, sounds like a real bug.

criamico commented 1 year ago

I don't remember any issues with the unenrolled agents: https://github.com/elastic/kibana/blob/88871faf60ec5a62c4aea48911883a6d7f937777/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/agent_activity_flyout.tsx#L95-L114

I'll try to reproduce it locally and see if we have a bug.

amolnater-qasource commented 1 year ago

Hi Team,

We have revalidated this issue on latest 8.10.0 SNAPSHOT kibana cloud environment and found it still reproducible.

Observations:

Screen Recording:

https://github.com/elastic/kibana/assets/77374876/1483005a-99a4-499a-9451-15a713daf987

Build details: VERSION: 8.10.0 BUILD: 66107 COMMIT: fa3473f42d7c5e7a3c2d66026a153e01002f5d3c

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

Thanks!