Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2013-01-16 14:53:49.294291)
- Working directory: /opt/noc
- <type 'exceptions.AttributeError'>
- 'QuerySet' object has no attribute 'first_chassis_mac'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/inv/discovery/jobs/link_discovery.py (Line: 259)
- Function: get_object_macs
- 252 """
- 253 Return object's MAC address interval
- 254 :param object:
- 255 :return:
- 256 """
- 257 d = DiscoveryID.objects.filter(object=object.id)
- 258 if d:
- 259 ==> return d.first_chassis_mac, d.last_chassis_mac
- 260 else:
- 261 return None, None
- Variables:
- self = <noc.inv.discovery.jobs.rep_discovery.REPLinkDiscoveryJob object at 0x807c344d0>
- object = <ManagedObject: cat-r23>
- d = [<DiscoveryID: cat-r23>]
- ------------------------------------------------------------------------
- File: /opt/noc/inv/discovery/jobs/rep_discovery.py (Line: 28)
- Function: process_result
- 21 ignored = not config.getboolean("rep_discovery", "enabled")
- 22 initial_submit_interval = config.getint("rep_discovery",
- 23 "initial_submit_interval")
- 24 initial_submit_concurrency = config.getint("rep_discovery",
- 25 "initial_submit_concurrency")
- 26
- 27 def process_result(self, object, result):
- 28 ==> first_mac, last_mac = self.get_object_macs(object)
- 29 if not first_mac or not last_mac:
- 30 return # ID discovery is incomplete
- 31 for segment in result:
- 32 # Find own ports
- 33 o = [i for i, p in enumerate(segment)
- 34 if first_mac <= p["mac"] <= last_mac]
- Variables:
- self = <noc.inv.discovery.jobs.rep_discovery.REPLinkDiscoveryJob object at 0x807c344d0>
- object = <ManagedObject: cat-r23>
- result = [{'segment': 73, 'topology': [{'edge_no_neighbor': True, 'name': '...
- ------------------------------------------------------------------------
- File: /opt/noc/inv/discovery/jobs/link_discovery.py (Line: 199)
- Function: handler
- 192 self.neighbor_by_mac_cache = {} # mac -> object
- 193 # Fetch existing links
- 194 self.submited = set() # (local_iface, remote_object, remote_iface)
- 195 self.load_existing_links(object)
- 196 # Process results
- 197 self.candidates = defaultdict(list) # remote -> [(local iface, remote_iface)]
- 198 # remote iface may be unknown
- 199 ==> self.process_result(object, result)
- 200 # Fetch pending link checks
- 201 self.p_candidates = defaultdict(list) # remote -> [(local iface, remote_iface)]
- 202 # local iface may be unknown
- 203 self.load_pending_checks(object)
- 204 # Resolve self links
- 205 self.resolve_self_links(object)
- Variables:
- self = <noc.inv.discovery.jobs.rep_discovery.REPLinkDiscoveryJob object at 0x807c344d0>
- object = <ManagedObject: cat-r23>
- result = [{'segment': 73, 'topology': [{'edge_no_neighbor': True, 'name': '...
- ------------------------------------------------------------------------
- File: /opt/noc/lib/scheduler/scheduler.py (Line: 244)
- Function: _job_wrapper
- 237 t.start()
- 238 else:
- 239 return self._job_wrapper(job, **kwargs)
- 240
- 241 def _job_wrapper(self, job, **kwargs):
- 242 tb = None
- 243 try:
- 244 ==> r = job.handler(**kwargs)
- 245 except Exception:
- 246 error_report()
- 247 job.on_exception()
- 248 s = job.S_EXCEPTION
- 249 tb = get_traceback()
- 250 else:
- Variables:
- job = <noc.inv.discovery.jobs.rep_discovery.REPLinkDiscoveryJob object at 0x807c344d0>
- tb = None
- self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x804f79450>
- kwargs = {'object': <ManagedObject: cat-r23>, 'result': [{'segment': 73, 'topology': [{'edge_no_neighbor': True, 'name': '...
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement