[Libvirt-cim] [PATCH] [TEST] For localhost migration, do not copy image file to host

Guo Lian Yun yunguol at cn.ibm.com
Mon Apr 20 02:04:08 UTC 2009


+1 from me.


libvirt-cim-bounces at redhat.com wrote on 2009-04-20 07:34:25:

> # HG changeset patch
> # User Kaitlin Rupert <karupert at us.ibm.com>
> # Date 1240184059 25200
> # Node ID 3220adb67645abf3784876851de4eab6748e76b3
> # Parent  7bac72ee3582b0bb822b9062234ae1989a464f60
> [TEST] For localhost migration, do not copy image file to host
> 
> No need to do this step since the file already exists
> 
> Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>
> 
> diff -r 7bac72ee3582 -r 3220adb67645 suites/libvirt-
> cim/lib/XenKvmLib/vsmigrations.py
> --- a/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py   Sun Apr 19 
> 16:30:00 2009 -0700
> +++ b/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py   Sun Apr 19 
> 16:34:19 2009 -0700
> @@ -158,6 +158,10 @@
>             logger.error("Failed to get Disk RASD info for '%s'", 
test_dom)
>             return FAIL, req_image, backup_image
> 
> +       if t_sysname == s_sysname or t_sysname in s_sysname:
> +           #Localhost migration, no need to copy image
> +           return PASS, req_image, backup_image
> +
>         # Check if the image file with the same name already exist 
> on the machine.
>         # Back it up. Copy the required working image to the 
destination.
>         cmd = "ls -l %s" % req_image
> 
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090420/4f934964/attachment.htm>


More information about the Libvirt-cim mailing list