fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
2.67k stars 379 forks source link

Software installed via Fleet not accurately updating counts throughout the UI #20171

Open ddribeiro opened 5 days ago

ddribeiro commented 5 days ago

Fleet version: 4.53.0


💥  Actual behavior

Host counts for software installed via Fleet are inconsistent throughout the Fleet UI. After software has been installed through Fleet, the host column in the row for the software shows 0.

Screenshot 2024-07-02 at 2 20 56 PM

Navigating to the details page for the software, the Installed/Pending/Failed counts are correct:

Screenshot 2024-07-02 at 2 21 05 PM

Clicking the "View all hosts" link on that page navigates to the hosts list with a filter for that software, which returns no results:

Screenshot 2024-07-02 at 2 55 16 PM

Loom recording

🧑‍💻  Steps to reproduce

  1. Upload an installer to Fleet by selecting a team, clicking Software > Add software.
  2. Install the software on a host. I used the self service method in my testing.
  3. After the software is done installing, return to the Software tab in Fleet admin and see that the host count has not increased. In my example, the hosts still says 0.
  4. Click into the software. You'll see the Installed/Pending/Failed view shows 1 host under Installed.
  5. Click the "View all hosts" link on this page. The page shows "No hosts match the current criteria"

🕯️ More info (optional)

N/A

JoStableford commented 5 days ago

Related to a Slack conversation

georgekarrv commented 4 days ago

Did it eventually update? This requires the cron to run to update the counts.

PezHub commented 4 days ago

QA Notes:

I ran thru this workflow with a couple different .pkgs installed from Self Service (and standard installs) and can confirm it is a bug. Forcing the cron jobs to run did not update the counts or update the "view all hosts" page.

(Same results on Windows with an .exe)

ddribeiro commented 2 days ago

@georgekarrv I checked in with the customer 22 hours later and the counts still had not been updated.