[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] sHype changeset causes error in domU creation



Stefan Berger
T. J. Watson Research Center, 
Hawthorne, NY, USA
tel#: +1 914 784 7767 , 
fax#: +1 914 784 6225
e-mail: stefanb@xxxxxxxxxx

xen-devel-bounces@xxxxxxxxxxxxxxxxxxx wrote on 06/22/2005 07:35:59 PM:

> 
> >The changeset adding ssid variable to domain creation causes the 
following 
> >error when I try to create a domain:
> >
[...]
> >   File "/usr/lib/python/xen/xend/image.py", line 122, in initDomain
> >     dom = xc.domain_create(dom = dom or 0, ssidref = ssidref)
> >OverflowError: long int too large to convert to int
> 
> Bizarre - this seems to be a python 2.4 only property... and is also 
> odd in that python is trying to convert ssidref to an int (rather than
> an unsigned one). Possibly a side effect of the unified int/long stuff, 
> possibly a minor change in the native method interface, possibly a 
> change to u32.py... 
> 

This is a problem that comes with an FC 4 install and the newer python 
that comes along with it.
Below a patch that solves the problem. ( default=~0 would also work )

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>

diff -uprN ./xeno-unstable.bk.orig/tools/python/xen/xm/create.py 
./xeno-unstable.bk/tools/python/xen/xm/create.py
--- ./xeno-unstable.bk.orig/tools/python/xen/xm/create.py 2005-06-22 
22:38:51.000000000 -0400
+++ ./xeno-unstable.bk/tools/python/xen/xm/create.py 2005-06-22 
22:43:57.000000000 -0400
@@ -121,7 +121,7 @@ gopts.var('memory', val='MEMORY',
           use="Domain memory in MB.")
 
 gopts.var('ssidref', val='SSIDREF',
-          fn=set_u32, default=0xffffffff,
+          fn=set_u32, default=-1,
           use="Security Identifier.")
 
 gopts.var('maxmem', val='MEMORY',



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.