direct-io.hg

changeset 12197:4e17bf788e69

Return the domain renaming during migration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Nov 01 18:20:23 2006 +0000 (2006-11-01)
parents 7b5115221dfc
children 96f51a000ed0
files tools/python/xen/xend/XendCheckpoint.py
line diff
     1.1 --- a/tools/python/xen/xend/XendCheckpoint.py	Wed Nov 01 16:08:19 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendCheckpoint.py	Wed Nov 01 18:20:23 2006 +0000
     1.3 @@ -59,9 +59,7 @@ def save(fd, dominfo, network, live, dst
     1.4      # Rename the domain temporarily, so that we don't get a name clash if this
     1.5      # domain is migrating (live or non-live) to the local host.  Doing such a
     1.6      # thing is useful for debugging.
     1.7 -    #
     1.8 -    # FIXME: I don't think this is such a good idea - atse@xensource.com
     1.9 -    #dominfo.setName('migrating-' + domain_name)
    1.10 +    dominfo.setName('migrating-' + domain_name)
    1.11  
    1.12      try:
    1.13          dominfo.migrateDevices(network, dst, DEV_MIGRATE_STEP1, domain_name)
    1.14 @@ -102,10 +100,10 @@ def save(fd, dominfo, network, live, dst
    1.15      except Exception, exn:
    1.16          log.exception("Save failed on domain %s (%d).", domain_name,
    1.17                        dominfo.getDomid())
    1.18 -        #try:
    1.19 -        #    dominfo.setName(domain_name)
    1.20 -        #except:
    1.21 -        #    log.exception("Failed to reset the migrating domain's name")
    1.22 +        try:
    1.23 +            dominfo.setName(domain_name)
    1.24 +        except:
    1.25 +            log.exception("Failed to reset the migrating domain's name")
    1.26          raise Exception, exn
    1.27  
    1.28