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] [PATCH] Fix wait option of xm reboot command

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix wait option of xm reboot command
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 07 Feb 2008 15:52:08 +0900
Delivery-date: Wed, 06 Feb 2008 22:53:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

When I rebooted a domain by xm reboot command with wait option, 
I saw the following message.  But, rebooting the domain succeeded. 

 # xm list
 Name                                        ID   Mem VCPUs      State   Time(s)
 Domain-0                                     0   743     2     r-----     68.4
 vm1                                          1   256     1     r-----    157.1
 # xm reboot --wait vm1
 Domain vm1 destroyed for failed in rebooting
 All domains rebooted
 # xm list
 Name                                        ID   Mem VCPUs      State   Time(s)
 Domain-0                                     0   743     2     r-----     77.4
 vm1                                          2   256     1     r-----      1.4

The cause why the message was shown is the domain is destroyed 
temporarily by processing of xm reboot command.  The domain 
information is not gotten from Xend by server.xend.domains() 
function till recreating the domain is completed. 
This patch fixes processing of xm reboot command in Xm side. 
It waits just a bit till recreating the domain is completed, 
then it measures the success or failure of the reboot of the 
domain. 


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: xm_reboot_wait.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix wait option of xm reboot command, Masaki Kanno <=