14 Nov
2019
14 Nov
'19
4:53 a.m.
On 11/13/2019 1:43 PM, melanie witt wrote:
This is because the "get instance list by host" can miss instances that are mid-migration, because of how/where we update the instance.host field.
Why not just filter out any instances that have a non-None task_state? Or barring that, filter out any instances that have an in-progress migration (there is a method that the ResourceTracker uses to get those kinds of migrations occurring either as incoming to or outgoing from the host). -- Thanks, Matt