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@lists.xensource.com http://lists.xensource.com/xen-devel
I have a fix, but I''m not sure if it''s the right fix, anyway, it works for me. -Xin>-----Original Message----- >From: xen-devel-bounces@lists.xensource.com >[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Zheng, Jeff >Sent: 2006年8月9日 14:17 >To: xen-devel@lists.xensource.com >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@lists.xensource.com >http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
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@lists.xensource.com > >[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Zheng, Jeff > >Sent: 2006?$BG/8?$B7n9?$BF| 14:17 > >To: xen-devel@lists.xensource.com > >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@lists.xensource.com > >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@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Here it is. Bests Jeff>-----Original Message----- >From: Ewan Mellor [mailto:ewan@xensource.com] >Sent: 2006年8月9日 15:18 >To: Li, Xin B >Cc: Zheng, Jeff; xen-devel@lists.xensource.com >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@lists.xensource.com >> >[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of >Zheng, Jeff >> >Sent: 2006?$BG/8?$B7n9?$BF| 14:17 >> >To: xen-devel@lists.xensource.com >> >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@lists.xensource.com >> >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@lists.xensource.com >> http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Wed, Aug 09, 2006 at 04:48:04PM +0800, Zheng, Jeff wrote:> Here it is.Thanks. The problem was broken parsing in the sxp library, which was getting tripped up by the new addition of localhost\.localdomain to the example config file. You could remove that entry, or wait for my patches to come through. Cheers, Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Thanks. I can startup VMX domain by comment out the line. Bests Jeff>-----Original Message----- >From: Ewan Mellor [mailto:ewan@xensource.com] >Sent: 2006年8月9日 17:15 >To: Zheng, Jeff >Cc: Li, Xin B; xen-devel@lists.xensource.com >Subject: Re: [Xen-devel] xend start fails with CS 10986 & 10982 > >On Wed, Aug 09, 2006 at 04:48:04PM +0800, Zheng, Jeff wrote: > >> Here it is. > >Thanks. The problem was broken parsing in the sxp library, >which was getting >tripped up by the new addition of localhost\.localdomain to >the example config >file. You could remove that entry, or wait for my patches to >come through. > >Cheers, > >Ewan. >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel