From: BitKeeper B. <ri...@su...> - 2004-10-05 15:02:14
|
ChangeSet 1.1335.1.2, 2004/09/30 12:11:17+01:00, mj...@wr... Discard devices early for local migrate. XendMigrate.py | 5 +++++ 1 files changed, 5 insertions(+) diff -Nru a/tools/python/xen/xend/XendMigrate.py b/tools/python/xen/xend/XendMigrate.py --- a/tools/python/xen/xend/XendMigrate.py 2004-10-05 11:00:53 -04:00 +++ b/tools/python/xen/xend/XendMigrate.py 2004-10-05 11:00:53 -04:00 @@ -295,6 +295,11 @@ eserver.inject('xend.domain.migrate', [ self.dominfo.name, self.dominfo.id, "begin", self.sxpr() ]) + # Special case for localhost: destroy all devices early. + if 0 and self.dst_host in ["localhost", "127.0.0.1"]: + self.dominfo.restart_cancel() + self.dominfo.cleanup() + #self.dominfo.destroy_console() xfrd.request(['xfr.migrate', self.src_dom, vmconfig, |