From: Ewan Mellor Date: Wed, 1 Nov 2006 18:20:23 +0000 (+0000) Subject: Return the domain renaming during migration. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15567^2~149 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=58afddc807048bc45f43f7f1697f13d8fce3ebe0;p=xen.git Return the domain renaming during migration. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xend/XendCheckpoint.py b/tools/python/xen/xend/XendCheckpoint.py index 3b6baf5710..0c0809f820 100644 --- a/tools/python/xen/xend/XendCheckpoint.py +++ b/tools/python/xen/xend/XendCheckpoint.py @@ -59,9 +59,7 @@ def save(fd, dominfo, network, live, dst): # Rename the domain temporarily, so that we don't get a name clash if this # domain is migrating (live or non-live) to the local host. Doing such a # thing is useful for debugging. - # - # FIXME: I don't think this is such a good idea - atse@xensource.com - #dominfo.setName('migrating-' + domain_name) + dominfo.setName('migrating-' + domain_name) try: dominfo.migrateDevices(network, dst, DEV_MIGRATE_STEP1, domain_name) @@ -102,10 +100,10 @@ def save(fd, dominfo, network, live, dst): except Exception, exn: log.exception("Save failed on domain %s (%d).", domain_name, dominfo.getDomid()) - #try: - # dominfo.setName(domain_name) - #except: - # log.exception("Failed to reset the migrating domain's name") + try: + dominfo.setName(domain_name) + except: + log.exception("Failed to reset the migrating domain's name") raise Exception, exn