[libvirt] Restore after restart libvirtd

2009-10-29 Thread Diego Woitasen
Hi, I 'm playing with save/restore domains. It's working, but if I restart libvirtd after 'save domain file' and then try to restore it I get: error: Failed to restore domain from /tmp/domain.out error: operation failed: domain 'domainname' is already defined with uuid 17c77406-b6e3-621a-1fae-420

[libvirt] Release 0.3.1 of libvirt-java

2009-10-29 Thread Bryan Kearney
I have released version 0.3.1 of libvirt-java. Thanks to Thomas Treutner for his debugging help. You can get the latest from: Latest source tarball, rpm, and srpm: http://libvirt.org/sources/java/ Latest source code: git://libvirt.org/git/libvirt-java.git Maven: http://www.libvirt.org/maven2/ La

Re: [libvirt] Re: iSCSI Multi-IQN (Libvirt Support)

2009-10-29 Thread Dave Allan
shyam_i...@dell.com wrote: -Original Message- From: Dave Allan [mailto:dal...@redhat.com] Sent: Tuesday, October 27, 2009 2:57 AM To: Iyer, Shyam Cc: libvir-list@redhat.com; Bellad, Sudhir; Domsch, Matt; KM, Paniraja Subject: Re: [libvirt] Re: iSCSI Multi-IQN (Libvirt Support) O

[libvirt] Got Windows guests?

2009-10-29 Thread Richard W.M. Jones
Hello fellow Fedora, libvirt and libguestfs users, If you have any Windows guests, then you can help Fedora to support Windows guests better by spending a few minutes testing the Windows Registry feature we just added to libguestfs 1.0.75. You will need: - A Windows NT/200x/XP/Vista/7/... guest

Re: [libvirt] [PATCH 10/21] Don't let parent of daemon exit until basic initialization is done

2009-10-29 Thread Daniel Veillard
On Thu, Oct 29, 2009 at 03:29:38PM +, Daniel P. Berrange wrote: > On Thu, Oct 29, 2009 at 04:19:47PM +0100, Daniel Veillard wrote: > > On Fri, Oct 23, 2009 at 02:05:39PM +0100, Daniel P. Berrange wrote: > > > The daemonizing code lets the parent exit almost immediately. This > > > means that it

Re: [libvirt] QEMU driver thread safety rules

2009-10-29 Thread Daniel Veillard
On Wed, Oct 28, 2009 at 05:49:15PM +, Daniel P. Berrange wrote: > The current QEMU driver makes use of 2 locks > > - The driver lock > - The virDomainObjPtr lock > > The idea is the driver lock is not held for long periods of time. > Unfortunately we don't always deal with this very well -

Re: [libvirt] [PATCH 11/21] Move libvirtd event loop into background thread

2009-10-29 Thread Daniel Veillard
On Fri, Oct 23, 2009 at 02:05:40PM +0100, Daniel P. Berrange wrote: > The virStateInitialize() call for starting up stateful drivers > may require that the event loop is running already. This it is > neccessary to start the event loop before this call. At the > same time, network clients must not b

Re: [libvirt] [PATCH 10/21] Don't let parent of daemon exit until basic initialization is done

2009-10-29 Thread Daniel P. Berrange
On Thu, Oct 29, 2009 at 04:19:47PM +0100, Daniel Veillard wrote: > On Fri, Oct 23, 2009 at 02:05:39PM +0100, Daniel P. Berrange wrote: > > The daemonizing code lets the parent exit almost immediately. This > > means that it may think it has successfully started even when > > important failures occu

Re: [libvirt] [PATCH 10/21] Don't let parent of daemon exit until basic initialization is done

2009-10-29 Thread Daniel Veillard
On Fri, Oct 23, 2009 at 02:05:39PM +0100, Daniel P. Berrange wrote: > The daemonizing code lets the parent exit almost immediately. This > means that it may think it has successfully started even when > important failures occur like not being able to acquire the PID > file. It also means network so

Re: [libvirt] [PATCH 09/21] Pull signal setup code out into separate method

