I can reproduce this easily with adding 10 sec delay between InstanceList.get_by_host_and_node() and MigrationList.get_in_progress_by_host_and_node() [1]
[1] https://github.com/openstack/nova/blob/5645f75d6b3adac00f6be8e0eae4565c4eb2ab5d/nova/compute/resource_tracker.py#L766
I can reproduce this easily with adding 10 sec delay between InstanceList. get_by_ host_and_ node() and MigrationList. get_in_ progress_ by_host_ and_node( ) [1]
[1] https:/ /github. com/openstack/ nova/blob/ 5645f75d6b3adac 00f6be8e0eae456 5c4eb2ab5d/ nova/compute/ resource_ tracker. py#L766