fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Can't install software via self service after device that previously installed the software has been wiped

Open ddribeiro opened this issue 1 year ago • 1 comments

Fleet version: 4.53.0


💥  Actual behavior

Software that has been installed by Fleet via self service does not appear to reset its state after a device is re-enrolled. This creates a scenario where:

  1. A device is enrolled in Fleet and the user installs software via Fleet self service. Fleet shows the software is installed in the UI as expected.
  2. The device is erased and then enrolled back into Fleet.
  3. The user attempts to install the software that was previously installed before the device was erased via Fleet self service. The Fleet UI shows the software is "Installed" and does not allow the user to install it again. This is true even after refetching device vitals to populate the list of installed software.

Screenshot 2024-07-01 at 11 34 09 AM

🧑‍💻  Steps to reproduce

  1. In Fleet, upload a software installer to a team that your test computer is enrolled in. Make it available for a self service install.
  2. Install the software on your test computer via the self service workflow.
  3. Erase the device (doesn't seem to matter if this is done manually or with an MDM command) but keep the host record in Fleet.
  4. Re-enroll the device in Fleet. Fleet should match up the new enrollment with the existing device record.
  5. Attempt to install same software you did in step 2. Fleet will not allow this because the software has already been installed.

ddribeiro avatar Jul 01 '24 20:07 ddribeiro

QA Notes:

thanks for the detailed steps @ddribeiro !

I was able to reproduce with any pkg that was previously installed on the device via Self Service or not. The history remains and shows as installed preventing a proper re-install.

PezHub avatar Jul 02 '24 16:07 PezHub

@georgekarrv @gillespi314 heads up solution is specified under "To fix" section in the issue description, based on our discussion at the design review.

marko-lisica avatar Jul 12 '24 17:07 marko-lisica

Confirmed we now have a reinstall option and that it does successfully install the software once clicked. Ran thru several scenarios including:

  • Deleting the app from the host and reinstalling

  • erasing the host and reenrolling (without deleting the host entry from the UI)

  • reenrolling the host without an erase

Also confirmed the tooltip displays the updated time stamp on hover

Screenshot 2024-07-15 at 3 51 01 PM

PezHub avatar Jul 15 '24 23:07 PezHub

Software once lost, found, "Reinstall" breathes second life, Fleet's grace in the clouds.

fleet-release avatar Jul 17 '24 22:07 fleet-release