Comment 7 for bug 1646310

Revision history for this message
Christian Muirhead (2-xtian) wrote :

This turned out to be because:
* The model manager worker was starting the model workers while the model was still importing back. * The migration master would start and see the *old* migration (because the migration mode was importing rather than none).
* Since the phase was DONE, it exited returning ErrMigrated.
* This would get translated into ErrUninstall, so the dependency engine would remove the migration master worker.
* This then meant that the migration master wouldn't unlock the migration fortress, so workers that depend on ifNotMigrating (like the instance poller) couldn't run.

The fix is to make the model worker manager not start the workers until the model is finished importing. I'm preparing a PR for this - it's complicated by the watcher the model worker manager uses only signalling on lifecycle changes, so the mwm doesn't get told when the import is finished.