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] Re: xm list dropping domain?

To: Tim Freeman <tfreeman@xxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: xm list dropping domain?
From: Mike Wray <mike.wray@xxxxxxxxxx>
Date: Tue, 05 Oct 2004 14:09:43 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 05 Oct 2004 14:22:36 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <20041001141257.7e705526@prana-bindu>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <20041001140045.4a640bd3@prana-bindu> <20041001141257.7e705526@prana-bindu>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910
Tim Freeman wrote:

On Fri, 1 Oct 2004 14:00:45 -0500
Tim Freeman <tfreeman@xxxxxxxxxxx> wrote:


I rebooted xenU from console (dom2) and exited (ctr-]).  xm list does
not report 2 anymore yet I can log into 2 via console and it is running
just fine.  Is this a bug?  I'll pull/rebuild and see what happens..
(this is xen-2.0, cset 1.1321.1.1, rh7.3 dom0/dom1)


OK, I'm sorry, it eventually comes back if I repeatedly query.  What is
the criteria for being in xm list?

It has to exist as a domain when xend asks the xen kernel about it.
During a reboot the domain actually goes away and is recreated, so
there's a window where it doesn't exist and is about to be recreated.
This is because the domain's devices have to be released and
its memory image destroyed before it can be 'rebooted'.
Xen itself doesn't know about 'reboot'.


I'm testing some controller code and I want to be able to poll at any
time for the status of domains no matter their state (the user could be
rebooting).  I want the code to also respond to changes in state (now,
just to log).

If I made a direct call to Xend, would it produce different information
during this window? (I assume not, though I am off to figure out how to
make direct calls..)


Xm just uses the direct http interface underneath so you would get the same
domain list. If you're writing a controller you would probably find it
useful to connect to xend port 8001 and read the domain events.
There you will see lifecycle events for all domains without having to poll.

Try 'telnet localhost 8001' and start/stop/reboot/migrate a domain and
you'll see the events.

In the past xen itself was in control of domain id so xend couldn't create
a domain object with the correct id until xen had made a domain - this
made it tricky to handle create/reboot because domain objects are indexed by id.

Now that xend is in control of domain id I've been thinking of rejigging it
so there is always a domain object - but even then reboot is tricky because
of destroying/recreating the devices and memory image.

From python you can use XendClient to call the api directly - either
synchronously or asynchronously. From Java you can use Jakarta commons
httpclient, and from C you can use libcurl (see the xfrd source in xen).

Hope this helps,

Mike




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel