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/
Home Products Support Community News


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

To: George Washington Dunlap III <dunlapg@xxxxxxxxx>
Subject: Re: [Xen-devel] sHype changeset causes error in domU creation
From: Steven Hand <Steven.Hand@xxxxxxxxxxxx>
Date: Thu, 23 Jun 2005 00:35:59 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Steven.Hand@xxxxxxxxxxxx
Delivery-date: Wed, 22 Jun 2005 23:34:58 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: Message from George Washington Dunlap III <dunlapg@xxxxxxxxx> of "Wed, 22 Jun 2005 12:13:09 EDT." <Pine.LNX.4.60.0506221208470.22533@xxxxxxxxxxxxxxxxxxxxxx>
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
>The changeset adding ssid variable to domain creation causes the following 
>error when I try to create a domain:
>Traceback (most recent call last):
>   File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 63, in 
>     dominfo = self.xd.domain_create(config)
>   File "/usr/lib/python/xen/xend/XendDomain.py", line 276, in 
>     dominfo = XendDomainInfo.create(self.dbmap, config)
>   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 159, in create
>     vm.construct(config)
>   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 510, in 
>     self.init_domain()
>   File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 670, in 
>     id = self.image.initDomain(self.id, self.memory, self.ssidref, cpu, 
>   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... 

>Changing the following line makes a temporary fix:

Well not really a fix so much as a "make the exception go away" :-) 
I'll take a look tomorrow at the best way to fix this - may be that
Keir's suggestion of using 0 as the 'null' ssidref is correct, although
zero currently has another meaning... 



Xen-devel mailing list