Closed roperzh closed 8 months ago
Following Roberto's instructions above (with the caveat that host_mdm_configuration_profiles
needs to be host_mdm_apple_profiles
or host_mdm_windows_profiles
) I was able to force a newly uploaded profile into Pending
status, and then on refetch observe the status change to Verified
.
This has been a long-standing problem in Jamf that most admins (including myself) wrote custom extension attributes for, i.e., not relying on MDM to validate if profiles are nstalled, but, doing something like calling system_profiler SPConfigurationProfileDataType & parsing the output to verify profiles are on the computer. So, even if you have reproduced it & watched it flip from pending to verified I doubt that you will see this 100% of the time.
One major cause of this in customer environments is not having good communication with all of recommended Enterprise Network URLs / services. https://support.apple.com/en-us/HT210060
2 ways of testing this are 1) https://twocanoes.com/products/mac/push-diagnostics/ 2) 's Mac Evaluation Utility which is available for customers enrolled in AppleSeed For IT. I have a recent version of MEU which I will upload to this ticket in case anyone wants to see what it does.
Profiles stuck, pending, A fix brings clarity, peace, Fleet sails smoothly now.
Fleet version: 4.41.1
Web browser and operating system:
💥 Actual behavior
Fleet sets a profile as
verifying
when it gets the ack from theInstallProfile
command.However we might miss the ack, or the host might fail to send it for a variety of reasons, causing profiles to be stuck in
pending
forever, even though:🧑💻 Steps to reproduce
UPDATE host_mdm_configuration_profiles SET status = 'pending'
🛠️ To fix
https://github.com/fleetdm/fleet/blob/e3c037cac3bb36948a3fb0714574da1fbf44ddc0/server/datastore/mysql/mdm.go#L485