Advertisement
Guest User

Untitled

a guest
Jan 21st, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. (dp1
  2. S'component'
  3. p2
  4. S'noc-discovery'
  5. p3
  6. sS'source'
  7. p4
  8. S'system'
  9. p5
  10. sS'traceback'
  11. p6
  12. VUNHANDLED EXCEPTION (2013-01-21 14:00:56.803436)\u000aWorking directory: /opt/noc\u000a<type 'exceptions.AttributeError'>\u000a'DiscoveryID' object has no at
  13. tribute 'profile'\u000aSTART OF TRACEBACK\u000a------------------------------------------------------------------------\u000aFile: /opt/noc/inv/discovery/jobs
  14. /cdp_discovery.py (Line: 34)\u000aFunction: process_result\u000a 27 \u000a 28 def process_result(self, object, result):\u000a 29
  15. self.n_cache = {} # device_id -> object\u000a 30 for n in result["neighbors"]:\u000a 31 remote_object = self.get_neighbor(n[
  16. "device_id"])\u000a 32 if not remote_object:\u000a 33 continue\u000a 34 ==> remote_port = remote_object.
  17. profile.convert_interface_name(\u000a 35 n["remote_interface"])\u000a 36 self.submit_candidate(\u000a 37
  18. n["local_interface"], remote_object, remote_port)\u000a 38 \u000a 39 def get_neighbor(self, device_id):\u000a 40 """\u0
  19. 00aVariables:\u000a result = {'neighbors': [{'local_interface': 'Gi 0/2', 'remote_interface': 'GigabitEthernet2/0/3', 'device_id': 'cct01-yla-gsb
  20. '}], 'device_id': 'cct01-yla-lib'}\u000a self = <noc.inv.discovery.jobs.cdp_discovery.CDPLinkDiscoveryJob object at 0x2dadd50>\u000a
  21. object = <ManagedObject: cct01-yla-lib>\u000a remote_object = <DiscoveryID: cct01-yla-gsb>\u000a n = {'local_interface': 'Gi 0/2',
  22. 'remote_interface': 'GigabitEthernet2/0/3', 'device_id': 'cct01-yla-gsb'}\u000a------------------------------------------------------------------------\u000aF
  23. ile: /opt/noc/inv/discovery/jobs/link_discovery.py (Line: 216)\u000aFunction: handler\u000a 209 self.neighbor_by_mac_cache = {} # mac -> object\
  24. u000a 210 # Fetch existing links\u000a 211 self.submited = set() # (local_iface, remote_object, remote_iface)\u000a 212
  25. self.load_existing_links(object)\u000a 213 # Process results\u000a 214 self.candidates = defaultdict(list) # remote -> [(local if
  26. ace, remote_iface)]\u000a 215 # remote iface may be unknown\u000a 216 ==> self.process_result(objec
  27. t, result)\u000a 217 # Fetch pending link checks\u000a 218 self.p_candidates = defaultdict(list) # remote -> [(local iface, remote_
  28. iface)]\u000a 219 # local iface may be unknown\u000a 220 self.load_pending_checks(object)\u00
  29. 0a 221 # Resolve self links\u000a 222 self.resolve_self_links(object)\u000aVariables:\u000a self = <noc.inv.discovery
  30. .jobs.cdp_discovery.CDPLinkDiscoveryJob object at 0x2dadd50>\u000a object = <ManagedObject: cct01-yla-lib>\u000a result = {'neighbor
  31. s': [{'local_interface': 'Gi 0/2', 'remote_interface': 'GigabitEthernet2/0/3', 'device_id': 'cct01-yla-gsb'}], 'device_id': 'cct01-yla-lib'}\u000a------------
  32. ------------------------------------------------------------\u000aFile: /opt/noc/lib/scheduler/scheduler.py (Line: 244)\u000aFunction: _job_wrapper\u000a 237
  33. t.start()\u000a 238 else:\u000a 239 return self._job_wrapper(job, **kwargs)\u000a 240 \u000a 241
  34. def _job_wrapper(self, job, **kwargs):\u000a 242 tb = None\u000a 243 try:\u000a 244 ==> r = job.handler(**kwargs)\u000a
  35. 245 except Exception:\u000a 246 error_report()\u000a 247 job.on_exception()\u000a 248 s = job
  36. .S_EXCEPTION\u000a 249 tb = get_traceback()\u000a 250 else:\u000aVariables:\u000a job = <noc.inv.discovery.jobs.
  37. cdp_discovery.CDPLinkDiscoveryJob object at 0x2dadd50>\u000a tb = None\u000a self = <noc.inv.discovery.scheduler.DiscoverySche
  38. duler object at 0xe20f50>\u000a kwargs = {'object': <ManagedObject: cct01-yla-lib>, 'result': {'neighbors': [{'local_interface': 'Gi 0/2', 'remot
  39. e_interface': 'GigabitEthernet2/0/3', 'device_id': 'cct01-yla-gsb'}], 'device_id': 'cct01-yla-lib'}}\u000a----------------------------------------------------
  40. --------------------\u000aEND OF TRACEBACK
  41. p7
  42. sS'type'
  43. p8
  44. S'Unhandled Exception'
  45. p9
  46. sS'ts'
  47. p10
  48. I1358762456
  49. s.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement