Advertisement
night_snake

Untitled

May 18th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.24 KB | None | 0 0
  1. 2015-05-18 13:40:28,343 Unhandled exception
  2. 2015-05-18 13:40:28,356 Script traceback:
  3. <type 'exceptions.KeyError'>
  4. '1'
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: sa/profiles/Extreme/XOS/get_interfaces.py (Line: 177)
  8. Function: execute
  9. 170 aggrifaces += [aggriface]
  10. 171 else:
  11. 172 iftype="physical"
  12. 173 iftype="physical"
  13. 174 iface = {
  14. 175 "name": ifname,
  15. 176 "type": iftype,
  16. 177 ==> "admin_status": switchports[ifname][3],
  17. 178 "oper_status": o_stat,
  18. 179 "mac": mac,
  19. 180 "description": switchports[ifname][2],
  20. 181 "snmp_ifindex": ifidxs[ifname],
  21. 182 "subinterfaces": [{
  22. 183 "name": ifname,
  23. Variables:
  24. svicfg =
  25. 'VLAN Interface with name TRANS_S10-SDN created by user\n Admin State:\t Enabled Tagging:\t802.1Q Tag 1390 \n Description:\t None\n Virtual router:\t VR-Default\n IPv4 Forwarding:\t Enabled\n IPv4 MC Forwarding: Disabled\n Primary IP:\t\t 172.31.12.2/30\n IPv6 Forwarding:\t Disabled\n IPv6 MC Forwarding: Disabled\n IPv6: None\n STPD: \t\t None\n Protocol: Match all unfiltered protocols\n Loopback: Disabled\n NetLogin: Disabled\n OpenFlow: Disabled\n TRILL: Disabled\n QosProfile: \t None configured\n Egress Rate Limit Designated Port: None configured\n Flood Rate Limit QosProfile: None configured\n Ports: 1. \t (Number of active ports=1)\n Tag: *1\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n (u) Egress traffic unallowed for NetLogin\n (t) Translate VLAN tag for Private-VLAN\n (s) Private-VLAN System Port, (L) Loopback port\n (x) VMAN Tag Translated port\n (G) Multi-switch LAG Group port\n (H) Dynamically added by MVRP\n (D) TRILL Designated, (A) TRILL Appointed Forwarder\n (I) Dynamically added by IDM\n (U) Dynamically added uplink port\n (V) Dynamically added by VM Tracking\n\n'
  26. ip_interfaces = 'ipv4_addresses'
  27. ifidxs = {}
  28. portchannel_members = {}
  29. pvm = {}
  30. iftype = 'physical'
  31. ip_list = ['172.31.12.2/30']
  32. enabled_afi = ['IPv4']
  33. aggrifaces = []
  34. self = <Script(Thread-2, started 140582911674112)>
  35. ip_int =
  36. " Use Redirects : Disabled\n IpOption LSRR : Enabled\n IpOption SSRR : Enabled\n IpOption RR : Enabled\n IpOption TS : Enabled\n IpOption RA : Enabled\n Route Sharing : Disabled\n Route Compression : Disabled\n Originated Packets : Don't require ipforwarding\n Max Shared Gateways : Current: 4 Configured: 4\n Route Sharing Hash : CRC Lower\n\n IRDP:\n Advertisement Address: 255.255.255.255 Maximum Interval: 600 \n Minimum Interval: 450 Lifetime: 1800 Preference: 0 \n\nInterface IP Address Flags nSIA\nDC_STORE 172.30.11.254 /24 E-f---MPuRX--------- 0 \nDC_STORE_DVLP 172.30.13.254 /24 E-f---MPuRX--------- 0 \nTRANS_S10-S36-SDN 172.31.12.6 /30 EUf---MPuRX--------- 0 \nTRANS_S10-SDN 172.31.12.2 /30 EUf---MPuRX--------- 0 \n\nFlags: (A) Address Mask Reply Enabled (B) BOOTP Enabled\n (b) Broadcast Forwarding Enabled\n (D) Duplicate address detected on VLAN, (E) Interface Enabled\n (f) Forwarding Enabled (g) Ignore IP Broadcast Enabled\n (h) Directed Broadcast Forwarding by Hardware Enabled\n (I) IRDP Advertisement Enabled, (M) Send Parameter Problem Enabled\n (m) Multicast forwarding Enabled, (n) Multinetted VLAN\n (nSIA ) Number of Secondary IP Addresses\n (P) Send Port Unreachables Enabled, (R) Send Redirects Enabled\n (r) Unicast Reverse Path Enabled on at least one port of the VLAN\n (t) Tentative address, (T) Time Stamp Reply Enabled\n (u) Send Unreachables Enabled, (U) Interface Up\n (v) VRRP Enabled, (X) Send Time Exceeded Enabled\n"
  37. tg = <_sre.SRE_Match object at 0x4eef120>
  38. ifname = '1'
  39. portchan_masters = {}
  40. match = <_sre.SRE_Match object at 0x4dc2b10>
  41. status =
  42. 'Port Summary\nPort Display VLAN Name Port Link Speed Duplex\n# String (or # VLANs) State State Actual Actual\n==================================================================\n1 (0002) E A 10G FULL \n2 D R \n3 TRANS_S10-S36-SDN E A 1000 FULL \n4 TRANS_S10-S36-SDN E A 1000 FULL \n5 Default D R \n6 Default D R \n7 Default D R \n8 Default D R \n9 Default D R \n10 Default D R \n11 Default D R \n12 Default D R \n13 Default D R \n14 Default D R \n15 Default D R \n16 Default D R \n17 Default D R \n18 Default D R \n19 Default D R \n20 Default D R \n21 Default D R \n22 Default D R \n23 Default D R \n24 Default D R \n25 Default D R \n26 Default D R \n27 Default D R \n28 Default D R \n29 Default D R \n30 Default D R \n31 Default D R \n32 Default D R \n33 Default D R \n34 Default D R \n35 Default D R \n36 Default D R \n37 Default D R \n38 Default D R \n39 Default D R \n40 Default D R \n41 Default D R \n42 Default D R \n43 D R \n44 D R \n45 D R \n46 D R \n47 TRANS_CS6509-SDN E A 10G FULL \n48 TRANS_CS6509-SDN E A 10G FULL \n==================================================================\n Port State: D-Disabled, E-Enabled\n Link State: A-Active, R-Ready, NP-Port not present, L-Loopback,\n D-ELSM enabled but not up\n d-Ethernet OAM enabled but not up\n'
  43. o_stat = True
  44. description = 'None'
  45. interfaces =
  46. [{'admin_status': True,
  47. 'description': 'None',
  48. 'mac': '00:04:96:98:8A:26',
  49. 'name': 'DC_STORE',
  50. 'oper_status': True,
  51. 'subinterfaces': [{'admin_status': True,
  52. 'description': 'None',
  53. 'enabled_afi': ['IPv4'],
  54. 'ipv4_addresses': ['172.30.11.254/24'],
  55. 'mac': '00:04:96:98:8A:26',
  56. 'name': 'DC_STORE',
  57. 'oper_status': True,
  58. 'vlan_ids': [413]}],
  59. 'type': 'SVI'},
  60. {'admin_status': True,
  61. 'description': 'None',
  62. 'mac': '00:04:96:98:8A:26',
  63. 'name': 'DC_STORE_DVLP',
  64. 'oper_status': True,
  65. 'subinterfaces': [{'admin_status': True,
  66. 'description': 'None',
  67. 'enabled_afi': ['IPv4'],
  68. 'ipv4_addresses': ['172.30.13.254/24'],
  69. 'mac': '00:04:96:98:8A:26',
  70. 'name': 'DC_STORE_DVLP',
  71. 'oper_status': True,
  72. 'vlan_ids': [411]}],
  73. 'type': 'SVI'},
  74. {'admin_status': True,
  75. 'description': 'None',
  76. 'mac': '00:04:96:98:8A:26',
  77. 'name': 'TRANS_S10-S36-SDN',
  78. 'oper_status': True,
  79. 'subinterfaces': [{'admin_status': True,
  80. 'description': 'None',
  81. 'enabled_afi': ['IPv4'],
  82. 'ipv4_addresses': ['172.31.12.6/30'],
  83. 'mac': '00:04:96:98:8A:26',
  84. 'name': 'TRANS_S10-S36-SDN',
  85. 'oper_status': True,
  86. 'vlan_ids': [1391]}],
  87. 'type': 'SVI'},
  88. {'admin_status': True,
  89. 'description': 'None',
  90. 'mac': '00:04:96:98:8A:26',
  91. 'name': 'TRANS_S10-SDN',
  92. 'oper_status': True,
  93. 'subinterfaces': [{'admin_status': True,
  94. 'description': 'None',
  95. 'enabled_afi': ['IPv4'],
  96. 'ipv4_addresses': ['172.31.12.2/30'],
  97. 'mac': '00:04:96:98:8A:26',
  98. 'name': 'TRANS_S10-SDN',
  99. 'oper_status': True,
  100. 'vlan_ids': [1390]}],
  101. 'type': 'SVI'}]
  102. sviintrf = 'TRANS_S10-SDN'
  103. ifnaggr = 'T1'
  104. mac = '00:04:96:98:8A:26'
  105. iface =
  106. {'admin_status': True,
  107. 'description': 'None',
  108. 'mac': '00:04:96:98:8A:26',
  109. 'name': 'TRANS_S10-SDN',
  110. 'oper_status': True,
  111. 'subinterfaces': [{'admin_status': True,
  112. 'description': 'None',
  113. 'enabled_afi': ['IPv4'],
  114. 'ipv4_addresses': ['172.31.12.2/30'],
  115. 'mac': '00:04:96:98:8A:26',
  116. 'name': 'TRANS_S10-SDN',
  117. 'oper_status': True,
  118. 'vlan_ids': [1390]}],
  119. 'type': 'SVI'}
  120. portchannels = []
  121. sv = ' (V) Dynamically added by VM Tracking'
  122. mt = None
  123. vltag = '1390'
  124. a_stat = True
  125. switchports = {}
  126. ------------------------------------------------------------------------
  127. File: sa/script/script.py (Line: 463)
  128. Function: guarded_run
  129. 456 return result
  130. 457 except KeyError:
  131. 458 self.logger.debug("Not in call cache: %r, %r",
  132. 459 self.name, self.kwargs)
  133. 460 pass
  134. 461 # Calling script body
  135. 462 self._thread_id = thread.get_ident()
  136. 463 ==> result = self.execute(**self.kwargs)
  137. 464 # Enforce interface result checking
  138. 465 for i in self.implements:
  139. 466 result = i.script_clean_result(self.profile, result)
  140. 467 # Cache result when required
  141. 468 if self.cache and self.parent is not None:
  142. 469 self.logger.debug(
  143. Variables:
  144. i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x3e81dd0>
  145. self = <Script(Thread-2, started 140582911674112)>
  146. t0 = 1431945614.213101
  147. ------------------------------------------------------------------------
  148. File: sa/script/script.py (Line: 490)
  149. Function: run
  150. 483
  151. 484 def run(self):
  152. 485 """Script thread worker method"""
  153. 486 self.logger.debug("Running")
  154. 487 result = None
  155. 488 try:
  156. 489 with self.cancelable():
  157. 490 ==> result = self.guarded_run()
  158. 491 except self.TimeOutError:
  159. 492 self.logger.error("Timed out")
  160. 493 self.e_timeout = True
  161. 494 except CancelledError:
  162. 495 self.logger.error("Cancelled")
  163. 496 self.e_cancel = True
  164. Variables:
  165. self = <Script(Thread-2, started 140582911674112)>
  166. r = ["<type 'exceptions.KeyError'>", "'1'"]
  167. result = None
  168. v = KeyError('1',)
  169. tb = <traceback object at 0x4ee2518>
  170. t = <type 'exceptions.KeyError'>
  171. ------------------------------------------------------------------------
  172. END OF TRACEBACK
  173. 2015-05-18 13:40:28,366 Closing
  174. 2015-05-18 13:40:28,367 Requesting call: <bound method CLITelnetSocket.close of <CLITelnetSocket(0x4ee3e90, 172.30.2.70:23, connected)>>(*(), **{'flush': True})
  175. 2015-05-18 13:40:29,342 Tick
  176. 2015-05-18 13:40:29,342 Calling delayed <bound method CLITelnetSocket.close of <CLITelnetSocket(0x4ee3e90, 172.30.2.70:23, connected)>>(*(), **{'flush': True})
  177. 2015-05-18 13:40:29,342 [CLITelnetSocket 172.30.2.70:23] Closing socket
  178. 2015-05-18 13:40:29,342 Unregister socket CLITelnetSocket 172.30.2.70:23
  179. 2015-05-18 13:40:29,343 3 TICKS TO EXIT
  180. 2015-05-18 13:40:30,344 Tick
  181. 2015-05-18 13:40:30,344 2 TICKS TO EXIT
  182. 2015-05-18 13:40:31,346 Tick
  183. 2015-05-18 13:40:31,346 1 TICKS TO EXIT
  184. 2015-05-18 13:40:32,347 Tick
  185. 2015-05-18 13:40:32,348 EXIT
  186. 2015-05-18 13:40:32,348 Shutting down the factory
  187. 2015-05-18 13:40:32,348 Metrics:
  188. noc.socketfactory.handle.closed_reads: 0
  189. noc.socketfactory.handle.reads: 278
  190. noc.socketfactory.handle.writes: 3
  191. noc.socketfactory.loops: 292
  192. noc.socketfactory.sockets.count: 0
  193. noc.socketfactory.sockets.register: 2
  194. noc.socketfactory.sockets.unregister: 0
  195. noc.socketfactory.ticks: 17
  196. 2015-05-18 13:40:32,348 0 TICKS TO EXIT
  197. 2015-05-18 13:40:32,348 Stopping socket factory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement