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] Domains not being destroyed properly

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Domains not being destroyed properly
From: Anthony Wright <anthony@xxxxxxxxxxxxxxx>
Date: Tue, 21 Jun 2011 15:52:09 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Delivery-date: Tue, 21 Jun 2011 07:52:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110621133908.GE5650@xxxxxxxxxxxx>
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>
References: <4DFB3A90.70707@xxxxxxxxxxxxxxx> <1308657108.6920.25.camel@xxxxxxxxxxxxxxxxxxxxxx> <4E009530.2040108@xxxxxxxxxxxxxxx> <20110621133908.GE5650@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
On 21/06/2011 14:39, Konrad Rzeszutek Wilk wrote:
> On Tue, Jun 21, 2011 at 01:57:20PM +0100, Anthony Wright wrote:
>> On 21/06/2011 12:51, Ian Campbell wrote:
>>> On Fri, 2011-06-17 at 12:29 +0100, Anthony Wright wrote:
>>>> If I create a domain with 'xl create -e', and then shut the domain down
>>>> with 'xl shutdown' according to 'xl list' it gets stuck in state
>>>> '--ps-d', with a name of '(none)' and 0 ram, ('xm list' doesn't show the
>>>> domain).
>>>> If I destroy the domain with 'xl destroy' the domain is destroyed properly.
>>>>
>>>> If I create a domain with 'xl create' (without the '-e' option) and then
>>>> use 'xl shutdown', the domain is destroyed properly.
>>>> Since the 'xl shutdown' & 'xl destroy' give different results I presume
>>>> this is a bug.
>>> The -e option to xl create means don't daemonize to babysit this domain.
>>> One of the key bits of functionality of the daemon is to destroy the
>>> domain after it is shutdown. So if you use -e you need to do the destroy
>>> manually. So effectively you have gotten what you asked for ;-)
>>>
>> However I can't destroy the domain with 'xl destroy'. The command runs,
>> but the domain is still there afterwards.
> Is qemu-dm running for that domain? what happens if you kill it?
Ah ha.... that makes the domain go away.

Ok, to be clear what I did....

xl create -e domain-details
xl shutdown <domain>
(End up with a domain called (null) in state --ps-d according to xl list
kill the qemu-dm process associated with the domain
the domain goes away

note that I didn't need to do an 'xl destroy' the kill of qemu-dm was
sufficient

If I do....

xl create -e domain-details
xl destroy <domain>
the domain goes away



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