bitkeeper revision 1.1159.96.4 (415c287dKBbK9HPtAge67WfTsJsnwQ)

Delay configuring the new domain during migration to localhost.
This commit is contained in:
mjw@wray-m-3.hpl.hp.com committed 2004-09-30 15:38:37 +00:00
1 parent d61b7f7baa
commit 28b770962c
3 files changed
+25 -13

No files matched your search

+11 -11
View File
@@ -302,18 +302,18 @@ class XendMigrateInfo(XfrdInfo):
self.dst_port,
self.live ])
def xfr_vm_suspend(self, xfrd, val):
def cbok(val):
# Special case for localhost: destroy devices early.
if self.dst_host in ["localhost", "127.0.0.1"]:
self.dominfo.restart_cancel()
self.dominfo.cleanup()
self.dominfo.destroy_console()
return val
## def xfr_vm_suspend(self, xfrd, val):
## def cbok(val):
## # Special case for localhost: destroy devices early.
## if self.dst_host in ["localhost", "127.0.0.1"]:
## self.dominfo.restart_cancel()
## self.dominfo.cleanup()
## self.dominfo.destroy_console()
## return val
d = XfrdInfo.xfr_vm_suspend(self, xfrd, val)
d.addCallback(cbok)
return d
## d = XfrdInfo.xfr_vm_suspend(self, xfrd, val)
## d.addCallback(cbok)
## return d
def xfr_migrate_ok(self, xfrd, val):
dom = int(sxp.child0(val))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.