ia64/xen-unstable

changeset 6637:cd5d566e1d54

Only remove domain from store once it's suspended.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Mon Sep 05 14:45:19 2005 +0000 (2005-09-05)
parents 79658ef58925
children 5d8b2c258b26
files tools/python/xen/xend/XendCheckpoint.py
line diff
     1.1 --- a/tools/python/xen/xend/XendCheckpoint.py	Mon Sep 05 14:04:36 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendCheckpoint.py	Mon Sep 05 14:45:19 2005 +0000
     1.3 @@ -70,6 +70,8 @@ def save(xd, fd, dominfo, live):
     1.4                  if l.rstrip() == "suspend":
     1.5                      log.info("suspending %d" % dominfo.id)
     1.6                      xd.domain_shutdown(dominfo.id, reason='suspend')
     1.7 +                    dominfo.state_wait("suspended")
     1.8 +                    log.info("suspend %d done" % dominfo.id)
     1.9                      if dominfo.store_channel:
    1.10                          try:
    1.11                              dominfo.db.releaseDomain(dominfo.id)
    1.12 @@ -78,8 +80,6 @@ def save(xd, fd, dominfo, live):
    1.13                                  "error in domain release on xenstore: %s",
    1.14                                  ex)
    1.15                              pass
    1.16 -                    dominfo.state_wait("suspended")
    1.17 -                    log.info("suspend %d done" % dominfo.id)
    1.18                      child.tochild.write("done\n")
    1.19                      child.tochild.flush()
    1.20          if filter(lambda (fd, event): event & select.POLLHUP, r):