2009-10-29 Thread Daniel Veillard
On Fri, Oct 23, 2009 at 02:05:38PM +0100, Daniel P. Berrange wrote: > * daemon/libvirtd.c: Introduce a daemonSetupSignals() method > and put all signal handling code there > * daemon/libvirtd.h: Add sigread/sigwrite to qemud_server type > --- > daemon/libvirtd.c | 128 ++

Re: [libvirt] [PATCH 08/21] Fix duplicating logging of errors in libvirtd

2009-10-29 Thread Daniel Veillard
On Fri, Oct 23, 2009 at 02:05:37PM +0100, Daniel P. Berrange wrote: > The libvirt default error handling callback will print all errors > to stderr. The libvirtd default logging callback will do the same. > Set a no-op error handling callback in libvirtd to prevent this > duplication Argh :-) AC

Re: [libvirt] [PATCH 07/21] Fix initialization order bugs

2009-10-29 Thread Daniel Veillard
On Fri, Oct 23, 2009 at 02:05:36PM +0100, Daniel P. Berrange wrote: > virInitialize must be the first libvirt function called to ensure > threads, error handling & random number generator are all setup. > > Move UNIX socket directory permissions change to place of use > --- > daemon/libvirtd.c |

Re: [libvirt] Application using libvirt crashes when having concurrent TLS connections (gnutls problem)

2009-10-29 Thread Bryan Kearney
On 10/29/2009 10:39 AM, Thomas Treutner wrote: On Thursday 29 October 2009 01:30:34 Bryan Kearney wrote: Ok.. patch is attached. You can see a test build at: http://bkearney.fedorapeople.org/libvirt-0.3.1-test.jar Let me know if this works for you. If so, I will push a new build. Yes, works

Re: [libvirt] [PATCH 06/21] Misc cleanup to network socket init

2009-10-29 Thread Daniel Veillard
On Fri, Oct 23, 2009 at 02:05:35PM +0100, Daniel P. Berrange wrote: > * daemon/libvirtd.c: Change qemudNetworkInit() so that it doesn't try > to free its argument, leaving the caller todo cleanup as is normal > practice. Add missing policykit cleanup to qemudCleanup, and remove > server watch if se

Re: [libvirt] Application using libvirt crashes when having concurrent TLS connections (gnutls problem)

2009-10-29 Thread Thomas Treutner
On Thursday 29 October 2009 01:30:34 Bryan Kearney wrote: > Ok.. patch is attached. You can see a test build at: > > http://bkearney.fedorapeople.org/libvirt-0.3.1-test.jar > > Let me know if this works for you. If so, I will push a new build. Yes, works for me, thank you! A minor improvement: fi

Re: [libvirt] [PATCH 10/21] Don't let parent of daemon exit until basic initialization is done

2009-10-29 Thread Guido Günther
On Wed, Oct 28, 2009 at 06:52:49PM +, Daniel P. Berrange wrote: > On Wed, Oct 28, 2009 at 03:22:38PM +0100, Guido G?nther wrote: > > Hi Daniel, > > On Fri, Oct 23, 2009 at 02:05:39PM +0100, Daniel P. Berrange wrote: > > > The daemonizing code lets the parent exit almost immediately. This > > >

RE: [libvirt] Re: iSCSI Multi-IQN (Libvirt Support)

2009-10-29 Thread Shyam_Iyer
> -Original Message- > From: Dave Allan [mailto:dal...@redhat.com] > Sent: Tuesday, October 27, 2009 2:57 AM > To: Iyer, Shyam > Cc: libvir-list@redhat.com; Bellad, Sudhir; Domsch, Matt; KM, Paniraja > Subject: Re: [libvirt] Re: iSCSI Multi-IQN (Libvirt Support) > > > Ok, you're prop

Re: [libvirt] udev node device backend

2009-10-29 Thread Chris Lalancette
Daniel P. Berrange wrote: > On Wed, Oct 28, 2009 at 12:16:40PM +0100, Chris Lalancette wrote: >> Dave Allan wrote: >>> Attached is a fully functional version of the node device udev based >>> backend, incorporating all the feedback from earlier revisions. I broke >>> the new capability fields ou