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

# HG changeset patch # User Kaitlin Rupert <karupert@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@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

+1 from me. libvirt-cim-bounces@redhat.com wrote on 2009-04-20 07:34:25:
# HG changeset patch # User Kaitlin Rupert <karupert@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@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@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

+1 Kaitlin Rupert wrote:
# HG changeset patch # User Kaitlin Rupert <karupert@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@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@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
participants (3)
-
Deepti B Kalakeri
-
Guo Lian Yun
-
Kaitlin Rupert