[Autotest][PATCH 1/4] virt: Adds support for cancel migration in multi-host tests.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



1) Start migration with stressed VM.
2) Wait cancel_delay and then cancel migration.
3) Check if machine is alive on source host.
4) Stop stress of VM.
5) Migrate machine again.
6) Check if machine is alive on destination host.

Signed-off-by: Jiří Župka <jzupka@xxxxxxxxxx>
---
 virttest/utils_test.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/virttest/utils_test.py b/virttest/utils_test.py
index 13225d0..eda2099 100644
--- a/virttest/utils_test.py
+++ b/virttest/utils_test.py
@@ -759,7 +759,7 @@ class MultihostMigration(object):
                     mig_error = True
                     raise
             finally:
-                if not mig_error:
+                if not mig_error and cancel_delay is None:
                     self._hosts_barrier(self.hosts,
                                         mig_data.mig_id,
                                         'test_finihed',
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux