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] More info on 'Cannot destroy a domain created with Xen-API'

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] More info on 'Cannot destroy a domain created with Xen-API'
From: Jacek Konieczny <jajcus@xxxxxxxxxx>
Date: Wed, 4 Jul 2007 15:01:57 +0200
Delivery-date: Wed, 04 Jul 2007 05:59:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070704115055.GA7204@xxxxxxxxxxxxxxx>
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: <20070704115055.GA7204@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
On Wed, Jul 04, 2007 at 01:50:56PM +0200, Jacek Konieczny wrote:
> Hello,
> 
> I use Xen-API to manage may virtual machines. But sometimes something
> goes wrong and I gen an undestroyable VM.

Now I know exactly when it happens. I had 'actions_after_shutdown' 
for the virtual machines set to 'preserve'. When such domain where
halted withing guest system, it got power_state='Halted', but it still
had a domain_id set. When such domain is destroyed with Xen-API
VM.destroy() call, then some cleanup is missing and the domain stays in
Xend forever, taking some resources (like loop devices).

If I call VM.hard_shutdown() before VM.destroy() (no matter if guest OS
was running or halted), then the problem doesn't occur -- the VM is
destroyed completely. If I don't call hard_shutdown() then VM.destroy()
fails to fully do its job.

Greets,
        Jacek

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

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