Re: [libvirt] some unsorted questions

2008-07-17 Thread Daniel Veillard
On Thu, Jul 17, 2008 at 01:29:45AM +0200, Stefan de Konink wrote: Now personally I think it is smart to check if a domain is already defined, or in use. If this is not the case libvirtd and the client get this message: libvir: Xen Daemon error : GET operation failed: That doesn't seem

Re: [libvirt] some unsorted questions

2008-07-17 Thread Daniel P. Berrange
On Thu, Jul 17, 2008 at 01:29:45AM +0200, Stefan de Konink wrote: Secondly; I am a bit distracted by the domids concept. These ids are not available before a domain is launched. I think it would be interesting to allow signed values. In this way the 'defined' not active domains would get a

Re: [libvirt] some unsorted questions

2008-07-17 Thread Daniel P. Berrange
On Thu, Jul 17, 2008 at 01:29:45AM +0200, Stefan de Konink wrote: If this gets implemented I would suggest a call that fetches all domains from a running system and not only the defined or only the active ones. This is a good idea regardless. The current APIs require an application todo

Re: [libvirt] some unsorted questions

2008-07-17 Thread Stefan de Konink
Daniel P. Berrange schreef: In the case of the Xen drivers, this requires O(n) calls to XenD which are rather expensive. XenD does actually have ability to return data about all domains in a single request. So if we had an API for fetching all domains at once it'd only require O(1) expensive

Re: [libvirt] some unsorted questions

2008-07-17 Thread Cole Robinson
Daniel P. Berrange wrote: On Thu, Jul 17, 2008 at 01:29:45AM +0200, Stefan de Konink wrote: If this gets implemented I would suggest a call that fetches all domains from a running system and not only the defined or only the active ones. This is a good idea regardless. The current APIs

Re: [libvirt] some unsorted questions

2008-07-17 Thread Daniel P. Berrange
On Thu, Jul 17, 2008 at 10:22:05AM -0400, Cole Robinson wrote: Daniel P. Berrange wrote: On Thu, Jul 17, 2008 at 01:29:45AM +0200, Stefan de Konink wrote: If this gets implemented I would suggest a call that fetches all domains from a running system and not only the defined or only the

[libvirt] some unsorted questions

2008-07-16 Thread Stefan de Konink
Hi, Currently I'm working on my webserver thingie. And I notice some annoying error messages. Generally I use a predefined host to do the basic setup of defining a domain. So a client can shoot its XML directly into a post request, or we set it up by parsing some parameters from the URI.