From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Wright Subject: Domains not being destroyed properly Date: Fri, 17 Jun 2011 12:29:20 +0100 Message-ID: <4DFB3A90.70707@overnetdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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. As an extra question... Is there a way to be notified when a domain is destroyed other than leaving the 'xl create' process lying around? I'd like to know when any domain is destroyed, and leaving a large number of processes lying around just to be able to do this seems rather ugly. In the past I've editted some of the python code to achieve this, but my patch doesn't work with 4.1, so I'm seeing if there's an official way to do this before I work out a new patch. thanks, Anthony.