|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-API] xen-ringwatch - NameError: global name 's' is not defined
Good day all,
I'm using XCP release 1.6.10-61809c.
Suddenly today I got flooded by xen-ringwatch:
Traceback (most recent call last):
File "/usr/sbin/xen-ringwatch", line 593, in ?
watches.update()
File "/usr/sbin/xen-ringwatch", line 414, in update
entry = RingWatch.new(ring)
File "/usr/sbin/xen-ringwatch", line 357, in new
state = ring.read()
File "/usr/sbin/xen-ringwatch", line 136, in read
state = RingState.from_sysfs(self.path())
File "/usr/sbin/xen-ringwatch", line 223, in from_sysfs
req = cls.Req.from_sysfs(_req, size=nr_ents)
File "/usr/sbin/xen-ringwatch", line 240, in from_sysfs
raise Exception, "Malformed %s input: %s" % \
NameError: global name 's' is not defined
So I edited the file (should I fill a bug? Is there a bugtracker?):
--- /usr/sbin/xen-ringwatch 2013-07-22 13:52:19.000000000 +0200
+++ /usr/sbin/xen-ringwatch 2013-07-22 13:52:30.000000000 +0200
@@ -238,7 +238,7 @@
match = cls._pattern.search(line)
if not match:
raise Exception, "Malformed %s input: %s" % \
- (cls.__name__, repr(s))
+ (cls.__name__, repr(line))
i = iter(match.groups())
for k in i:
Now I can get an error message:
# xen-ringwatch check -T3 --kick
Traceback (most recent call last):
File "/usr/sbin/xen-ringwatch", line 593, in ?
watches.update()
File "/usr/sbin/xen-ringwatch", line 414, in update
entry = RingWatch.new(ring)
File "/usr/sbin/xen-ringwatch", line 357, in new
state = ring.read()
File "/usr/sbin/xen-ringwatch", line 136, in read
state = RingState.from_sysfs(self.path())
File "/usr/sbin/xen-ringwatch", line 223, in from_sysfs
req = cls.Req.from_sysfs(_req, size=nr_ents)
File "/usr/sbin/xen-ringwatch", line 240, in from_sysfs
raise Exception, "Malformed %s input: %s" % \
Exception: Malformed Req input: 'req prod 2291415749 cons -2003551547 event
2291415750'
Unfortunately I don't understand what has gone wrong... could somebody help me
there?
Thanks,
Romain.
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou
falsifie. Merci.
This message and its attachments may contain confidential or privileged
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been
modified, changed or falsified.
Thank you.
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |