[Pkg-xen-devel] Bug#695041: Bug#695041: "service xendomains stop" sleeps XENDOMAINS_STOP_MAXWAIT seconds for every domain

Bastian Blank waldi at debian.org
Mon Dec 3 15:05:51 UTC 2012


On Mon, Dec 03, 2012 at 03:35:05PM +0100, Robert Hofer wrote:
> so check_running is also called with the name
> The output of "xm domid <name>" for a running domain is the ID of
> the domain and "None" for a known, but not runing domain. The return
> code for both cases is 0. So the function always returns 0. With xen
> 3 and no xend, this code was correct.

With xl and 4.1:
| # xen domid test; echo $?
| Can't get domid of domain name 'test', maybe this domain does not exist.
| 1

With xm and 4.1:
| # xen domid test; echo $?
| Error: Domain 'test' does not exist.
| 3

So this command fails for not existing domains.

> I suggest to parse the output of "xm list -l <name> " for  "(status 0)".

Nope, this does not work.

Bastian

-- 
It is a human characteristic to love little animals, especially if
they're attractive in some way.
		-- McCoy, "The Trouble with Tribbles", stardate 4525.6



More information about the Pkg-xen-devel mailing list