Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profiles are stuck in "Pending" due to missing "ack" #15678

Closed
roperzh opened this issue Dec 14, 2023 · 3 comments
Closed

Profiles are stuck in "Pending" due to missing "ack" #15678

roperzh opened this issue Dec 14, 2023 · 3 comments
Assignees
Labels
bug Something isn't working as documented customer-eponym #g-mdm MDM product group :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. ~released bug This bug was found in a stable release.
Milestone

Comments

@roperzh
Copy link
Contributor

roperzh commented Dec 14, 2023

Fleet version: 4.41.1

Web browser and operating system:


💥  Actual behavior

Fleet sets a profile as verifying when it gets the ack from the InstallProfile 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 inpending forever, even though:

  1. The profile is installed in the device
  2. We know the profile is installed (via osquery)

Note

The same logic can be applied for failed profiles as well, but we're tracking that as a feature request, this is only about profiles going from pending to verified

🧑‍💻  Steps to reproduce

  1. Add a macOS configuration profile
  2. Run the following MySQL query: UPDATE host_mdm_configuration_profiles SET status = 'pending'
  3. Verify that the host has the profile but Fleet shows the profile as pending
  4. Refreshing host vitals should move the profile to "verified"

🛠️ To fix

  • Update DB queries that set profile status to allow "pending" profiles:

[]interface{}{fleet.MDMDeliveryVerifying, fleet.MDMDeliveryFailed},

@roperzh roperzh added bug Something isn't working as documented :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. ~released bug This bug was found in a stable release. customer-eponym #g-mdm MDM product group labels Dec 14, 2023
@lukeheath lukeheath added this to the 4.43.0-tentative milestone Dec 21, 2023
@noahtalerman noahtalerman changed the title fleet can miss the ack that a macOS profile has been installed Profiles are stuck in "pending" due to missing "ack" Dec 22, 2023
@noahtalerman noahtalerman changed the title Profiles are stuck in "pending" due to missing "ack" Profiles are stuck in "Pending" due to missing "ack" Dec 22, 2023
@roperzh roperzh self-assigned this Jan 3, 2024
@sabrinabuckets
Copy link
Contributor

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.

@nonpunctual
Copy link
Contributor

nonpunctual commented Jan 9, 2024

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.

@fleet-release
Copy link
Contributor

Profiles stuck, pending,
A fix brings clarity, peace,
Fleet sails smoothly now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as documented customer-eponym #g-mdm MDM product group :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. ~released bug This bug was found in a stable release.
Projects
None yet
Development

No branches or pull requests

5 participants