
The test passed for the Restart migration option, but failed for resume migration: Wed, 01 Jul 2009 07:35:52:TEST LOG:INFO - 'restart' Migration for 'VM_frm_elm3b25.beaverton.ibm.com PASSED' Wed, 01 Jul 2009 07:35:53:TEST LOG:INFO - Executing 'resume' migration for 'VM_frm_elm3b25.beaverton.ibm.com' from 'elm3b25.beaverton.ibm.com' to 'localhost' Wed, 01 Jul 2009 07:36:12:TEST LOG:INFO - Migrating 'VM_frm_elm3b25.beaverton.ibm.com'.. this will take some time. Wed, 01 Jul 2009 07:36:17:TEST LOG:ERROR - JobStatus for dom 'VM_frm_elm3b25.beaverton.ibm.com' has 'Migration Failed: Error 0' instead of 'Completed' Wed, 01 Jul 2009 07:36:17:TEST LOG:INFO - 'resume' Migration for 'VM_frm_elm3b25.beaverton.ibm.com FAILED' Wed, 01 Jul 2009 07:36:18:TEST LOG:ERROR - Restart migration 0 Wed, 01 Jul 2009 07:36:18:TEST LOG:ERROR - Resume migration 1 Wed, 01 Jul 2009 07:36:18:TEST LOG:INFO - Test case FAILED Kaitlin Rupert wrote:
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1242946256 25200 # Node ID 401fcf44005919231ce6ea590029aff42e910152 # Parent e21a60339e4be98d049db5ea146377e90a1f006b [TEST] #2 VSMS 08 Remove cleanup_guest_netpool() def and call it from vsmigration.py
Updates: -Give guest time to fuly boot before rebooting -Indicate the pass / failure of both the restart and resume cases
Note: This test might fail with older versions of Xen - restart migration can be unstable
Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com>
diff -r e21a60339e4b -r 401fcf440059 suites/libvirt-cim/cimtest/VirtualSystemMigrationService/08_remote_restart_resume_migration.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/08_remote_restart_resume_migration.py Thu May 21 15:50:56 2009 -0700 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/08_remote_restart_resume_migration.py Thu May 21 15:50:56 2009 -0700 @@ -28,6 +28,7 @@
import sys import os +from time import sleep from socket import gethostname from XenKvmLib import vxml from XenKvmLib.xm_virt_util import domain_list, net_list @@ -35,9 +36,9 @@ from XenKvmLib.const import do_main, default_network_name from CimTest.ReturnCodes import PASS, FAIL, SKIP from XenKvmLib.classes import get_typed_class -from XenKvmLib.vsmigrations import check_mig_support, local_remote_migrate -from XenKvmLib.common_util import poll_for_state_change, create_netpool_conf,\ - destroy_netpool +from XenKvmLib.vsmigrations import check_mig_support, local_remote_migrate, \ + cleanup_guest_netpool +from XenKvmLib.common_util import poll_for_state_change, create_netpool_conf
sup_types = ['KVM', 'Xen']
@@ -125,6 +126,9 @@ status_resume = status_restart = None cxml = None
+ status_restart = -1 + status_resume = -1 + try:
for mig_type in mig_types: @@ -135,6 +139,10 @@ logger.error("Error setting up the guest") return status
+ # Generally, having a test sleep is a bad choice, but we need to + # give the guest some time to fully boot before we reboot it + sleep(15) + # create the networkpool used in the domain to be migrated # on the target machine. t_net_list = net_list(t_sysname, virt) @@ -168,18 +176,14 @@ cleanup_guest(virt, cxml, test_dom, t_sysname, s_sysname) status = FAIL
- # clean the networkpool created on the remote machine - target_net_list = net_list(t_sysname, virt) - if target_net_list != None and net_pool_name in target_net_list: - ret_value = destroy_netpool(t_sysname, virt, net_pool_name) - if ret_value != PASS: - logger.info("Unable to destroy networkpool '%s' on '%s'", - net_pool_name, t_sysname) + cleanup_guest_netpool(virt, cxml, test_dom, t_sysname, s_sysname)
- if status_restart != PASS or status_resume != PASS: + if status_restart == PASS and status_resume == PASS: + status = PASS + else: + logger.error("Restart migration %d", status_restart) + logger.error("Resume migration %d", status_resume) status = FAIL - else: - status = PASS
logger.info("Test case %s", str_status(status)) return status
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik@linux.vnet.ibm.com