All of lore.kernel.org
 help / color / mirror / Atom feed
From: phcolaris <phcolaris@yahoo.co.uk>
To: Ewan Mellor <ewan@xensource.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Error: string index out of range
Date: Tue, 20 Mar 2007 17:57:02 +0000	[thread overview]
Message-ID: <1174413422.1129.23.camel@localhost> (raw)
In-Reply-To: <20070320174201.GA17729@leeni.uk.xensource.com>

used the cpus = "" so can xen pickup which one to use
I assume that I could use cpus="0" and vcpus=1 to make sure that the
domU use only that cpu, right?

but even with cpus="0,1" and vcpus=2 got this error:

[2007-03-20 17:51:29 xend.XendDomainInfo 3421] ERROR
(XendDomainInfo:1169) Failed to restart domain 4.
Traceback (most recent call last):
  File "/usr/lib64/python2.5/site-packages/xen/xend/XendDomainInfo.py",
line 1155, in _restart
    new_dom = 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
566, in _parse_sxp
    for c in cfg['cpus'].split(','):
AttributeError: 'list' object has no attribute 'split'







On Tue, 2007-03-20 at 17:42 +0000, Ewan Mellor wrote:
> 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.


		
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" – The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html

  reply	other threads:[~2007-03-20 17:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 17:15 Error: string index out of range phcolaris
2007-03-20 17:42 ` Ewan Mellor
2007-03-20 17:57   ` phcolaris [this message]
2007-03-20 18:12     ` Ewan Mellor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1174413422.1129.23.camel@localhost \
    --to=phcolaris@yahoo.co.uk \
    --cc=ewan@xensource.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.