{"body":"\n2016-02-03 20:33:35.786438  [box] Starting\n2016-02-03 20:33:35.798002 [discovery|box|pmo-cl1|profile]  Checking profile\n2016-02-03 20:33:35.798080 [discovery|box|pmo-cl1|profile]  Compiling rules\n2016-02-03 20:33:55.836995 [discovery|box|pmo-cl1|profile]  Cannot find profile\n2016-02-03 20:33:55.837112 [discovery|box|pmo-cl1|version]  Checking version\n2016-02-03 20:34:06.175431 [discovery|box|pmo-cl1|caps]  Checking capabilities\n2016-02-03 20:34:16.189373 [discovery|box|pmo-cl1|caps]  Received capabilities: {}\n2016-02-03 20:34:16.190481 [discovery|box|pmo-cl1|interface]  Using noc.solutions.noc.default.discovery.interface.get_interface_profile for interface classification\n2016-02-03 20:34:16.190584 [discovery|box|pmo-cl1|interface]  Checking interfaces\n2016-02-03 20:34:32.598327 [discovery|box|pmo-cl1|interface]  UNHANDLED EXCEPTION (2016-02-03 20:34:32.596091)\nBRANCH: feature/microservices TIP: 3032694d798a\nPROCESS: ./services/discovery/service.py\nERROR FINGERPRINT: 1ee46bb5-0acf-5977-b094-6ac3fe13dcb2\nWORKING DIRECTORY: /opt/noc\nEXCEPTION: <class 'noc.core.service.client.RPCRemoteError'> Failed: RPC Error: RPC call failed: Failed: Script error: Unexpected result\nSTART OF TRACEBACK\n------------------------------------------------------------------------\nFile: core/service/client.py (Line: 130)\nFunction: __call__\n  123                         raise RPCException(why)\n  124                 if not response:\n  125                     raise RPCNoService(\n  126                         \"No active service %s found\" % service\n  127                     )\n  128                 data = json.loads(response.body)\n  129                 if data.get(\"error\"):\n  130 ==>                 raise RPCRemoteError(data[\"error\"])\n  131                 t = time.time() - t0\n  132                 logger.debug(\"[<CALL] %s (%.2fms)\", self.method, t * 1000)\n  133                 return data[\"result\"]\n  134     \n  135         def __init__(self, service, calling_service=None):\n  136             self._service = service\nVariables:\n                body = \n'{\"params\": [2, \"get_interfaces\", {}, null], \"id\": 17, \"method\": \"script\"}'\n     calling_service = 'MTManager'\n                args = (2, 'get_interfaces', {}, None)\n                last = '10.50.64.73:19010'\n             service = 'sae'\n                self = <noc.core.service.client.CallProxy object at 0x7f54f4ced210>\n                 req = \n{'id': 17, 'method': 'script', 'params': [2, 'get_interfaces', {}, None]}\n                   l = '10.50.64.73:19010'\n                  t0 = 1454520856.190617\n                  st = 1.0\n             headers = {'X-NOC-Calling-Service': 'MTManager'}\n              client = <tornado.httpclient.HTTPClient object at 0x7f54f4cedf50>\n            services = \n['10.50.64.73:19010',\n '10.50.64.73:19010',\n '10.50.64.73:19010',\n '10.50.64.73:19010',\n '10.50.64.73:19010']\n              logger = <logging.Logger object at 0x7f54f5a159d0>\n                data = \n{u'error': u'Failed: RPC Error: RPC call failed: Failed: Script error: Unexpected result',\n u'id': 17}\n            response = \nHTTPResponse(_body='{\"id\": 17, \"error\": \"Failed: RPC Error: RPC call failed: Failed: Script error: Unexpected result\"}',buffer=<_io.BytesIO object at 0x7f54f5360110>,code=200,effective_url='http://10.50.64.73:19010/api/sae/',error=None,headers=<tornado.httputil.HTTPHeaders object at 0x7f54f4c694d0>,reason='OK',request=<tornado.httpclient.HTTPRequest object at 0x7f54f4dc9250>,request_time=16.40476107597351,time_info={})\n------------------------------------------------------------------------\nFile: sa/mtmanager.py (Line: 30)\nFunction: run\n   23             \"\"\"\n   24             Run SA script and wait for result\n   25             \"\"\"\n   26             if \".\" in script:\n   27                 # Leave only script name\n   28                 script = script.split(\".\")[-1]\n   29             return RPCClient(\"sae\", calling_service=\"MTManager\").script(\n   30 ==>             object.id, script, params, timeout\n   31             )\n   32     \n   33     \n   34     # Run single instance\n   35     MTManager = MTManagerImplementation()\nVariables:\n                self = <noc.sa.mtmanager.MTManagerImplementation object at 0x7f54fc0ee810>\n              object = <ManagedObject: pmo-cl1>\n              params = {}\n             timeout = None\n              script = 'get_interfaces'\n------------------------------------------------------------------------\nFile: sa/models/managedobject.py (Line: 252)\nFunction: __call__\n  245         class ScriptsProxy(object):\n  246             class CallWrapper(object):\n  247                 def __init__(self, obj, name):\n  248                     self.name = name\n  249                     self.object = obj\n  250     \n  251                 def __call__(self, **kwargs):\n  252 ==>                 return MTManager.run(self.object, self.name, kwargs)\n  253     \n  254             def __init__(self, obj):\n  255                 self._object = obj\n  256                 self._cache = {}\n  257     \n  258             def __getattr__(self, name):\nVariables:\n                self = <noc.sa.models.managedobject.CallWrapper object at 0x7f54f4c69310>\n              kwargs = {}\n------------------------------------------------------------------------\nFile: services/discovery/jobs/box/interface.py (Line: 43)\nFunction: handler\n   36                 self.interface_profile_cache = cachetools.LRUCache(\n   37                     1000,\n   38                     missing=lambda x: InterfaceProfile.objects.filter(name=x).first()\n   39                 )\n   40     \n   41         def handler(self):\n   42             self.logger.info(\"Checking interfaces\")\n   43 ==>         result = self.object.scripts.get_interfaces()\n   44             self.seen_interfaces = []\n   45             # Process forwarding instances\n   46             for fi in result:\n   47                 # Apply forwarding instance\n   48                 forwarding_instance = self.submit_forwarding_instance(\n   49                     name=fi[\"forwarding_instance\"],\nVariables:\n                self = \n<noc.services.discovery.jobs.box.interface.InterfaceCheck object at 0x7f54f5a26850>\n------------------------------------------------------------------------\nFile: services/discovery/jobs/base.py (Line: 102)\nFunction: run\n   95                         self.logger.info(\n   96                             \"Capability '%s' is disabled. Skipping\",\n   97                             cn\n   98                         )\n   99                         return\n  100             # Run check\n  101             try:\n  102 ==>             self.handler()\n  103             except Exception:\n  104                 error_report(logger=self.logger)\n  105     \n  106         def handler(self):\n  107             pass\n  108     \nVariables:\n                self = \n<noc.services.discovery.jobs.box.interface.InterfaceCheck object at 0x7f54f5a26850>\n------------------------------------------------------------------------\nEND OF TRACEBACK\n2016-02-03 20:34:32.598690 [discovery|box|pmo-cl1|id]  Checking chassis id\n2016-02-03 20:34:32.903116 [discovery|box|pmo-cl1|id]  Identity found: Chassis MACs = 44:F4:77:07:68:00 - 44:F4:77:07:6B:FF, hostname = None, router-id = None\n2016-02-03 20:34:32.904824 [discovery|box|pmo-cl1|caps]  Checking config\n2016-02-03 20:34:33.911997 [discovery|box|pmo-cl1|asset]  Checking assets\n2016-02-03 20:34:34.519821 [discovery|box|pmo-cl1|vlan]  Checking vlans\n2016-02-03 20:34:34.519901 [discovery|box|pmo-cl1|vlan]  No vc domain. Skipping\n2016-02-03 20:34:34.520697 [discovery|box|pmo-cl1|oam]  Object hasn't required capability 'Network | OAM'. Skipping\n2016-02-03 20:34:34.521473 [discovery|box|pmo-cl1|lldp]  Object hasn't required capability 'Network | LLDP'. Skipping\n2016-02-03 20:34:34.521569 [discovery|box|pmo-cl1|cdp]  get_cdp_neighbors script is not supported. Skipping\n2016-02-03 20:34:34.521646 [discovery|box|pmo-cl1|stp]  get_spanning_tree script is not supported. Skipping","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/hvFKozNW","modified":1454521254,"id":"hvFKozNW","size":7964,"lines":155,"own_paste":false,"theme":"","date":1454520911}