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-users

RE: [Xen-users] Error: destroyDevice() takes exactly 3 arguments (2 give

To: "Jordi Prats" <jprats@xxxxxxxx>
Subject: RE: [Xen-users] Error: destroyDevice() takes exactly 3 arguments (2 given)
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Mon, 29 Jan 2007 18:26:58 +0100
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 29 Jan 2007 09:27:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45BDA11F.4060409@xxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdDdhjm5wRDJhaxS82yDbbWPc6EtAAU13pQ
Thread-topic: [Xen-users] Error: destroyDevice() takes exactly 3 arguments (2 given)
> -----Original Message-----
> From: Jordi Prats [mailto:jprats@xxxxxxxx] 
> Sent: 29 January 2007 07:24
> To: Petersson, Mats
> Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] Error: destroyDevice() takes exactly 
> 3 arguments (2 given)
> 
> It seems to me all this the right version. How can I check this out?

Well, obviously something is calling destroyDevice() with two arguments, but 
the function expects three - that's USUALLY caused by having different versions 
of the actual implementation of the function and the usage of the function. But 
I _THINK_ its possible to have python-code that calls a function passing two 
arguments and a function implemented with 3 arguments compile correctly without 
errors, so it's of course possible that you have just found a bug where 
something isn't passing a required third argument like it should. I can't tell 
you which of those two cases it is, since I don't even know how to reproduce 
the problem, nor which exact version of Xen you are using. 

It's not made any easier by the fact that there are several functions declared 
that are called "destroyDevice", and with a varying number of arguments (from 
two to four). 

You could perhaps find more info in "/var/log/xen/xend.log", which would 
indicate WHICH of the files are causing the error - but it's also possible that 
you need to enable some debugging elsewhere. It's been a while since I worked 
on that sort of problem, so I can't quite say. 

--
Mats
> 
> Thanks,
> Jordi
> 
> Petersson, Mats wrote:
> >  
> >
> >   
> >> -----Original Message-----
> >> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> >> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> >> Jordi Prats
> >> Sent: 26 January 2007 13:29
> >> To: Xen-users@xxxxxxxxxxxxxxxxxxx
> >> Subject: [Xen-users] Error: destroyDevice() takes exactly 3 
> >> arguments (2 given)
> >>
> >> Hi,
> >> Creating a new VM it abort showing this error:
> >>
> >> [root@inf16 ~]# xm create /etc/xen/rata.cfg
> >> Using config file "/etc/xen/rata.cfg".
> >> Error: destroyDevice() takes exactly 3 arguments (2 given)
> >> [root@inf16 ~]#
> >>     
> >
> > Probably that you've got mixed up versions of Xen python 
> files and tools. 
> >
> > --
> > Mats
> >   
> >> Anyone knows what is causing this?
> >>
> >> Thanks,
> >>
> >> -- 
> >> 
> ......................................................................
> >>          __
> >>         / /          Jordi Prats
> >>   C E / S / C A      Dept. de Sistemes
> >>       /_/            Centre de Supercomputació de Catalunya
> >>
> >>   Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
> >>   T. 93 205 6464 · F.  93 205 6979 · jprats@xxxxxxxx
> >> ..............................................................
> >> ........ 
> >>
> >>
> >> _______________________________________________
> >> Xen-users mailing list
> >> Xen-users@xxxxxxxxxxxxxxxxxxx
> >> http://lists.xensource.com/xen-users
> >>
> >>
> >>
> >>     
> >
> >
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> >
> >
> >   
> 
> 
> -- 
> ......................................................................
>          __
>         / /          Jordi Prats
>   C E / S / C A      Dept. de Sistemes
>       /_/            Centre de Supercomputació de Catalunya
> 
>   Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
>   T. 93 205 6464 · F.  93 205 6979 · jprats@xxxxxxxx
> ..............................................................
> ........ 
> 
> 
> 
> 



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>