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

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] sHype changeset causes error in domU creation
From: George Washington Dunlap III <dunlapg@xxxxxxxxx>
Date: Wed, 22 Jun 2005 12:13:09 -0400 (EDT)
Delivery-date: Wed, 22 Jun 2005 16:12:08 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 op_create
    dominfo = self.xd.domain_create(config)
File "/usr/lib/python/xen/xend/XendDomain.py", line 276, in domain_create
    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 construct
    self.init_domain()
File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 670, in init_domain id = self.image.initDomain(self.id, self.memory, self.ssidref, cpu, self.cpu_weight)
  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
---

Changing the following line makes a temporary fix:

tools/python/xen/xm/create.py
--
 gopts.var('ssidref', val='SSIDREF',
-          fn=set_u32, default=0xfffffff,
           use="Security Identifier.")
++
gopts.var('ssidref', val='SSIDREF',
+          fn=set_u32, default=0xffff,
          use="Security Identifier.")
---

I'm using the following python version:

Python 2.4.1 (#1, May 19 2005, 16:02:59)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-24)] on linux2

Peace,
 -George

+-------------------+----------------------------------------
| dunlapg@xxxxxxxxx | http://www-personal.umich.edu/~dunlapg +-------------------+----------------------------------------
|  Who could move a mountain, who could love their enemy?
|  Who could rejoice in pain, and turn the other cheek?
|       - Rich Mullins, "Surely God is With Us"
+------------------------------------------------------------
| Outlaw Junk Email! Support HR 1748 (www.cauce.org)

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