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

Deepti B Kalakeri deeptik at linux.vnet.ibm.com
Mon Apr 20 11:51:17 UTC 2009


+1

Kaitlin Rupert wrote:
> # 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
>   

-- 
Thanks and Regards,
Deepti B. Kalakeri
IBM Linux Technology Center
deeptik at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list