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] domu crash on reboot, cpus reparsed -- SOLVED

To: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] domu crash on reboot, cpus reparsed -- SOLVED
From: Daniele Palumbo <daniele@xxxxxxxxxxxx>
Date: Wed, 24 Jan 2007 15:55:59 +0100
Delivery-date: Wed, 24 Jan 2007 06:55:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
User-agent: KMail/1.9.4
hi.
this is true in 3.0.4, i think also in unstable but not sure.

when i reboot a domu, cpus is re-parsed.
but "list" type have no "split" attribute:
---
  File "/usr/lib/python2.4/site-packages/xen/xend/XendConfig.py", line 556, in
_parse_sxp
    cpus = []
AttributeError: 'list' object has no attribute 'split'
---

so, i made a little patch, including that one:
http://lists.xensource.com/archives/html/xen-devel/2007-01/msg00599.html

the point is:
if(cfg[cpus]) is a list, then skip next code.

seems to work for me, no crash and cpus parsed correctly.
it's up to you to close the bug i have opened
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=874
or to make a better patch :)

bye
d.

p.s.: is bugzilla alive?
p.p.s.: sorry for eventual double posting, forgot attachment and posted from 
non-subscribed mail

Attachment: fix_cpus_parsing.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>