Advertisement
Guest User

Untitled

a guest
Sep 15th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.52 KB | None | 0 0
  1. 2014-09-15 15:55:56,654 [Generic.get_ip_discovery(bb-77-1, 195.98.32.87)] Script traceback:
  2. <type 'exceptions.KeyError'>
  3. 'DELETE'
  4. START OF TRACEBACK
  5. ------------------------------------------------------------------------
  6. File: /opt/noc/sa/profiles/Cisco/IOSXR/get_ipv6_neighbor.py (Line: 41)
  7. Function: execute
  8. 34
  9. 35 def execute(self, vrf=None):
  10. 36 # Get states
  11. 37 cmd = "show ipv6 neighbors"
  12. 38 r = self.cli(cmd, list_re=self.rx_line)
  13. 39 # Remap states
  14. 40 for n in r:
  15. 41 ==> n["state"] = self.s_map[n["state"].upper()]
  16. 42 return r
  17. Variables:
  18. cmd = 'show ipv6 neighbors'
  19. self = <Script(Thread-4, initial)>
  20. r =
  21. [{'interface': 'BE1',
  22. 'ip': 'fe80::12f3:11ff:fe0e:3b1b',
  23. 'mac': '10f3.110e.3b1b',
  24. 'state': 'reachable'},
  25. {'interface': 'BV832',
  26. 'ip': '2a03:8700:1:1::2',
  27. 'mac': '10f3.110e.3b1d',
  28. 'state': 'reachable'},
  29. {'interface': 'BV832',
  30. 'ip': '2a03:8700:1:1::99',
  31. 'mac': '001f.c6b3.3c6c',
  32. 'state': 'reachable'},
  33. {'interface': 'BV832',
  34. 'ip': 'fe80::20f:feff:fef1:cbb2',
  35. 'mac': '000f.fef1.cbb2',
  36. 'state': 'delay'},
  37. {'interface': 'BV832',
  38. 'ip': 'fe80::21e:58ff:feaa:89ce',
  39. 'mac': '001e.58aa.89ce',
  40. 'state': 'reachable'},
  41. {'interface': 'BV832',
  42. 'ip': 'fe80::21f:c6ff:feb3:3c6c',
  43. 'mac': '001f.c6b3.3c6c',
  44. 'state': 'reachable'},
  45. {'interface': 'BV832',
  46. 'ip': 'fe80::12f3:11ff:fe0e:3b1d',
  47. 'mac': '10f3.110e.3b1d',
  48. 'state': 'reachable'},
  49. {'interface': 'BE10',
  50. 'ip': '2a03:8700:0:1000::102',
  51. 'mac': '4055.3945.46fa',
  52. 'state': 'reachable'},
  53. {'interface': 'BE10',
  54. 'ip': 'fe80::4255:39ff:fe45:46fa',
  55. 'mac': '4055.3945.46fa',
  56. 'state': 'reachable'},
  57. {'interface': 'BE12',
  58. 'ip': '2a03:8700:0:1000::f2',
  59. 'mac': '10f3.1112.1a41',
  60. 'state': 'reachable'},
  61. {'interface': 'BE12',
  62. 'ip': 'fe80::12f3:11ff:fe12:1a41',
  63. 'mac': '10f3.1112.1a41',
  64. 'state': 'reachable'},
  65. {'interface': 'BE9',
  66. 'ip': '2a03:8700:0:1000::161',
  67. 'mac': '588d.0913.4800',
  68. 'state': 'reachable'},
  69. {'interface': 'BE9',
  70. 'ip': 'fe80::5a8d:9ff:fe13:4800',
  71. 'mac': '588d.0913.4800',
  72. 'state': 'reachable'},
  73. {'interface': 'BV830',
  74. 'ip': '2a03:8700:1:2::2',
  75. 'mac': '10f3.110e.3b1d',
  76. 'state': 'reachable'},
  77. {'interface': 'BV830',
  78. 'ip': '2a03:8700:1:2::200',
  79. 'mac': 'b499.bab3.9942',
  80. 'state': 'reachable'},
  81. {'interface': 'BV830',
  82. 'ip': 'fe80::12f3:11ff:fe0e:3b1d',
  83. 'mac': '10f3.110e.3b1d',
  84. 'state': 'reachable'},
  85. {'interface': 'BV830',
  86. 'ip': 'fe80::b699:baff:feb3:9942',
  87. 'mac': 'b499.bab3.9942',
  88. 'state': 'reachable'},
  89. {'interface': 'Te0/0/1/1',
  90. 'ip': '2a03:8700:0:1000::11',
  91. 'mac': 'a80c.0d2c.a4fb',
  92. 'state': 'reachable'},
  93. {'interface': 'Te0/0/1/1',
  94. 'ip': 'fe80::aa0c:dff:fe2c:a4fb',
  95. 'mac': 'a80c.0d2c.a4fb',
  96. 'state': 'reachable'},
  97. {'interface': 'Te0/0/1/2',
  98. 'ip': '2a03:8700:0:1000::192',
  99. 'mac': 'e4c7.2244.7578',
  100. 'state': 'reachable'},
  101. {'interface': 'Te0/0/1/2',
  102. 'ip': 'fe80::e6c7:22ff:fe44:7578',
  103. 'mac': 'e4c7.2244.7578',
  104. 'state': 'reachable'},
  105. {'interface': 'Te0/0/1/3',
  106. 'ip': 'fe80::214:1cff:fe15:5080',
  107. 'mac': '0014.1c15.5080',
  108. 'state': 'reachable'},
  109. {'interface': 'Te0/0/0/3',
  110. 'ip': '2a03:8700:0:1000::152',
  111. 'mac': '0011.93d5.33c0',
  112. 'state': 'DELETE'},
  113. {'interface': 'Te0/0/0/3',
  114. 'ip': 'fe80::211:93ff:fed5:33c0',
  115. 'mac': '0011.93d5.33c0',
  116. 'state': 'DELETE'},
  117. {'interface': 'Te0/2/0/3',
  118. 'ip': '2a03:8700:0:1000::32',
  119. 'mac': '588d.09bf.6a40',
  120. 'state': 'REACH'},
  121. {'interface': 'Te0/2/0/3',
  122. 'ip': 'fe80::5a8d:9ff:febf:6a40',
  123. 'mac': '588d.09bf.6a40',
  124. 'state': 'REACH'}]
  125. vrf = None
  126. n =
  127. {'interface': 'Te0/0/0/3',
  128. 'ip': '2a03:8700:0:1000::152',
  129. 'mac': '0011.93d5.33c0',
  130. 'state': 'DELETE'}
  131. ------------------------------------------------------------------------
  132. File: /opt/noc/sa/script/script.py (Line: 423)
  133. Function: guarded_run
  134. 416 return result
  135. 417 except KeyError:
  136. 418 self.debug("Not in call cache: %r, %r" % (self.name,
  137. 419 self.kwargs))
  138. 420 pass
  139. 421 # Calling script body
  140. 422 self._thread_id = thread.get_ident()
  141. 423 ==> result = self.execute(**self.kwargs)
  142. 424 # Enforce interface result checking
  143. 425 for i in self.implements:
  144. 426 result = i.script_clean_result(self.profile, result)
  145. 427 # Cache result when required
  146. 428 if self.cache and self.parent is not None:
  147. 429 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  148. Variables:
  149. i =
  150. <noc.sa.interfaces.igetipv6neighbor.IGetIPv6Neighbor object at 0x80cdb2290>
  151. self = <Script(Thread-4, initial)>
  152. ------------------------------------------------------------------------
  153. File: /opt/noc/sa/script/script.py (Line: 82)
  154. Function: __call__
  155. 75 self.script = script
  156. 76
  157. 77 def __call__(self, **kwargs):
  158. 78 """Call script"""
  159. 79 s = self.script(self.parent.profile, self.parent.activator,
  160. 80 self.parent.object_name, self.parent.access_profile,
  161. 81 parent=self.parent, **kwargs)
  162. 82 ==> return s.guarded_run()
  163. 83
  164. 84
  165. 85 class ScriptRegistry(Registry):
  166. 86 """Script registry"""
  167. 87 name = "ScriptRegistry"
  168. 88 subdir = "profiles"
  169. Variables:
  170. s = <Script(Thread-4, initial)>
  171. self = <noc.sa.script.script.ScriptCallProxy object at 0x80e252850>
  172. kwargs = {}
  173. ------------------------------------------------------------------------
  174. File: /opt/noc/sa/profiles/Generic/get_ip_discovery.py (Line: 50)
  175. Function: execute
  176. 43 }
  177. 44 if "rd" in v:
  178. 45 vrf["rd"] = v["rd"]
  179. 46 vrfs[v["name"]] = vrf
  180. 47 # Get IPv6 neighbors (global?)
  181. 48 if self.scripts.has_script("get_ipv6_neighbor"):
  182. 49 try:
  183. 50 ==> r = self.scripts.get_ipv6_neighbor()
  184. 51 except self.CLISyntaxError:
  185. 52 r = []
  186. 53 if r:
  187. 54 vrfs["default"]["addresses"] += [{
  188. 55 "ip": x["ip"],
  189. 56 "afi": "6",
  190. Variables:
  191. self = <Script(Thread-2, started 34601584640)>
  192. vrfs =
  193. {'**nVSatellite': {'addresses': [], 'name': '**nVSatellite'},
  194. 'avangard': {'addresses': [], 'name': 'avangard', 'rd': '8371:25'},
  195. 'bca': {'addresses': [], 'name': 'bca', 'rd': '8371:3'},
  196. 'default': {'addresses': [], 'name': 'default'},
  197. 'euroset': {'addresses': [], 'name': 'euroset', 'rd': '8371:30'},
  198. 'globex': {'addresses': [], 'name': 'globex', 'rd': '8371:35'},
  199. 'iptv_unicast': {'addresses': [], 'name': 'iptv_unicast', 'rd': '8371:4'},
  200. 'meridian': {'addresses': [], 'name': 'meridian', 'rd': '8371:19'},
  201. 'ptu': {'addresses': [], 'name': 'ptu', 'rd': '8371:31'},
  202. 'raiff': {'addresses': [], 'name': 'raiff', 'rd': '8371:17'},
  203. 'shpd': {'addresses': [], 'name': 'shpd', 'rd': '8371:23'},
  204. 'sj': {'addresses': [], 'name': 'sj', 'rd': '8371:9'},
  205. 'softswitch': {'addresses': [], 'name': 'softswitch', 'rd': '8371:34'},
  206. 'sov': {'addresses': [], 'name': 'sov', 'rd': '8371:21'},
  207. 'sovintel-wifi-sorm': {'addresses': [],
  208. 'name': 'sovintel-wifi-sorm',
  209. 'rd': '8371:11'},
  210. 'tam': {'addresses': [], 'name': 'tam', 'rd': '8371:8'},
  211. 'test': {'addresses': [], 'name': 'test', 'rd': '8371:2'},
  212. 'uralsib': {'addresses': [], 'name': 'uralsib', 'rd': '8371:20'}}
  213. r =
  214. [{'interfaces': ['nV0'],
  215. 'name': '**nVSatellite',
  216. 'status': True,
  217. 'type': 'VRF'},
  218. {'interfaces': [],
  219. 'name': 'avangard',
  220. 'rd': '8371:25',
  221. 'status': True,
  222. 'type': 'VRF'},
  223. {'interfaces': ['BV1',
  224. 'BV5011',
  225. 'Lo30',
  226. 'BV11',
  227. 'BV5012',
  228. 'BV5020',
  229. 'BV5021',
  230. 'BV829',
  231. 'BV851',
  232. 'BV10010',
  233. 'BV1027',
  234. 'BV1500',
  235. 'BV1087',
  236. 'BV1092',
  237. 'BV1094',
  238. 'BV1080',
  239. 'BV796',
  240. 'BV1230',
  241. 'BV854',
  242. 'BV1335'],
  243. 'name': 'bca',
  244. 'rd': '8371:3',
  245. 'status': True,
  246. 'type': 'VRF'},
  247. {'interfaces': ['BV5045'],
  248. 'name': 'euroset',
  249. 'rd': '8371:30',
  250. 'status': True,
  251. 'type': 'VRF'},
  252. {'interfaces': ['BV5050'],
  253. 'name': 'globex',
  254. 'rd': '8371:35',
  255. 'status': True,
  256. 'type': 'VRF'},
  257. {'interfaces': ['BV841', 'Bu2.643'],
  258. 'name': 'iptv_unicast',
  259. 'rd': '8371:4',
  260. 'status': True,
  261. 'type': 'VRF'},
  262. {'interfaces': ['BV13'],
  263. 'name': 'meridian',
  264. 'rd': '8371:19',
  265. 'status': True,
  266. 'type': 'VRF'},
  267. {'interfaces': ['BV5026', 'BV5030'],
  268. 'name': 'ptu',
  269. 'rd': '8371:31',
  270. 'status': True,
  271. 'type': 'VRF'},
  272. {'interfaces': ['BV5032', 'BV5051'],
  273. 'name': 'raiff',
  274. 'rd': '8371:17',
  275. 'status': True,
  276. 'type': 'VRF'},
  277. {'interfaces': ['Te0/1/1/2',
  278. 'Gi0/1/0/3',
  279. 'Lo10',
  280. 'BV5',
  281. 'BV10',
  282. 'BV5001',
  283. 'BV5008',
  284. 'BV12',
  285. 'BV840',
  286. 'BV1301',
  287. 'BV1303',
  288. 'BV1305',
  289. 'BV1307',
  290. 'BV1309',
  291. 'BV1311',
  292. 'BV1313',
  293. 'BV1315',
  294. 'BV1317',
  295. 'Te0/2/0/1.918',
  296. 'BV150',
  297. 'BV1075',
  298. 'BV1077',
  299. 'BV1078',
  300. 'BV1076',
  301. 'BV843',
  302. 'BV1339'],
  303. 'name': 'shpd',
  304. 'rd': '8371:23',
  305. 'status': True,
  306. 'type': 'VRF'},
  307. {'interfaces': ['BV5048'],
  308. 'name': 'sj',
  309. 'rd': '8371:9',
  310. 'status': True,
  311. 'type': 'VRF'},
  312. {'interfaces': ['Gi0/1/0/0',
  313. 'Lo20',
  314. 'BV5031',
  315. 'BV813',
  316. 'BV10818',
  317. 'BV574',
  318. 'BV1334'],
  319. 'name': 'softswitch',
  320. 'rd': '8371:34',
  321. 'status': True,
  322. 'type': 'VRF'},
  323. {'interfaces': ['BV5037'],
  324. 'name': 'sov',
  325. 'rd': '8371:21',
  326. 'status': True,
  327. 'type': 'VRF'},
  328. {'interfaces': ['BV1229', 'BV1231', 'BV1232'],
  329. 'name': 'sovintel-wifi-sorm',
  330. 'rd': '8371:11',
  331. 'status': True,
  332. 'type': 'VRF'},
  333. {'interfaces': ['BV10872'],
  334. 'name': 'tam',
  335. 'rd': '8371:8',
  336. 'status': True,
  337. 'type': 'VRF'},
  338. {'interfaces': ['BV152'],
  339. 'name': 'test',
  340. 'rd': '8371:2',
  341. 'status': True,
  342. 'type': 'VRF'},
  343. {'interfaces': ['BV5049', 'BV1340'],
  344. 'name': 'uralsib',
  345. 'rd': '8371:20',
  346. 'status': True,
  347. 'type': 'VRF'}]
  348. vrf = {'rd': '8371:20', 'name': 'uralsib', 'addresses': []}
  349. v =
  350. {'interfaces': ['BV5049', 'BV1340'],
  351. 'name': 'uralsib',
  352. 'rd': '8371:20',
  353. 'status': True,
  354. 'type': 'VRF'}
  355. ------------------------------------------------------------------------
  356. File: /opt/noc/sa/script/script.py (Line: 423)
  357. Function: guarded_run
  358. 416 return result
  359. 417 except KeyError:
  360. 418 self.debug("Not in call cache: %r, %r" % (self.name,
  361. 419 self.kwargs))
  362. 420 pass
  363. 421 # Calling script body
  364. 422 self._thread_id = thread.get_ident()
  365. 423 ==> result = self.execute(**self.kwargs)
  366. 424 # Enforce interface result checking
  367. 425 for i in self.implements:
  368. 426 result = i.script_clean_result(self.profile, result)
  369. 427 # Cache result when required
  370. 428 if self.cache and self.parent is not None:
  371. 429 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  372. Variables:
  373. i =
  374. <noc.sa.interfaces.igetipdiscovery.IGetIPDiscovery object at 0x80cd48650>
  375. self = <Script(Thread-2, started 34601584640)>
  376. ------------------------------------------------------------------------
  377. File: /opt/noc/sa/script/script.py (Line: 446)
  378. Function: run
  379. 439
  380. 440 def run(self):
  381. 441 """Script thread worker method"""
  382. 442 self.debug("Running")
  383. 443 result = None
  384. 444 try:
  385. 445 with self.cancelable():
  386. 446 ==> result = self.guarded_run()
  387. 447 except self.TimeOutError:
  388. 448 self.error("Timed out")
  389. 449 self.e_timeout = True
  390. 450 except CancelledError:
  391. 451 self.error("Cancelled")
  392. 452 self.e_cancel = True
  393. Variables:
  394. self = <Script(Thread-2, started 34601584640)>
  395. r = ["<type 'exceptions.KeyError'>", "'DELETE'"]
  396. result = None
  397. v = KeyError('DELETE',)
  398. tb = <traceback object at 0x80e29d3f8>
  399. t = <type 'exceptions.KeyError'>
  400. ------------------------------------------------------------------------
  401. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement