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 ___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
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 rangeThis 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@lists.xensource.com http://lists.xensource.com/xen-devel
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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Tue, Mar 20, 2007 at 05:57:02PM +0000, phcolaris wrote:> 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?It ought to work if you just leave this option out altogether. That would be best, given your problems!> 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''That is also a bug, but that one at least has been fixed: # HG changeset patch # User Ewan Mellor <ewan@xensource.com> # Date 1169721257 0 # Node ID 82c306ad212e3714cf9292611a0ddb8de7a3b5dc # Parent 32f7d3200a995c5ae9b0819c63d51c51e2febe73 Have the sxp parsing cope when the cpus field is a list, which can happen after a reboot.>From Daniele Palumbo <daniele@retaggio.net>.Signed-off-by: Ewan Mellor <ewan@xensource.com> diff -r 32f7d3200a99 -r 82c306ad212e tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Thu Jan 25 10:29:33 2007 +0000 +++ b/tools/python/xen/xend/XendConfig.py Thu Jan 25 10:34:17 2007 +0000 @@ -572,7 +572,7 @@ class XendConfig(dict): # "0-3,^1" -> [0,2,3] # "0-3,^1,1" -> [0,1,2,3] try: - if ''cpus'' in cfg: + if ''cpus'' in cfg and type(cfg[''cpus'']) != list: cpus = [] for c in cfg[''cpus''].split('',''): if c.find(''-'') != -1: Cheers, Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel