Advertisement
Guest User

Untitled

a guest
Jan 16th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2013-01-16 14:53:49.294291)
  2. Working directory: /opt/noc
  3. <type 'exceptions.AttributeError'>
  4. 'QuerySet' object has no attribute 'first_chassis_mac'
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/inv/discovery/jobs/link_discovery.py (Line: 259)
  8. Function: get_object_macs
  9. 252 """
  10. 253 Return object's MAC address interval
  11. 254 :param object:
  12. 255 :return:
  13. 256 """
  14. 257 d = DiscoveryID.objects.filter(object=object.id)
  15. 258 if d:
  16. 259 ==> return d.first_chassis_mac, d.last_chassis_mac
  17. 260 else:
  18. 261 return None, None
  19. Variables:
  20. self = <noc.inv.discovery.jobs.rep_discovery.REPLinkDiscoveryJob object at 0x807c344d0>
  21. object = <ManagedObject: cat-r23>
  22. d = [<DiscoveryID: cat-r23>]
  23. ------------------------------------------------------------------------
  24. File: /opt/noc/inv/discovery/jobs/rep_discovery.py (Line: 28)
  25. Function: process_result
  26. 21 ignored = not config.getboolean("rep_discovery", "enabled")
  27. 22 initial_submit_interval = config.getint("rep_discovery",
  28. 23 "initial_submit_interval")
  29. 24 initial_submit_concurrency = config.getint("rep_discovery",
  30. 25 "initial_submit_concurrency")
  31. 26
  32. 27 def process_result(self, object, result):
  33. 28 ==> first_mac, last_mac = self.get_object_macs(object)
  34. 29 if not first_mac or not last_mac:
  35. 30 return # ID discovery is incomplete
  36. 31 for segment in result:
  37. 32 # Find own ports
  38. 33 o = [i for i, p in enumerate(segment)
  39. 34 if first_mac <= p["mac"] <= last_mac]
  40. Variables:
  41. self = <noc.inv.discovery.jobs.rep_discovery.REPLinkDiscoveryJob object at 0x807c344d0>
  42. object = <ManagedObject: cat-r23>
  43. result = [{'segment': 73, 'topology': [{'edge_no_neighbor': True, 'name': '...
  44. ------------------------------------------------------------------------
  45. File: /opt/noc/inv/discovery/jobs/link_discovery.py (Line: 199)
  46. Function: handler
  47. 192 self.neighbor_by_mac_cache = {} # mac -> object
  48. 193 # Fetch existing links
  49. 194 self.submited = set() # (local_iface, remote_object, remote_iface)
  50. 195 self.load_existing_links(object)
  51. 196 # Process results
  52. 197 self.candidates = defaultdict(list) # remote -> [(local iface, remote_iface)]
  53. 198 # remote iface may be unknown
  54. 199 ==> self.process_result(object, result)
  55. 200 # Fetch pending link checks
  56. 201 self.p_candidates = defaultdict(list) # remote -> [(local iface, remote_iface)]
  57. 202 # local iface may be unknown
  58. 203 self.load_pending_checks(object)
  59. 204 # Resolve self links
  60. 205 self.resolve_self_links(object)
  61. Variables:
  62. self = <noc.inv.discovery.jobs.rep_discovery.REPLinkDiscoveryJob object at 0x807c344d0>
  63. object = <ManagedObject: cat-r23>
  64. result = [{'segment': 73, 'topology': [{'edge_no_neighbor': True, 'name': '...
  65. ------------------------------------------------------------------------
  66. File: /opt/noc/lib/scheduler/scheduler.py (Line: 244)
  67. Function: _job_wrapper
  68. 237 t.start()
  69. 238 else:
  70. 239 return self._job_wrapper(job, **kwargs)
  71. 240
  72. 241 def _job_wrapper(self, job, **kwargs):
  73. 242 tb = None
  74. 243 try:
  75. 244 ==> r = job.handler(**kwargs)
  76. 245 except Exception:
  77. 246 error_report()
  78. 247 job.on_exception()
  79. 248 s = job.S_EXCEPTION
  80. 249 tb = get_traceback()
  81. 250 else:
  82. Variables:
  83. job = <noc.inv.discovery.jobs.rep_discovery.REPLinkDiscoveryJob object at 0x807c344d0>
  84. tb = None
  85. self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x804f79450>
  86. kwargs = {'object': <ManagedObject: cat-r23>, 'result': [{'segment': 73, 'topology': [{'edge_no_neighbor': True, 'name': '...
  87. ------------------------------------------------------------------------
  88. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement