[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Migration of paused domains



Hello,

today I wanted to find out if it was possible to migrate a paused domain. So, I 
tried the following:

# xm pause <dom>
# xm migrate <dom> <dest>

Unfortunately, the migration process would just hang before suspending the 
domain and transferring its state. In order
to resume it and complete migration, I had to unpause the domain:

# xm unpause <dom>

After that, the process did get completed successfully.

-----

Then, I tried and track down the reason of this in the sources, and I came to 
the following snip (XendDomainInfo.py):

def waitForShutdown(self):
     self.state_updated.acquire()
          try:
               while self._stateGet() in (DOM_STATE_RUNNING,DOM_STATE_PAUSED):
               self.state_updated.wait()
          finally:
               self.state_updated.release()

It looks like that makes it wait forever, since the domain remains in the 
DOM_STATE_PAUSED state.

Now, the question is: is that the right behaviour or am I missing something? Is 
it really not possible to migrate a
paused domain?

Thanks for your help,

- AS

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.