Guest User

Untitled

a guest
Sep 19th, 2012
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.12 KB | None | 0 0
  1. 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'>
  2. 'Ethernet'
  3. START OF TRACEBACK
  4. ------------------------------------------------------------------------
  5. File: /opt/noc/sa/profiles/Huawei/VRP/get_interfaces.py (Line: 164)
  6. Function: execute
  7. 157 sub["is_ospf"] = True
  8. 158
  9. 159 if "." not in ifname:
  10. 160 iface = {
  11. 161 "name": ifname,
  12. 162 "admin_status": a_stat,
  13. 163 "oper_status": o_stat,
  14. 164 ==> "type": self.types[re.sub(r'\d.*', "", ifname)],
  15. 165 "subinterfaces": [sub]
  16. 166 }
  17. 167 if match.group("desc") and match.group("desc") != "---":
  18. 168 iface["description"] = match.group("desc")
  19. 169
  20. 170 if "mac" in sub:
  21. Variables:
  22. 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])}
  23. o_stat = False
  24. ipv4_interfaces = defaultdict(<type 'list'>, {'Vlanif1300': ['172.25.19.174/24']})
  25. portchannel_members = {}
  26. 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'}
  27. ip = '172.25.19.174/24'
  28. interfaces = []
  29. 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}
  30. hw = 'address is 0025-9eee-702f'
  31. full_ifname = 'Ethernet0/0/2'
  32. self = <Script(script-172.25.19.174-Huawei.VRP.get_interfaces, started 140229727962880)>
  33. t = [1, 1370, 1371, 1372, 1373, 1374]
  34. a_stat = False
  35. match = <_sre.SRE_Match object at 0x29faa80>
  36. 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
  37. matchmac = <_sre.SRE_Match object at 0x2885918>
  38. ifname = 'Ethernet0/0/2'
  39. c_iface = 'Vlanif1300'
  40. u = None
  41. ospfs = []
  42. l = ''
  43. ------------------------------------------------------------------------
  44. File: /opt/noc/sa/script/script.py (Line: 415)
  45. Function: guarded_run
  46. 408 return result
  47. 409 except KeyError:
  48. 410 self.debug("Not in call cache: %r, %r" % (self.name,
  49. 411 self.kwargs))
  50. 412 pass
  51. 413 # Calling script body
  52. 414 self._thread_id = thread.get_ident()
  53. 415 ==> result = self.execute(**self.kwargs)
  54. 416 # Enforce interface result checking
  55. 417 for i in self.implements:
  56. 418 result = i.script_clean_result(self.profile, result)
  57. 419 # Cache result when required
  58. 420 if self.cache and self.parent is not None:
  59. 421 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  60. Variables:
  61. i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x27c8210>
  62. self = <Script(script-172.25.19.174-Huawei.VRP.get_interfaces, started 140229727962880)>
  63. ------------------------------------------------------------------------
  64. File: /opt/noc/sa/script/script.py (Line: 438)
  65. Function: run
  66. 431
  67. 432 def run(self):
  68. 433 """Script thread worker method"""
  69. 434 self.debug("Running")
  70. 435 result = None
  71. 436 try:
  72. 437 with self.cancelable():
  73. 438 ==> result = self.guarded_run()
  74. 439 except self.TimeOutError:
  75. 440 self.error("Timed out")
  76. 441 self.e_timeout = True
  77. 442 except CancelledError:
  78. 443 self.error("Cancelled")
  79. 444 self.e_cancel = True
  80. Variables:
  81. self = <Script(script-172.25.19.174-Huawei.VRP.get_interfaces, started 140229727962880)>
  82. r = ["<type 'exceptions.KeyError'>", "'Ethernet'"]
  83. result = None
  84. v = KeyError('Ethernet',)
  85. tb = <traceback object at 0x2d63098>
  86. t = <type 'exceptions.KeyError'>
  87. ------------------------------------------------------------------------
  88. END OF TRACEBACK
  89. 2
Advertisement
Add Comment
Please, Sign In to add comment