fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.02k stars 419 forks source link

"Migrate to Fleet" doesn't show up at all #13985

Closed noahtalerman closed 11 months ago

noahtalerman commented 1 year ago

Fleet version: 4.37. fleetd stable


💥  Actual behavior

After assigning a DEP Mac to Fleet in Apple Business Manager, the "Migrate to Fleet" option doesn't appear in Fleet Desktop.

🧑‍💻  Steps to reproduce

  1. Unassign a Mac from the old MDM solution in ABM
  2. Assign the Mac to Fleet in ABM
  3. The "Migrate to Fleet" option doesn't appear

🕯️ More info (optional)

Noah: Looks like we thought we solved this one in a separate issue here: #13110

Noah: I'm not sure, but this may be related to several other DEP profile bugs here.

Noah: The current workaround is to unassign the host from Fleet in ABM and then reassign it.

georgekarrv commented 1 year ago

Step one would be figuring out a way an end user can find these devices in this state with api calls.

One thought might be to list devices from abm then pull devices from fleet and compare mdm status (not in pending / mdm on / failed) to find these.

noahtalerman commented 1 year ago

Reproduction attempt by @gillespi314:

Setup

  1. Assigned macOS serial to a Kandji server in Apple Business Manager (ABM)
  2. Configured a VM with the serial number and enrolled it to the Kandji server
  3. Built fleetd package and installed it on the VM
  4. Confirmed that fleetd enrolled to my Fleet instance
  5. Confirmed that host vitals in Fleet showed the device enrolled to the Kandji server
  6. Confirmed that "Migrate to Fleet" menu option did not appear in the Fleet Desktop app
  7. Edited the MDM server assignment (not unassign and reassign flow) in ABM to point to my Fleet instance
  8. Wait for "Migrate to Fleet" menu option to appear in the Fleet Desktop app

Results

I repeated the setup multiple times and in all cases the menu option appeared in the Fleet Desktop app after a relatively short delay of two to ten minutes.

This delay is expected due to the async processes involved.

The Fleet Desktop app refreshes the Fleet Desktop menu options on a 5-minute timer. Additionally, the flow depends on the DEP sync periodicity configured for the Fleet instance as well as async processes controlled by Apple.

sabrinabuckets commented 12 months ago

Unable to repro this, and I can see that no PR was submitted. I think we're safe to close this.

noahtalerman commented 11 months ago

@sabrinabuckets for bugs w/ customer labels that we're unable to repro. Can you please tag me? That way, I can update relevant stakeholders on customer success team to communicate this to the customer.

@zayhanlon heads up, we're unable to reproduce this bug that the customer reported. See reproduction steps in the comment above.

sabrinabuckets commented 11 months ago

@noahtalerman sure thing!For this one, I was operating under the assumption that you were fully aware, due to your previous comment, but I'll be mindful about that if a ticket hits my queue without repro or a change in the future.

zayhanlon commented 11 months ago

@noahtalerman thankyou! added to the eponym agenda for Friday

noahtalerman commented 11 months ago

Hey @ghernandez345 looks like you were able to reproduce this seemingly similar bug: #12771 (duplicate?)

Before we tell the customer we can't reproduce, do you think you could try to take at helping us reproduce this one? #13985

@gillespi314 and @sabrinabuckets were unable to reproduce.

noahtalerman commented 11 months ago

If we believe bug is a duplicate of #12771 (it looks like it), I don't think we should close this until we confirm that Gabe also can no longer reproduce.

cc @georgekarrv

fleet-release commented 11 months ago

"Migrate to Fleet" hides, In cloud city it abides. Fixed, it now guides.