Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2012-04-11 00:25:52,531 UNHANDLED EXCEPTION (2012-04-11 00:25:52.527699)
- Working directory: /opt/noc
- <type 'exceptions.AttributeError'>
- 'Service' object has no attribute 'code_to_scheme'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/activator/service.py (Line: 74)
- Function: script
- 67 text="Invalid script '%s'" % request.script)
- 68 done(controller, error=e)
- 69 return
- 70 # Check profile supports access scheme
- 71 if request.access_profile.scheme not in profile.supported_schemes:
- 72 e = Error(code=ERR_INVALID_SCHEME,
- 73 text="Access scheme '%s' is not supported for profile '%s'" % (
- 74 ==> self.code_to_scheme(request.access_profile.scheme),
- 75 request.access_profile.profile))
- 76 done(controller, error=e)
- 77 return
- 78 # Check [activator]/max_scripts limit
- 79 if not self.activator.can_run_script():
- 80 e = Error(code=ERR_OVERLOAD,
- Variables:
- profile = <class 'noc.sa.profiles.Cisco.IOS.Profile'>
- script_class = <class 'noc.sa.profiles.Cisco.IOS.get_interfaces.Script'>
- script_callback = <function script_callback at 0x80522fcf8>
- request = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x805659e20>
- controller = <noc.sa.rpc.Controller object at 0x805a0d3d0>
- done = <bound method ActivatorSocket.send_response of <noc.sa.activator.activator_socket.ActivatorSocket object at 0x80523e690>>
- self = <noc.sa.activator.service.Service object at 0x804051d10>
- ------------------------------------------------------------------------
- File: build/bdist.freebsd-8.2-RELEASE-amd64/egg/google/protobuf/service_reflection.py (Line: 171)
- Function: _CallMethod
- 164 request: Request protocol message.
- 165 callback: A callback to invoke after the method has completed.
- 166 """
- 167 if method_descriptor.containing_service != self.descriptor:
- 168 raise RuntimeError(
- 169 'CallMethod() given method descriptor for wrong service type.')
- 170 method = getattr(srvc, method_descriptor.name)
- 171 ==> return method(rpc_controller, request, callback)
- 172
- 173 def _GetRequestClass(self, method_descriptor):
- 174 """Returns the class of the request protocol message.
- 175
- 176 Args:
- 177 method_descriptor: Descriptor of the method for which to return the
- Variables:
- srvc = <noc.sa.activator.service.Service object at 0x804051d10>
- method_descriptor = <google.protobuf.descriptor.MethodDescriptor object at 0x803fb2390>
- self = <google.protobuf.service_reflection._ServiceBuilder object at 0x803fb2590>
- request = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x805659e20>
- rpc_controller = <noc.sa.rpc.Controller object at 0x805a0d3d0>
- callback = <bound method ActivatorSocket.send_response of <noc.sa.activator.activator_socket.ActivatorSocket object at 0x80523e690>>
- method = <bound method Service.script of <noc.sa.activator.service.Service object at 0x804051d10>>
- ------------------------------------------------------------------------
- File: build/bdist.freebsd-8.2-RELEASE-amd64/egg/google/protobuf/service_reflection.py (Line: 146)
- Function: _WrapCallMethod
- 139
- 140 # CallMethod needs to operate with an instance of the Service class. This
- 141 # internal wrapper function exists only to be able to pass the service
- 142 # instance to the method that does the real CallMethod work.
- 143 def _WrapCallMethod(srvc, method_descriptor,
- 144 rpc_controller, request, callback):
- 145 return self._CallMethod(srvc, method_descriptor,
- 146 ==> rpc_controller, request, callback)
- 147 self.cls = cls
- 148 cls.CallMethod = _WrapCallMethod
- 149 cls.GetDescriptor = staticmethod(lambda: self.descriptor)
- 150 cls.GetDescriptor.__doc__ = "Returns the service descriptor."
- 151 cls.GetRequestClass = self._GetRequestClass
- 152 cls.GetResponseClass = self._GetResponseClass
- Variables:
- rpc_controller = <noc.sa.rpc.Controller object at 0x805a0d3d0>
- method_descriptor = <google.protobuf.descriptor.MethodDescriptor object at 0x803fb2390>
- self = <google.protobuf.service_reflection._ServiceBuilder object at 0x803fb2590>
- request = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x805659e20>
- srvc = <noc.sa.activator.service.Service object at 0x804051d10>
- callback = <bound method ActivatorSocket.send_response of <noc.sa.activator.activator_socket.ActivatorSocket object at 0x80523e690>>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/rpc.py (Line: 416)
- Function: rpc_handle_request
- 409 req.ParseFromString(request.serialized_request)
- 410 # logging.debug("Request accepted:\nid: %s\n%s" % (id, str(req)))
- 411 controller = Controller(self)
- 412 controller.transaction = self.transactions.begin(id=id,
- 413 method=request.method)
- 414 try:
- 415 self.service.CallMethod(method, controller,
- 416 ==> req, self.send_response)
- 417 except:
- 418 self.send_error(id, ERR_INTERNAL,
- 419 "RPC Call to %s failed" % request.method)
- 420 error_report()
- 421 else:
- 422 self.send_error(id, ERR_INVALID_METHOD,
- Variables:
- self = <noc.sa.activator.activator_socket.ActivatorSocket object at 0x80523e690>
- req = <noc.sa.protocols.sae_pb2.ScriptRequest object at 0x805659e20>
- request = <noc.sa.protocols.sae_pb2.Request object at 0x805659188>
- id = 295485785
- controller = <noc.sa.rpc.Controller object at 0x805a0d3d0>
- method = <google.protobuf.descriptor.MethodDescriptor object at 0x803fb2390>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment