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] Error: string index out of range

To: phcolaris <phcolaris@xxxxxxxxxxx>
Subject: Re: [Xen-devel] Error: string index out of range
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Tue, 20 Mar 2007 17:42:01 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 20 Mar 2007 10:41:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1174410950.1129.10.camel@localhost>
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>
References: <1174410950.1129.10.camel@localhost>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Tue, Mar 20, 2007 at 05:15:50PM +0000, phcolaris wrote:

> hi all,
> 
> got this error when creating domU, got 3.0.4_13138 xen on 2.6.20.2-4
> 
> any idea?
> thanks
> phil
> 
> [2007-03-20 17:07:24 xend 3421] ERROR (xmlrpclib2:283) string index out
> of range
> Traceback (most recent call last):
>   File "/usr/lib64/python2.5/site-packages/xen/util/xmlrpclib2.py", line
> 262, in _marshaled_dispatch
>     response = self._dispatch(method, params)
>   File "/usr/lib64/python2.5/SimpleXMLRPCServer.py", line 415, in
> _dispatch
>     return func(*params)
>   File
> "/usr/lib64/python2.5/site-packages/xen/xend/server/XMLRPCServer.py",
> line 69, in domain_create
>     info = XendDomain.instance().domain_create(config)
>   File "/usr/lib64/python2.5/site-packages/xen/xend/XendDomain.py", line
> 870, in domain_create
>     dominfo = XendDomainInfo.create(config)
>   File "/usr/lib64/python2.5/site-packages/xen/xend/XendDomainInfo.py",
> line 95, in create
>     vm = XendDomainInfo(XendConfig.XendConfig(sxp_obj = config))
>   File "/usr/lib64/python2.5/site-packages/xen/xend/XendConfig.py", line
> 301, in __init__
>     self._sxp_to_xapi(sxp_obj)
>   File "/usr/lib64/python2.5/site-packages/xen/xend/XendConfig.py", line
> 600, in _sxp_to_xapi
>     cfg = self._parse_sxp(sxp_cfg)
>   File "/usr/lib64/python2.5/site-packages/xen/xend/XendConfig.py", line
> 573, in _parse_sxp
>     if c[0] == '^':
> IndexError: string index out of range

This looks like you have passed a cpus configuration entry that is empty, or
has an empty part -- it should be a comma-separated string something like
"0,1,3-4,6", but it looks like you've written "0," or just the empty string.

Does that make sense?

The fact that this is failing so badly is a bug in XendConfig, and it looks
like it's still present.  I'll fix it.

Ewan.

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

<Prev in Thread] Current Thread [Next in Thread>