WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Migration of paused domains

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Migration of paused domains
From: Alessandro Sardo <sandro.sardo@xxxxxxxxx>
Date: Sat, 19 Jul 2008 14:33:48 +0200
Delivery-date: Sat, 19 Jul 2008 05:34:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
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 stuck 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,

- AS

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

<Prev in Thread] Current Thread [Next in Thread>