Guest User

Untitled

a guest
Apr 11th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1. 2012-04-11 00:25:52,531 UNHANDLED EXCEPTION (2012-04-11 00:25:52.527699)
  2. Working directory: /opt/noc
  3. <type 'exceptions.AttributeError'>
  4. 'Service' object has no attribute 'code_to_scheme'
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/sa/activator/service.py (Line: 74)
  8. Function: script
  9. 67 text="Invalid script '%s'" % request.script)
  10. 68 done(controller, error=e)
  11. 69 return
  12. 70 # Check profile supports access scheme
  13. 71 if request.access_profile.scheme not in profile.supported_schemes:
  14. 72 e = Error(code=ERR_INVALID_SCHEME,
  15. 73 text="Access scheme '%s' is not supported for profile '%s'" % (
  16. 74 ==> self.code_to_scheme(request.access_profile.scheme),
  17. 75 request.access_profile.profile))
  18. 76 done(controller, error=e)
  19. 77 return
  20. 78 # Check [activator]/max_scripts limit
  21. 79 if not self.activator.can_run_script():
  22. 80 e = Error(code=ERR_OVERLOAD,
  23. Variables:
  24. profile = <class 'noc.sa.profiles.Cisco.IOS.Profile'>
  25. script_class = <class 'noc.sa.profiles.Cisco.IOS.get_interfaces.Script'>
  26. script_callback = <function script_callback at 0x80522fcf8>
  27. request = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x805659e20>
  28. controller = <noc.sa.rpc.Controller object at 0x805a0d3d0>
  29. done = <bound method ActivatorSocket.send_response of <noc.sa.activator.activator_socket.ActivatorSocket object at 0x80523e690>>
  30. self = <noc.sa.activator.service.Service object at 0x804051d10>
  31. ------------------------------------------------------------------------
  32. File: build/bdist.freebsd-8.2-RELEASE-amd64/egg/google/protobuf/service_reflection.py (Line: 171)
  33. Function: _CallMethod
  34. 164 request: Request protocol message.
  35. 165 callback: A callback to invoke after the method has completed.
  36. 166 """
  37. 167 if method_descriptor.containing_service != self.descriptor:
  38. 168 raise RuntimeError(
  39. 169 'CallMethod() given method descriptor for wrong service type.')
  40. 170 method = getattr(srvc, method_descriptor.name)
  41. 171 ==> return method(rpc_controller, request, callback)
  42. 172
  43. 173 def _GetRequestClass(self, method_descriptor):
  44. 174 """Returns the class of the request protocol message.
  45. 175
  46. 176 Args:
  47. 177 method_descriptor: Descriptor of the method for which to return the
  48. Variables:
  49. srvc = <noc.sa.activator.service.Service object at 0x804051d10>
  50. method_descriptor = <google.protobuf.descriptor.MethodDescriptor object at 0x803fb2390>
  51. self = <google.protobuf.service_reflection._ServiceBuilder object at 0x803fb2590>
  52. request = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x805659e20>
  53. rpc_controller = <noc.sa.rpc.Controller object at 0x805a0d3d0>
  54. callback = <bound method ActivatorSocket.send_response of <noc.sa.activator.activator_socket.ActivatorSocket object at 0x80523e690>>
  55. method = <bound method Service.script of <noc.sa.activator.service.Service object at 0x804051d10>>
  56. ------------------------------------------------------------------------
  57. File: build/bdist.freebsd-8.2-RELEASE-amd64/egg/google/protobuf/service_reflection.py (Line: 146)
  58. Function: _WrapCallMethod
  59. 139
  60. 140 # CallMethod needs to operate with an instance of the Service class. This
  61. 141 # internal wrapper function exists only to be able to pass the service
  62. 142 # instance to the method that does the real CallMethod work.
  63. 143 def _WrapCallMethod(srvc, method_descriptor,
  64. 144 rpc_controller, request, callback):
  65. 145 return self._CallMethod(srvc, method_descriptor,
  66. 146 ==> rpc_controller, request, callback)
  67. 147 self.cls = cls
  68. 148 cls.CallMethod = _WrapCallMethod
  69. 149 cls.GetDescriptor = staticmethod(lambda: self.descriptor)
  70. 150 cls.GetDescriptor.__doc__ = "Returns the service descriptor."
  71. 151 cls.GetRequestClass = self._GetRequestClass
  72. 152 cls.GetResponseClass = self._GetResponseClass
  73. Variables:
  74. rpc_controller = <noc.sa.rpc.Controller object at 0x805a0d3d0>
  75. method_descriptor = <google.protobuf.descriptor.MethodDescriptor object at 0x803fb2390>
  76. self = <google.protobuf.service_reflection._ServiceBuilder object at 0x803fb2590>
  77. request = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x805659e20>
  78. srvc = <noc.sa.activator.service.Service object at 0x804051d10>
  79. callback = <bound method ActivatorSocket.send_response of <noc.sa.activator.activator_socket.ActivatorSocket object at 0x80523e690>>
  80. ------------------------------------------------------------------------
  81. File: /opt/noc/sa/rpc.py (Line: 416)
  82. Function: rpc_handle_request
  83. 409 req.ParseFromString(request.serialized_request)
  84. 410 # logging.debug("Request accepted:\nid: %s\n%s" % (id, str(req)))
  85. 411 controller = Controller(self)
  86. 412 controller.transaction = self.transactions.begin(id=id,
  87. 413 method=request.method)
  88. 414 try:
  89. 415 self.service.CallMethod(method, controller,
  90. 416 ==> req, self.send_response)
  91. 417 except:
  92. 418 self.send_error(id, ERR_INTERNAL,
  93. 419 "RPC Call to %s failed" % request.method)
  94. 420 error_report()
  95. 421 else:
  96. 422 self.send_error(id, ERR_INVALID_METHOD,
  97. Variables:
  98. self = <noc.sa.activator.activator_socket.ActivatorSocket object at 0x80523e690>
  99. req = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x805659e20>
  100. request = <noc.sa.protocols.sae_pb2.Request object at 0x805659188>
  101. id = 295485785
  102. controller = <noc.sa.rpc.Controller object at 0x805a0d3d0>
  103. method = <google.protobuf.descriptor.MethodDescriptor object at 0x803fb2390>
  104. ------------------------------------------------------------------------
  105. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment