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] xend start fails with CS 10986 & 10982

To: "Ewan Mellor" <ewan@xxxxxxxxxxxxx>, "Li, Xin B" <xin.b.li@xxxxxxxxx>
Subject: RE: [Xen-devel] xend start fails with CS 10986 & 10982
From: "Zheng, Jeff" <jeff.zheng@xxxxxxxxx>
Date: Wed, 9 Aug 2006 16:48:04 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 09 Aug 2006 01:48:42 -0700
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
Thread-index: Aca7joQ3fS2oXJaGSpykghHen53a4wAAe0zA
Thread-topic: [Xen-devel] xend start fails with CS 10986 & 10982
Here it is.

Bests
Jeff 

>-----Original Message-----
>From: Ewan Mellor [mailto:ewan@xxxxxxxxxxxxx] 
>Sent: 2006年8月9日 15:18
>To: Li, Xin B
>Cc: Zheng, Jeff; xen-devel@xxxxxxxxxxxxxxxxxxx
>Subject: Re: [Xen-devel] xend start fails with CS 10986 & 10982
>
>On Wed, Aug 09, 2006 at 03:10:23PM +0800, Li, Xin B wrote:
>
>> I have a fix, but I'm not sure if it's the right fix, 
>anyway, it works for me.
>
>No, I'm not sure that this is the right fix either.
>
>Jeff, could you post your xend-config.sxp file please?
>
>Cheers,
>
>Ewan.
>
>> >-----Original Message-----
>> >From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
>> >[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
>Zheng, Jeff
>> >Sent: 2006?$BG/8?$B7n9?$BF| 14:17
>> >To: xen-devel@xxxxxxxxxxxxxxxxxxx
>> >Subject: [Xen-devel] xend start fails with CS 10986 & 10982
>> >
>> >It complains:
>> >
>> >[root@vt-gs6 root]# xend start
>> >xend [ERROR] Reading config file /etc/xen/xend-config.sxp: Parser
>> >instance has no attribute 'buf'
>> >Traceback (most recent call last):
>> >  File "/usr/sbin/xend", line 49, in ?
>> >    from xen.xend.server import SrvDaemon
>> >  File "/usr/lib/python/xen/xend/server/SrvDaemon.py", line 21, in ?
>> >    import relocate
>> >  File "/usr/lib/python/xen/xend/server/relocate.py", line 26, in ?
>> >    from xen.xend import XendDomain
>> >  File "/usr/lib/python/xen/xend/XendDomain.py", line 33, in ?
>> >    import XendDomainInfo
>> >  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 39, in ?
>> >    import image
>> >  File "/usr/lib/python/xen/xend/image.py", line 28, in ?
>> >    from xen.xend.server.netif import randomMAC
>> >  File "/usr/lib/python/xen/xend/server/netif.py", line 33, in ?
>> >    xroot = XendRoot.instance()
>> >  File "/usr/lib/python/xen/xend/XendRoot.py", line 283, in instance
>> >    inst = XendRoot()
>> >  File "/usr/lib/python/xen/xend/XendRoot.py", line 104, in __init__
>> >    self.configure()
>> >  File "/usr/lib/python/xen/xend/XendRoot.py", line 116, in 
>configure
>> >    self.set_config()
>> >  File "/usr/lib/python/xen/xend/XendRoot.py", line 133, in 
>set_config
>> >    config = sxp.parse(fin)
>> >  File "/usr/lib/python/xen/xend/sxp.py", line 736, in parse
>> >    pin.input(buf)
>> >  File "/usr/lib/python/xen/xend/sxp.py", line 174, in input
>> >    self.input_char(c)
>> >  File "/usr/lib/python/xen/xend/sxp.py", line 187, in input_char
>> >    self.state.fn(c)
>> >  File "/usr/lib/python/xen/xend/sxp.py", line 273, in state_escape
>> >    self.input_char(c)
>> >  File "/usr/lib/python/xen/xend/sxp.py", line 187, in input_char
>> >    self.state.fn(c)
>> >  File "/usr/lib/python/xen/xend/sxp.py", line 294, in state_octal
>> >    elif len(self.buf):
>> >AttributeError: Parser instance has no attribute 'buf'
>> >
>> >Bests
>> >Jeff
>> >
>> >_______________________________________________
>> >Xen-devel mailing list
>> >Xen-devel@xxxxxxxxxxxxxxxxxxx
>> >http://lists.xensource.com/xen-devel
>> >
>
>Content-Description: tools_python_fix.patch
>> diff -r b3dd6ceda9bc tools/python/xen/xend/sxp.py
>> --- a/tools/python/xen/xend/sxp.py   Tue Aug 08 15:43:54 2006 +0100
>> +++ b/tools/python/xen/xend/sxp.py   Wed Aug 09 13:32:48 2006 +0800
>> @@ -281,26 +281,26 @@ class Parser:
>>                  raise ParseError(self, "invalid octal 
>escape: out of range " + self.state.buf)
>>              if len(self.state.buf) == 3:
>>                 octaldone()
>> -               
>> +
>>          def octaldone():
>>              d = chr(self.state.val)
>>              self.state.parent.buf += d
>>              self.pop_state()
>> -            
>> -        if self.at_eof():
>> -            raise ParseError(self, "unexpected EOF")
>> -        elif '0' <= c <= '7':
>> -            octaldigit(c)
>> -        elif len(self.buf):
>> -            octaldone()
>> -            self.input_char(c)
>> +
>> +            if self.at_eof():
>> +                raise ParseError(self, "unexpected EOF")
>> +            elif '0' <= c <= '7':
>> +                octaldigit(c)
>> +            elif len(self.buf):
>> +                octaldone()
>> +                self.input_char(c)
>>  
>>      def state_hex(self, c):
>>          def hexdone():
>>              d = chr(self.state.val)
>>              self.state.parent.buf += d
>>              self.pop_state()
>> -            
>> +
>>          def hexdigit(c, d):
>>              self.state.val *= 16
>>              self.state.val += ord(c) - ord(d)
>> @@ -309,18 +309,18 @@ class Parser:
>>                  raise ParseError(self, "invalid hex escape: 
>out of range " + self.state.buf)
>>              if len(self.state.buf) == 2:
>>                  hexdone()
>> -            
>> -        if self.at_eof():
>> -            raise ParseError(self, "unexpected EOF")
>> -        elif '0' <= c <= '9':
>> -            hexdigit(c, '0')
>> -        elif 'A' <= c <= 'F':
>> -            hexdigit(c, 'A')
>> -        elif 'a' <= c <= 'f':
>> -            hexdigit(c, 'a')
>> -        elif len(buf):
>> -            hexdone()
>> -            self.input_char(c)
>> +
>> +            if self.at_eof():
>> +                raise ParseError(self, "unexpected EOF")
>> +            elif '0' <= c <= '9':
>> +                hexdigit(c, '0')
>> +            elif 'A' <= c <= 'F':
>> +                hexdigit(c, 'A')
>> +            elif 'a' <= c <= 'f':
>> +                hexdigit(c, 'a')
>> +            elif len(buf):
>> +                hexdone()
>> +                self.input_char(c)
>>  
>>      def begin_atom(self, c):
>>          self.push_state(self.state_atom)
>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>

Attachment: xend-config.sxp
Description: xend-config.sxp

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