[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] xen-ringwatch - NameError: global name 's' is not defined


  • To: "xen-api@xxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxx>
  • From: <rdartigues.ext@xxxxxxxxxx>
  • Date: Mon, 22 Jul 2013 13:56:12 +0200
  • Accept-language: fr-FR
  • Acceptlanguage: fr-FR
  • Delivery-date: Mon, 22 Jul 2013 12:13:35 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
  • Thread-index: Ac6G0nZ0EWZOYkNuR5qexk9zc3M0Sg==
  • Thread-topic: 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:
--- /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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.