[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] fix cross migrate problem


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "James Song" <jsong@xxxxxxxxxx>
  • Date: Thu, 03 Sep 2009 23:01:22 -0600
  • Delivery-date: Thu, 03 Sep 2009 22:03:41 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

When migrate Guest OS to remote host on each side of two host.  The later migration will be hung because of Read or Write socket in destionation can't been closed for wait a reponse from initiator. So close the side of socket in initiator when finish the  migration.

Signed-off-by: Song Wei (james)<jsong@xxxxxxxxxx>
//fix_cross_migrate.patch
diff -r b4fcb5f632dc tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Mon Aug 31 18:17:26 2009 +0100
+++ b/tools/python/xen/xend/XendDomain.py       Fri Sep 04 12:48:42 2009 +0800
@@ -1353,8 +1353,7 @@
                 XendCheckpoint.save(p2cwrite, dominfo, True, live, dst,
                                     node=node)
             finally:
-                sock.shutdown()
-                sock.close()
+                sock.shutdown(socket.SHUT_RDWR)

             os.close(p2cread)
             os.close(p2cwrite)


thanks,
James

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.