If the time it takes the migration to begin is longer than the MIGRATION_MONITOR_INTERVAL (may happen due to networking issues), the first call to Progress.from_job_stats(self._vm._dom.jobStats()) leads to an exception because the stats don't contain the statistics yet. This situation causes the monitor thread to die (even though the migration will continue and eventually pass).
Verify with: Red Hat Virtualization Manager Version: 4.0.2.4-0.1.el7ev host: OS Version:RHEL - 7.2 - 9.el7_2.1 OS Description:3.10.0 - 327.22.2.el7.x86_64 KVM Version:2.3.0 - 31.el7_2.21 LIBVIRT Version:libvirt-1.2.17-13.el7_2.5 VDSM Version:vdsm-4.18.5.1-1.el7ev SPICE Version:0.12.4 - 15.el7_2.1 Steps: 1. Started migration 2. Disconnect the NIC on the source host 3. Checked the vdsm.log Expected results: 1. Migration failure 2. In vsdm log only timeout of migration results - PASS