Declaration (ddm) profiles stuck in pending state on host
Fleet version: Any
Web browser and operating system: any
💥 Actual behavior
Declaration profiles sent to macOS hosts are getting stuck in a pending state under various circumstances. For example if a declaration is added to a team, then removed from that team before the host comes online OR simply uploading a profile to the team then deleting it before it actually gets installed on the host.
🧑💻 Steps to reproduce
- Upload a declaration profile to a team
- quickly delete the profile from the team before it has time to install on the host
- navigate to the host details page
- observe the profile is stuck in a removal pending state
🕯️ More info (optional)
The same issue was recently discovered and addressed for mdm config profiles but unfortunately the fix did not apply to declarations. Hopefully we can apply a similar solution.
🛠️ To fix mdm config profile fix - #21891
@jahzielv FYI
QA Notes:
Fix looks good after running through the above scenarios
Profiles pend in cloud, Fix would make Fleet users proud, Smooth as a shroud, unbowed.