search for: sxpparser

Displaying 4 results from an estimated 4 matches for "sxpparser".

Did you mean: pparser
2015 Aug 21
2
Bug#763102: xen-utils-common: xen-init-list fails to parse xm output -> cannot shutdown domains with service xendomains
...osed as xend only since this code can be used on upgrade (as part of rebooting from xend into a new system). I don't have any systems to test but I think the fix is trivially the following: @@ -51,7 +51,7 @@ class DataJSON(Data): class DataSXP(Data): def __init__(self, p): - s = SXPParser()(p) + s = SXPParser.loads(p) self.data = d = {} for i in s: if i and i[0] == 'domain': Please can you try making that change to /usr/lib/xen-common/bin/xen -init-list and report whether or not it works? I've also published the fix to the feature/...
2014 Sep 27
5
Bug#763102: xen-utils-common: xen-init-list fails to parse xm output -> cannot shutdown domains with service xendomains
...fails with the following message: /usr/lib/xen-common/bin/xen-init-list Traceback (most recent call last): File "/usr/lib/xen-common/bin/xen-init-list", line 70, in <module> d = DataSXP(p) File "/usr/lib/xen-common/bin/xen-init-list", line 52, in __init__ s = SXPParser()(p) TypeError: 'SXPParser' object is not callable The following patch fixes the problem: diff -ur a/usr/lib/xen-common/bin/xen-init-list b/usr/lib/xen-common/bin/xen- init-list --- a/usr/lib/xen-common/bin/xen-init-list 2014-09-06 22:39:31.000000000 +0200 +++ b/usr/lib/xen-common/bi...
2015 May 29
1
Bug#787193: xen-utils-common: xen-init-list crashes with TypeError, renders reboots unfeasible after upgrade from wheezy to jessie
...hutdown, we can see this message: /usr/lib/xen-common/bin/xen-init-list Traceback (most recent call last): File "/usr/lib/xen-common/bin/xen-init-list", line 70, in <module> d = DataSXP(p) File "/usr/lib/xen-common/bin/xen-init-list", line 52, in __init__ s = SXPParser()(p) TypeError: 'SXPParser' object is not callable but after this, I get this error: mount: / is busy. it then results in the reboot process to hang after the line "Rebooting." and I get messages each 2mins about the "reboot" task being stuck for more than 120s. I f...
2015 Aug 22
2
Bug#763102: Bug#763102: xen-utils-common: xen-init-list fails to parse xm output -> cannot shutdown domains with service xendomains
...at need to be fixed. I'm using it since November. Thanks. Since loads is a classmethod I think the right fix for that issue is to s/self/cls/ in the body rather than s/cls/self/ in the declaration. I've updated the feature/bug763102 with the following extra patch: @@ -14,7 +14,7 @@ class SXPParser(object): def loads(cls, input): data = [] stack = [] - for match in self.tokenizer_re.finditer(input): + for match in cls.tokenizer_re.finditer(input): if match.group('open'): stack.append([]) elif match.group(&...