fleet
fleet copied to clipboard
Can't install software via self service after device that previously installed the software has been wiped
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:
- 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.
- The device is erased and then enrolled back into Fleet.
- 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.
🧑💻 Steps to reproduce
- In Fleet, upload a software installer to a team that your test computer is enrolled in. Make it available for a self service install.
- Install the software on your test computer via the self service workflow.
- 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.
- Re-enroll the device in Fleet. Fleet should match up the new enrollment with the existing device record.
- Attempt to install same software you did in step 2. Fleet will not allow this because the software has already been installed.
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.
@georgekarrv @gillespi314 heads up solution is specified under "To fix" section in the issue description, based on our discussion at the design review.
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
Software once lost, found, "Reinstall" breathes second life, Fleet's grace in the clouds.