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