Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-01-23 14:25:40,592 [EdgeCore.ES.get_vlans(jakorn-1-1-es3528.line-r.ru, 172.16.3.6)] Script traceback:
- <type 'exceptions.KeyError'>
- '94'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/profiles/EdgeCore/ES/get_vlans.py (Line: 37)
- Function: execute
- 30 oids[oid.split(".")[-1]] = v
- 31 # Get VLAN names
- 32 result = []
- 33 for oid, v in self.snmp.getnext("1.3.6.1.2.1.17.7.1.4.3.1.1",
- 34 bulk=True): # dot1qVlanStaticName
- 35 o = oid.split(".")[-1]
- 36 result += [{
- 37 ==> "vlan_id":int(oids[o]),
- 38 "name":v.strip().rstrip('\x00')
- 39 }]
- 40 return sorted(result, lambda x, y: cmp(x["vlan_id"], y["vlan_id"]))
- 41 except self.snmp.TimeOutError:
- 42 # SNMP failed, continue with CLI
- 43 pass
- Variables:
- self = <Script(Thread-2, started 34533881216)>
- oid = '1.3.6.1.2.1.17.7.1.4.3.1.1.94'
- o = '94'
- oids = {'1': '1', '10': '10', '3': '3'}
- result =
- [{'name': 'DefaultVlan', 'vlan_id': 1},
- {'name': 'L-Customers', 'vlan_id': 3},
- {'name': '', 'vlan_id': 10}]
- v = 'seg_94'
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/script/script.py (Line: 422)
- Function: guarded_run
- 415 return result
- 416 except KeyError:
- 417 self.debug("Not in call cache: %r, %r" % (self.name,
- 418 self.kwargs))
- 419 pass
- 420 # Calling script body
- 421 self._thread_id = thread.get_ident()
- 422 ==> result = self.execute(**self.kwargs)
- 423 # Enforce interface result checking
- 424 for i in self.implements:
- 425 result = i.script_clean_result(self.profile, result)
- 426 # Cache result when required
- 427 if self.cache and self.parent is not None:
- 428 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i = <noc.sa.interfaces.igetvlans.IGetVlans object at 0x80927ee10>
- self = <Script(Thread-2, started 34533881216)>
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/script/script.py (Line: 445)
- Function: run
- 438
- 439 def run(self):
- 440 """Script thread worker method"""
- 441 self.debug("Running")
- 442 result = None
- 443 try:
- 444 with self.cancelable():
- 445 ==> result = self.guarded_run()
- 446 except self.TimeOutError:
- 447 self.error("Timed out")
- 448 self.e_timeout = True
- 449 except CancelledError:
- 450 self.error("Cancelled")
- 451 self.e_cancel = True
- Variables:
- self = <Script(Thread-2, started 34533881216)>
- r = ["<type 'exceptions.KeyError'>", "'94'"]
- result = None
- v = KeyError('94',)
- tb = <traceback object at 0x80a582440>
- t = <type 'exceptions.KeyError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2014-01-23 14:25:40,593 [EdgeCore.ES.get_vlans(jakorn-1-1-es3528.line-r.ru, 172.16.3.6)] Closing
- 2014-01-23 14:25:40,593 [<SNMPGetNextSocket(0x80a570410, )>] Closing socket
- 2014-01-23 14:25:40,593 unregister_socket(<SNMPGetNextSocket(0x80a570410, closing)>)
- 2014-01-23 14:25:40,593 Resetting wait ticks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement