All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacek Konieczny <jajcus@jajcus.net>
To: xen-devel@lists.xensource.com
Subject: More info on 'Cannot destroy a domain created with Xen-API'
Date: Wed, 4 Jul 2007 15:01:57 +0200	[thread overview]
Message-ID: <20070704130157.GC7204@jajo.eggsoft.pl> (raw)
In-Reply-To: <20070704115055.GA7204@jajo.eggsoft.pl>

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

      reply	other threads:[~2007-07-04 13:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-04 11:50 Cannot destroy a domain created with Xen-API Jacek Konieczny
2007-07-04 13:01 ` Jacek Konieczny [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070704130157.GC7204@jajo.eggsoft.pl \
    --to=jajcus@jajcus.net \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.