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

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

To: Steven Hand <Steven.Hand@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] sHype changeset causes error in domU creation
From: Stefan Berger <stefanb@xxxxxxxxxx>
Date: Wed, 22 Jun 2005 23:01:29 -0400
Cc: George Washington Dunlap III <dunlapg@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Steven.Hand@xxxxxxxxxxxx, Reiner Sailer <sailer@xxxxxxxxxx>
Delivery-date: Thu, 23 Jun 2005 03:01:16 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E1DlElD-0005Fw-00@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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