[Libvirt-cim] [PATCH] [TEST] Adding new tc to cover restart and resume migration scenarios

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Mon Apr 6 17:53:45 UTC 2009


> +
> +            # Migrate the test_dom to t_sysname.
> +            # Enable remote migration by setting remote_migrate=1
> +            status = local_remote_migrate(s_sysname, t_sysname, virt,
> +                                          remote_migrate=1, guest_name=test_dom,
> +                                          mtype=mig_type)
> +
> +            logger.info("'%s' Migration for '%s %s' \n", 
> +                        mig_type, test_dom, str_status(status))
> +            if mig_type == 'restart' : 
> +                status_restart = status
> +            else:
> +                status_resume = status


> +
> +            cleanup_guest(virt, cxml, test_dom, t_sysname, s_sysname)

If the guest cleanup fails the first time through the loop, it could 
affect the execution the second time through.  I would break from the 
loop and return a failure.



-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list