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

RE: [Xen-devel] [PATCH][XEND] Don't call destroy() on exception instart(

To: "Masaki Kanno" <kanno.masaki@xxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH][XEND] Don't call destroy() on exception instart()
From: "Puthiyaparambil, Aravindh" <aravindh.puthiyaparambil@xxxxxxxxxx>
Date: Sat, 17 Feb 2007 17:36:52 -0500
Delivery-date: Sat, 17 Feb 2007 14:36:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8C752690E0E6Dkanno.masaki@xxxxxxxxxxxxxx>
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>
References: <EF8D308BE33AF54D8934DF26520252D30626BBF3@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <8C752690E0E6Dkanno.masaki@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdSaSNvzsstVOaqQ6CK6e/7bZ1ILQAeSrEg
Thread-topic: [Xen-devel] [PATCH][XEND] Don't call destroy() on exception instart()
The problem we were running into was that if we try to start a domain
for which there is not enough memory we get an "Error: an integer is
required" message. Please see the attached xend log. On debugging
further I saw that the destroy() in start() was happening with Null
domain id because it was already destroyed in create(). 

But you are indeed correct in that it is required for the "xm start"
scenario. I did not think about that. I guess I need to come up with
another solution.

Thanks,
Aravindh

> -----Original Message-----
> From: Masaki Kanno [mailto:kanno.masaki@xxxxxxxxxxxxxx]
> Sent: Saturday, February 17, 2007 2:56 AM
> To: Puthiyaparambil, Aravindh; xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-devel] [PATCH][XEND] Don't call destroy() on
exception
> instart()
> 
> Hi Aravindh,
> 
> I think that destroy() is need. If a domain creating failed by
> xm start command, it cleans up the unfinished domain.
> 
> If your patch is applied, the unfinished domain is not cleaned
> up as follows. (I'm able to fail the domain creating by giving
> a wrong parameter(vcpus=33).)
> 
> # xm new /xen/vm1.conf vcpus=33
> Using config file "/xen/vm1.conf".
> # xm list
> Name                                      ID   Mem VCPUs      State
> Time(s)
> Domain-0                                   0   942     2     r-----
> 68.1
> vm1                                            256    33
> 0.0
> # xm start vm1
> Error: (22, 'Invalid argument')
> Usage: xm start <DomainName>
> 
> Start a Xend managed domain
>   -p, --paused                   Do not unpause domain after starting
it
> 
> # xm list
> Name                                      ID   Mem VCPUs      State
> Time(s)
> Domain-0                                   0   942     2     r-----
> 69.1
> vm1                                        1   256    33     ------
> 0.0
> 
> 
> If currently xen-unstable, the unfinished domain is cleaned up
> as follows.
> 
> # xm new /xen/vm1.conf vcpus=33
> Using config file "/xen/vm1.conf".
> # xm list
> Name                                      ID   Mem VCPUs      State
> Time(s)
> Domain-0                                   0   942     2     r-----
> 67.8
> vm1                                            256    33
> 0.0
> # xm start vm1
> Error: (22, 'Invalid argument')
> Usage: xm start <DomainName>
> 
> Start a Xend managed domain
>   -p, --paused                   Do not unpause domain after starting
it
> 
> # xm list
> Name                                      ID   Mem VCPUs      State
> Time(s)
> Domain-0                                   0   942     2     r-----
> 68.7
> vm1                                            256    33
> 0.0
> 
> 
> Best regards,
>  Kan
> 
> >destroy() is being called on exception in both start() and create().
It
> >needs to be called only in create().
> >
> >Signed-off-by: Aravindh Puthiyaparambil
> ><aravindh.puthiyaparambil@xxxxxxxxxx>
> >
>
>-------------------------------text/plain------------------------------
-
> >_______________________________________________
> >Xen-devel mailing list
> >Xen-devel@xxxxxxxxxxxxxxxxxxx
> >http://lists.xensource.com/xen-devel

Attachment: xendlog.txt
Description: xendlog.txt

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>