Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2012-09-19 13:06:32,775 MRT task=664213/2118943 object=kie-kie-f1-r4-t1-asw0(172.25.19.174) script=Huawei.VRP.get_interfaces status=failed code=14 error=<type 'exceptions.KeyError'>
- 'Ethernet'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Huawei/VRP/get_interfaces.py (Line: 164)
- Function: execute
- 157 sub["is_ospf"] = True
- 158
- 159 if "." not in ifname:
- 160 iface = {
- 161 "name": ifname,
- 162 "admin_status": a_stat,
- 163 "oper_status": o_stat,
- 164 ==> "type": self.types[re.sub(r'\d.*', "", ifname)],
- 165 "subinterfaces": [sub]
- 166 }
- 167 if match.group("desc") and match.group("desc") != "---":
- 168 iface["description"] = match.group("desc")
- 169
- 170 if "mac" in sub:
- Variables:
- switchports = {'Ethernet0/0/6': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/7': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/4': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/5': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/2': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/3': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/1': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/8': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/9': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/10': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/11': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/12': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/13': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/14': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/15': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/16': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/17': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/18': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/19': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'GigabitEthernet0/0/1': (None, [1, 1300, 1370, 1371, 1372, 1373, 1374]), 'GigabitEthernet0/0/2': (None, [1, 1300, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/24': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/21': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/20': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/23': (None, [1, 1370, 1371, 1372, 1373, 1374]), 'Ethernet0/0/22': (None, [1, 1370, 1371, 1372, 1373, 1374])}
- o_stat = False
- ipv4_interfaces = defaultdict(<type 'list'>, {'Vlanif1300': ['172.25.19.174/24']})
- portchannel_members = {}
- sub = {'name': 'Ethernet0/0/2', 'tagged_vlans': [1, 1370, 1371, 1372, 1373, 1374], 'admin_status': False, 'mac': '0025-9eee-702f', 'oper_status': False, 'is_bridge': True, 'description': 'BB_16700'}
- ip = '172.25.19.174/24'
- interfaces = []
- sp = {'status': True, 'tagged': [1, 1300, 1370, 1371, 1372, 1373, 1374], 'description': 'f1-r4-t1 <--> f1-r4-t2_BB', 'members': [], 'interface': 'GigabitEthernet0/0/2', '802.1ad Tunnel': False, '802.1Q Enabled': True}
- hw = 'address is 0025-9eee-702f'
- full_ifname = 'Ethernet0/0/2'
- self = <Script(script-172.25.19.174-Huawei.VRP.get_interfaces, started 140229727962880)>
- t = [1, 1370, 1371, 1372, 1373, 1374]
- a_stat = False
- match = <_sre.SRE_Match object at 0x29faa80>
- v = "Ethernet0/0/1 current state : DOWN\nLine protocol current state : DOWN\nDescription:HUAWEI, Quidway Series, Ethernet0/0/1 Interface\nSwitch Port,PVID : 1370,The Maximum Frame Length is 2044\nIP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0025-9eee-702f\nPort Mode: COMMON COPPER\nSpeed : 10, Loopback: NONE\nDuplex: HALF, Negotiation: ENABLE\nMdi : AUTO\nLast 300 seconds input rate 0 bits/sec, 0 packets/sec\nLast 300 seconds output rate 0 bits/sec, 0 packets/sec\nInput peak rate 0 bits/sec,Record time: -\nOutput peak rate 0 bits/sec,Record time: -\nInput: 0 packets, 0 bytes\nUnicast : 0,Multicast : 0\nBroadcast : 0,Jumbo : 0\nCRC : 0,Giants : 0\nJabbers : 0,Throttles : 0\nRunts : 0,DropEvents : 0\nAlignments : 0,Symbols : 0\nIgnoreds : 0,Frames : 0\nDiscard : 0,Total Error : 0\nOutput: 0 packets, 0 bytes\nUnicast : 0,Multicast : 0\nBroadcast : 0,Jumbo : 0\nCollisions : 0,Deferreds : 0\nLate Collisions: 0,ExcessiveCollisions: 0\nBuffers Purged : 0\nDiscard : 0,Total Error : 0\n Input bandwidth utilization threshold : 100.00%\n Output bandwidth utilization threshold: 100.00%\n Input bandwidth utilization : 0.00%\n Output bandwidth utilization : 0.00%\nEthernet0/0/2 current state : DOWN\nLine protocol current state : DOWN\nDescription:BB_16700\nSwitch Port,PVID : 1370,The Maximum Frame Length is 2044\nIP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0025-9eee-702f\nPort Mode: COMMON COPPER\nSpeed : 10, Loopback: NONE\nDuplex: HALF, Negotiation: ENABLE\nMdi : AUTO\nLast 300 seconds input rate 0 bits/sec, 0 packets/sec\nLast 300 seconds output rate 0 bits/sec, 0 packets/sec\nInput peak rate 34629632 bits/sec,Record time: 2012-03-05 22:28:02\nOutput peak rate 35120600 bits/sec,Record time: 2012-03-05 03:38:02\nInput: 176984069 packets, 195496500008 bytes\nUnicast : 176916758,Multicast : 67065\nBroadcast : 246,Jumbo : 0\nCRC : 0,Giants : 0\nJabbers : 0,Throttles : 0\nRunts : 0,DropEvents : 0\nAlignments : 0,Symbols : 0\nIgnoreds : 0,Frames : 0\nDiscard : 0,Total Error : 0\nOutput: 144595761 packets, 108112013488 bytes\nUnicast : 144126954,Multicast : 427692\nBroadcast : 41115,Jumbo : 0\nCollisions : 0,Deferreds : 0\nLate Collisions: 0,ExcessiveCollisions: 0\nBuffers Purged : 0\nDiscard : 0,Total Error : 0\n Input bandwidth utilization threshold : 100.00%\n Output bandwidth utilization threshold: 100.00%\n Input bandwidth utilization : 0.00%\n Output bandwidth utilization : 0.00%\nEthernet0/0/3 current state : DOWN\nLine protocol current state : DOWN\nDescription:HUAWEI, Quidway Series, Ethernet0/0/3 Interface\nSwitch Port,PVID : 1370,The Maximum Frame Length is 2044\nIP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware
- matchmac = <_sre.SRE_Match object at 0x2885918>
- ifname = 'Ethernet0/0/2'
- c_iface = 'Vlanif1300'
- u = None
- ospfs = []
- l = ''
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 415)
- Function: guarded_run
- 408 return result
- 409 except KeyError:
- 410 self.debug("Not in call cache: %r, %r" % (self.name,
- 411 self.kwargs))
- 412 pass
- 413 # Calling script body
- 414 self._thread_id = thread.get_ident()
- 415 ==> result = self.execute(**self.kwargs)
- 416 # Enforce interface result checking
- 417 for i in self.implements:
- 418 result = i.script_clean_result(self.profile, result)
- 419 # Cache result when required
- 420 if self.cache and self.parent is not None:
- 421 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x27c8210>
- self = <Script(script-172.25.19.174-Huawei.VRP.get_interfaces, started 140229727962880)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 438)
- Function: run
- 431
- 432 def run(self):
- 433 """Script thread worker method"""
- 434 self.debug("Running")
- 435 result = None
- 436 try:
- 437 with self.cancelable():
- 438 ==> result = self.guarded_run()
- 439 except self.TimeOutError:
- 440 self.error("Timed out")
- 441 self.e_timeout = True
- 442 except CancelledError:
- 443 self.error("Cancelled")
- 444 self.e_cancel = True
- Variables:
- self = <Script(script-172.25.19.174-Huawei.VRP.get_interfaces, started 140229727962880)>
- r = ["<type 'exceptions.KeyError'>", "'Ethernet'"]
- result = None
- v = KeyError('Ethernet',)
- tb = <traceback object at 0x2d63098>
- t = <type 'exceptions.KeyError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2
Advertisement
Add Comment
Please, Sign In to add comment