Re: [Libvir] Fix handling of config files with duplicate named guests

2006-12-19 Thread Daniel P. Berrange
On Tue, Dec 19, 2006 at 04:35:00PM -0500, Daniel Veillard wrote: > On Tue, Dec 19, 2006 at 07:26:26PM +, Daniel P. Berrange wrote: > > On Tue, Dec 19, 2006 at 02:05:32PM -0500, Daniel Veillard wrote: > > > > +value = malloc(sizeof(virConfValue)); > > > > +value->str = strdup(fil

Re: [Libvir] Fix handling of config files with duplicate named guests

2006-12-19 Thread Daniel Veillard
On Tue, Dec 19, 2006 at 07:26:26PM +, Daniel P. Berrange wrote: > On Tue, Dec 19, 2006 at 02:05:32PM -0500, Daniel Veillard wrote: > > > +value = malloc(sizeof(virConfValue)); > > > +value->str = strdup(filename); > > > +free(value); > > > +return (-1); >

Re: [Libvir] Fix handling of config files with duplicate named guests

2006-12-19 Thread Daniel P. Berrange
On Tue, Dec 19, 2006 at 02:05:32PM -0500, Daniel Veillard wrote: > On Tue, Dec 19, 2006 at 06:48:16PM +, Daniel P. Berrange wrote: > > The code for managing config files in /etc/xen assumed that the filename of > > the config matched the name of the guest defined inside. One might thing > > thi

Re: [Libvir] Fix handling of config files with duplicate named guests

2006-12-19 Thread Daniel Veillard
On Tue, Dec 19, 2006 at 06:48:16PM +, Daniel P. Berrange wrote: > The code for managing config files in /etc/xen assumed that the filename of > the config matched the name of the guest defined inside. One might thing > this a reasonable assumption, but in the wild I've had reports from users >

[Libvir] Fix handling of config files with duplicate named guests

2006-12-19 Thread Daniel P. Berrange
The code for managing config files in /etc/xen assumed that the filename of the config matched the name of the guest defined inside. One might thing this a reasonable assumption, but in the wild I've had reports from users whom have various config files for the same guest, but with different settin

Re: [Libvir] Still can't run a simple python test libvirt !

2006-12-19 Thread Omer Khalid
Aha.. I thought so :-) Ok.. I will try to deploy this with later Python versions (2.5) perhaps! Thanks ! Omer On 12/19/06, Daniel P. Berrange <[EMAIL PROTECTED]> wrote: On Tue, Dec 19, 2006 at 04:40:43PM +0100, Omer Khalid wrote: > Thank you Daniel! So setting up the PYTHONPATH variable did

Re: [Libvir] Still can't run a simple python test libvirt !

2006-12-19 Thread Daniel P. Berrange
On Tue, Dec 19, 2006 at 04:40:43PM +0100, Omer Khalid wrote: > Thank you Daniel! So setting up the PYTHONPATH variable did the trick! > Although the simple test executes, but with an interesting error complaining > about an undefined symbol in libvirtmod.so > > [EMAIL PROTECTED] libvirt]# python t

Re: [Libvir] Still can't run a simple python test libvirt !

2006-12-19 Thread Omer Khalid
Thank you Daniel! So setting up the PYTHONPATH variable did the trick! Although the simple test executes, but with an interesting error complaining about an undefined symbol in libvirtmod.so [EMAIL PROTECTED] libvirt]# python testLibvirt.py Traceback (most recent call last): File "testLibvirt.py

Re: [Libvir] Still can't run a simple python test libvirt !

2006-12-19 Thread Daniel P. Berrange
On Tue, Dec 19, 2006 at 04:03:43PM +0100, Omer Khalid wrote: > Hi, > > I am still unable to run my simple libvirt test! > > I checked out the code from libvirt cvs and following the instructions till > 'make install'. It all went well. So then I ran my simply python test, as > shown here (http://

[Libvir] Still can't run a simple python test libvirt !

2006-12-19 Thread Omer Khalid
Hi, I am still unable to run my simple libvirt test! I checked out the code from libvirt cvs and following the instructions till 'make install'. It all went well. So then I ran my simply python test, as shown here (http://www.libvirt.org/python.html). It keeps on giving me the following error.