Advertisement
Guest User

Untitled

a guest
Feb 5th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.61 KB | None | 0 0
  1. 013-02-05 13:45:30,040 UNHANDLED EXCEPTION (2013-02-05 13:45:30.035542)
  2. Working directory: /opt/noc
  3. <type 'exceptions.UnicodeEncodeError'>
  4. 'ascii' codec can't encode characters in position 25-32: ordinal not in range(128)
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /usr/lib/python2.7/threading.py (Line: 442)
  8. Function: __init__
  9. 435 def __init__(self, group=None, target=None, name=None,
  10. 436 args=(), kwargs=None, verbose=None):
  11. 437 assert group is None, "group argument must be None for now"
  12. 438 _Verbose.__init__(self, verbose)
  13. 439 if kwargs is None:
  14. 440 kwargs = {}
  15. 441 self.__target = target
  16. 442 ==> self.__name = str(name or _newname())
  17. 443 self.__args = args
  18. 444 self.__kwargs = kwargs
  19. 445 self.__daemonic = self._set_daemon()
  20. 446 self.__ident = None
  21. 447 self.__started = Event()
  22. 448 self.__stopped = False
  23. Variables:
  24. group = None
  25. target = None
  26. self = repr() failed
  27. args = ()
  28. name =
  29. u'Generic.get_discovery_id(\u0424\u043b\u043e\u0442\u0441\u043a\u0430\u044f 1 \u043e\u0444\u0438\u0441, 10.3.0.13)'
  30. kwargs = {}
  31. verbose = None
  32. ------------------------------------------------------------------------
  33. File: /opt/noc/sa/script/script.py (Line: 204)
  34. Function: __init__
  35. 197 # Test encoding
  36. 198 try:
  37. 199 u"test".encode(v)
  38. 200 self.encoding = v
  39. 201 self.debug("Using '%s' encoding" % v)
  40. 202 except LookupError:
  41. 203 self.error("Unknown encoding: '%s'" % v)
  42. 204 ==> super(Script, self).__init__(name=self.debug_name, kwargs=kwargs)
  43. 205 self.activator = _activator
  44. 206 self.servers = _activator.servers
  45. 207 self.profile = profile
  46. 208 self.cli_provider = None
  47. 209 self.http = HTTPProvider(self)
  48. 210 self.snmp = SNMPProvider(self)
  49. Variables:
  50. a = <noc.sa.protocols.sae_pb2.KWArg object at 0x2c80530>
  51. profile = <noc.sa.profiles.Huawei.VRP.Profile object at 0x2c66fd0>
  52. timeout = 120
  53. parent = None
  54. self = repr() failed
  55. p = u'10.3.0.13'
  56. object_name =
  57. u'\u0424\u043b\u043e\u0442\u0441\u043a\u0430\u044f 1 \u043e\u0444\u0438\u0441'
  58. access_profile = <noc.sa.protocols.sae_pb2.AccessProfile object at 0x2c80a10>
  59. kwargs = {}
  60. _activator = <noc.sa.activator.activator.Activator object at 0x216bfd0>
  61. ------------------------------------------------------------------------
  62. File: /opt/noc/sa/activator/activator.py (Line: 403)
  63. Function: run_script
  64. 396 Begin script execution
  65. 397 """
  66. 398 pv, pos, sn = script_name.split(".", 2)
  67. 399 profile = profile_registry["%s.%s" % (pv, pos)]()
  68. 400 script_class = script_registry[script_name]
  69. 401 if not timeout:
  70. 402 timeout = script_class.TIMEOUT
  71. 403 ==> script = script_class(profile, self, object_name, access_profile, timeout, **kwargs)
  72. 404 logging.info("Script %s(%s). Timeout set to %s" % (script_name,
  73. 405 access_profile.address, timeout))
  74. 406 with self.script_lock:
  75. 407 self.script_threads[script] = callback
  76. 408 logging.info("%d script threads (%d max)" % (
  77. 409 len(self.script_threads), self.max_script_threads))
  78. Variables:
  79. profile = <noc.sa.profiles.Huawei.VRP.Profile object at 0x2c66fd0>
  80. pv = u'Huawei'
  81. access_profile = <noc.sa.protocols.sae_pb2.AccessProfile object at 0x2c80a10>
  82. script_class = <class 'noc.sa.profiles.Generic.get_discovery_id.Script'>
  83. self = <noc.sa.activator.activator.Activator object at 0x216bfd0>
  84. pos = u'VRP'
  85. script_name = u'Huawei.VRP.get_discovery_id'
  86. callback = <function script_callback at 0x2623500>
  87. object_name =
  88. u'\u0424\u043b\u043e\u0442\u0441\u043a\u0430\u044f 1 \u043e\u0444\u0438\u0441'
  89. sn = u'get_discovery_id'
  90. timeout = 120
  91. kwargs = {}
  92. ------------------------------------------------------------------------
  93. File: /opt/noc/sa/activator/service.py (Line: 91)
  94. Function: script
  95. 84 return
  96. 85 # Deserialize additional arguments
  97. 86 kwargs = {}
  98. 87 for a in request.kwargs:
  99. 88 kwargs[str(a.key)] = cPickle.loads(str(a.value))
  100. 89 self.activator.run_script(request.object_name, request.script,
  101. 90 request.access_profile, script_callback, request.timeout,
  102. 91 ==> **kwargs)
  103. 92
  104. 93 def ping_check(self, controller, request, done):
  105. 94 """
  106. 95 Start ping check of addresses
  107. 96 """
  108. 97 def ping_check_callback(unreachable):
  109. Variables:
  110. profile = <class 'noc.sa.profiles.Huawei.VRP.Profile'>
  111. script_class = <class 'noc.sa.profiles.Generic.get_discovery_id.Script'>
  112. script_callback = <function script_callback at 0x2623500>
  113. request = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x2c809a8>
  114. controller = <noc.sa.rpc.Controller object at 0x2c7fb90>
  115. done =
  116. <bound method ActivatorSocket.send_response of <ActivatorSocket(0x2635150, 127.0.0.1:19701, connected)>>
  117. kwargs = {}
  118. self = <noc.sa.activator.service.Service object at 0x1f582d0>
  119. ------------------------------------------------------------------------
  120. File: /opt/noc/contrib/lib/protobuf-2.4.1-py2.7.egg/google/protobuf/service_reflection.py (Line: 171)
  121. Function: _CallMethod
  122. 164 request: Request protocol message.
  123. 165 callback: A callback to invoke after the method has completed.
  124. 166 """
  125. 167 if method_descriptor.containing_service != self.descriptor:
  126. 168 raise RuntimeError(
  127. 169 'CallMethod() given method descriptor for wrong service type.')
  128. 170 method = getattr(srvc, method_descriptor.name)
  129. 171 ==> return method(rpc_controller, request, callback)
  130. 172
  131. 173 def _GetRequestClass(self, method_descriptor):
  132. 174 """Returns the class of the request protocol message.
  133. 175
  134. 176 Args:
  135. 177 method_descriptor: Descriptor of the method for which to return the
  136. Variables:
  137. srvc = <noc.sa.activator.service.Service object at 0x1f582d0>
  138. method_descriptor = <google.protobuf.descriptor.MethodDescriptor object at 0x1ece9d0>
  139. self = <google.protobuf.service_reflection._ServiceBuilder object at 0x1ecec10>
  140. request = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x2c809a8>
  141. rpc_controller = <noc.sa.rpc.Controller object at 0x2c7fb90>
  142. callback =
  143. <bound method ActivatorSocket.send_response of <ActivatorSocket(0x2635150, 127.0.0.1:19701, connected)>>
  144. method =
  145. <bound method Service.script of <noc.sa.activator.service.Service object at 0x1f582d0>>
  146. ------------------------------------------------------------------------
  147. File: /opt/noc/contrib/lib/protobuf-2.4.1-py2.7.egg/google/protobuf/service_reflection.py (Line: 146)
  148. Function: _WrapCallMethod
  149. 139
  150. 140 # CallMethod needs to operate with an instance of the Service class. This
  151. 141 # internal wrapper function exists only to be able to pass the service
  152. 142 # instance to the method that does the real CallMethod work.
  153. 143 def _WrapCallMethod(srvc, method_descriptor,
  154. 144 rpc_controller, request, callback):
  155. 145 return self._CallMethod(srvc, method_descriptor,
  156. 146 ==> rpc_controller, request, callback)
  157. 147 self.cls = cls
  158. 148 cls.CallMethod = _WrapCallMethod
  159. 149 cls.GetDescriptor = staticmethod(lambda: self.descriptor)
  160. 150 cls.GetDescriptor.__doc__ = "Returns the service descriptor."
  161. 151 cls.GetRequestClass = self._GetRequestClass
  162. 152 cls.GetResponseClass = self._GetResponseClass
  163. Variables:
  164. rpc_controller = <noc.sa.rpc.Controller object at 0x2c7fb90>
  165. method_descriptor = <google.protobuf.descriptor.MethodDescriptor object at 0x1ece9d0>
  166. self = <google.protobuf.service_reflection._ServiceBuilder object at 0x1ecec10>
  167. request = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x2c809a8>
  168. srvc = <noc.sa.activator.service.Service object at 0x1f582d0>
  169. callback =
  170. <bound method ActivatorSocket.send_response of <ActivatorSocket(0x2635150, 127.0.0.1:19701, connected)>>
  171. ------------------------------------------------------------------------
  172. File: /opt/noc/sa/rpc.py (Line: 416)
  173. Function: rpc_handle_request
  174. 409 req.ParseFromString(request.serialized_request)
  175. 410 # logging.debug("Request accepted:\nid: %s\n%s" % (id, str(req)))
  176. 411 controller = Controller(self)
  177. 412 controller.transaction = self.transactions.begin(id=id,
  178. 413 method=request.method)
  179. 414 try:
  180. 415 self.service.CallMethod(method, controller,
  181. 416 ==> req, self.send_response)
  182. 417 except:
  183. 418 self.send_error(id, ERR_INTERNAL,
  184. 419 "RPC Call to %s failed" % request.method)
  185. 420 error_report()
  186. 421 else:
  187. 422 self.send_error(id, ERR_INVALID_METHOD,
  188. Variables:
  189. self = <ActivatorSocket(0x2635150, 127.0.0.1:19701, connected)>
  190. req = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x2c809a8>
  191. request = <noc.sa.protocols.sae_pb2.Request object at 0x2c807a0>
  192. id = 1762446858
  193. controller = <noc.sa.rpc.Controller object at 0x2c7fb90>
  194. method = <google.protobuf.descriptor.MethodDescriptor object at 0x1ece9d0>
  195. ------------------------------------------------------------------------
  196. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement