Advertisement
Guest User

Untitled

a guest
Dec 11th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.20 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2013-12-11 13:24:05.932637)
  2. Working directory: /opt/noc
  3.  
  4. Unable to dereference :52a701099297e86528262135
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/lib/nosql.py (Line: 103)
  8. Function: __get__
  9. 96 # Dereference DBRefs
  10. 97 if isinstance(value, ObjectId):
  11. 98 v = self.document_type.objects(id=value).first()
  12. 99 if v is not None:
  13. 100 instance._data[self.name] = v
  14. 101 else:
  15. 102 raise ValidationError("Unable to dereference %s:%s" % (
  16. 103 ==> self.document_type, value))
  17. 104 return super(PlainReferenceField, self).__get__(instance, owner)
  18. 105
  19. 106 def to_mongo(self, document):
  20. 107 if isinstance(document, Document):
  21. 108 # We need the id from the saved object to create the DBRef
  22. 109 id_ = document.id
  23. Variables:
  24. owner =
  25. instance =
  26. self =
  27. value = ObjectId('52a701099297e86528262135')
  28. v = None
  29. ------------------------------------------------------------------------
  30. File: /opt/noc/inv/discovery/reports/asset.py (Line: 460)
  31. Function: check_management
  32. 453 """
  33. 454 Unmanage all left objects
  34. 455 """
  35. 456 for oid in self.managed:
  36. 457 o = Object.objects.filter(id=oid).first()
  37. 458 if o:
  38. 459 self.info("Revoking management from %s %s" % (
  39. 460 ==> o.model.name, o.id))
  40. 461 o.reset_data("management", "managed_object")
  41. 462 o.save()
  42. 463 o.log(
  43. 464 "Management revoked",
  44. 465 system="DISCOVERY", managed_object=self.object,
  45. 466 op="CHANGE"
  46. Variables:
  47. self =
  48. oid = ObjectId('52a720ef9297e864fbdfe8da')
  49. o =
  50. ------------------------------------------------------------------------
  51. File: /opt/noc/inv/discovery/jobs/asset_discovery.py (Line: 48)
  52. Function: handler
  53. 41 description=o.get("description")
  54. 42 )
  55. 43 # Assign stack members
  56. 44 self.report.submit_stack_members()
  57. 45 #
  58. 46 self.report.submit_connections()
  59. 47 #
  60. 48 ==> self.report.check_management()
  61. 49 # Finish
  62. 50 self.report.send()
  63. 51 return True
  64. 52
  65. 53 @classmethod
  66. 54 def initial_submit_queryset(cls):
  67. Variables:
  68. self =
  69.  
  70. object =
  71. result =
  72. [{'builtin': False,
  73. 'description': 'ProLiant SL390s G7 (612227-B21)',
  74. 'number': 'None',
  75. 'part_no': ['612227-B21'],
  76. 'serial': 'CZ3136SR3A',
  77. 'type': 'CHASSIS',
  78. 'vendor': 'HP'},
  79. {'builtin': False,
  80. 'description': 'Intel(R) Xeon(R) CPU E5649 @ 2.53GHz',
  81. 'number': 'cpu@0',
  82. 'part_no': ['E5649'],
  83. 'serial': 'None',
  84. 'type': 'CPU',
  85. 'vendor': 'INTEL'},
  86. {'builtin': False,
  87. 'description': 'Intel(R) Xeon(R) CPU E5649 @ 2.53GHz',
  88. 'number': 'cpu@1',
  89. 'part_no': ['E5649'],
  90. 'serial': 'None',
  91. 'type': 'CPU',
  92. 'vendor': 'INTEL'},
  93. {'builtin': False,
  94. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  95. 'number': '1:2C',
  96. 'part_no': ['NoName'],
  97. 'serial': 'None',
  98. 'type': 'RAM',
  99. 'vendor': 'NONAME'},
  100. {'builtin': False,
  101. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  102. 'number': '1:4B',
  103. 'part_no': ['NoName'],
  104. 'serial': 'None',
  105. 'type': 'RAM',
  106. 'vendor': 'NONAME'},
  107. {'builtin': False,
  108. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  109. 'number': '1:5D',
  110. 'part_no': ['NoName'],
  111. 'serial': 'None',
  112. 'type': 'RAM',
  113. 'vendor': 'NONAME'},
  114. {'builtin': False,
  115. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  116. 'number': '1:6A',
  117. 'part_no': ['NoName'],
  118. 'serial': 'None',
  119. 'type': 'RAM',
  120. 'vendor': 'NONAME'},
  121. {'builtin': False,
  122. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  123. 'number': '2:2C',
  124. 'part_no': ['NoName'],
  125. 'serial': 'None',
  126. 'type': 'RAM',
  127. 'vendor': 'NONAME'},
  128. {'builtin': False,
  129. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  130. 'number': '2:4B',
  131. 'part_no': ['NoName'],
  132. 'serial': 'None',
  133. 'type': 'RAM',
  134. 'vendor': 'NONAME'},
  135. {'builtin': False,
  136. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  137. 'number': '2:5D',
  138. 'part_no': ['NoName'],
  139. 'serial': 'None',
  140. 'type': 'RAM',
  141. 'vendor': 'NONAME'},
  142. {'builtin': False,
  143. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  144. 'number': '2:6A',
  145. 'part_no': ['NoName'],
  146. 'serial': 'None',
  147. 'type': 'RAM',
  148. 'vendor': 'NONAME'},
  149. {'builtin': False,
  150. 'description': '82576 Gigabit Network Connection',
  151. 'number': 'pci@0000:04:00',
  152. 'part_no': ['82576 Gigabit Network Connection'],
  153. 'serial': '18:a9:05:c5:a7:5c',
  154. 'type': 'CARD',
  155. 'vendor': 'INTEL'},
  156. {'builtin': False,
  157. 'description': 'NetXtreme II BCM5709 Gigabit Ethernet',
  158. 'number': 'pci@0000:0b:00',
  159. 'part_no': ['NetXtreme II BCM5709 Gigabit Ethernet'],
  160. 'serial': '9c:8e:99:22:c9:60',
  161. 'type': 'CARD',
  162. 'vendor': 'BROADCOM'},
  163. {'builtin': False,
  164. 'description': '3D controller',
  165. 'number': 'pci@0000:08:00',
  166. 'part_no': ['Tesla M2070'],
  167. 'serial': '0323111075686',
  168. 'type': 'CARD',
  169. 'vendor': 'NVIDIA'},
  170. {'builtin': False,
  171. 'description': '3D controller',
  172. 'number': 'pci@0000:09:00',
  173. 'part_no': ['Tesla M2070'],
  174. 'serial': '0323111076615',
  175. 'type': 'CARD',
  176. 'vendor': 'NVIDIA'},
  177. {'builtin': False,
  178. 'description': '3D controller',
  179. 'number': 'pci@0000:0a:00',
  180. 'part_no': ['Tesla M2070'],
  181. 'serial': '0323111076216',
  182. 'type': 'CARD',
  183. 'vendor': 'NVIDIA'},
  184. {'builtin': False,
  185. 'description': 'VGA compatible controller',
  186. 'number': 'pci@0000:01:03',
  187. 'part_no': ['ES1000'],
  188. 'serial': 'None',
  189. 'type': 'CARD',
  190. 'vendor': 'AMD'},
  191. {'builtin': False,
  192. 'description': 'MM0500EBKAE ATA Disk',
  193. 'number': 'None',
  194. 'part_no': ['MM0500EBKAE'],
  195. 'serial': '9XF0E06L',
  196. 'type': 'DRIVE',
  197. 'vendor': 'None'},
  198. {'builtin': False,
  199. 'description': '3D controller',
  200. 'number': 'pci@0000:19:00',
  201. 'part_no': ['Tesla M2070'],
  202. 'serial': '0323910065827',
  203. 'type': 'CARD',
  204. 'vendor': 'NVIDIA'},
  205. {'builtin': False,
  206. 'description': '3D controller',
  207. 'number': 'pci@0000:1a:00',
  208. 'part_no': ['Tesla M2070'],
  209. 'serial': '0323111078313',
  210. 'type': 'CARD',
  211. 'vendor': 'NVIDIA'},
  212. {'builtin': False,
  213. 'description': '3D controller',
  214. 'number': 'pci@0000:1b:00',
  215. 'part_no': ['Tesla M2070'],
  216. 'serial': '0323910066193',
  217. 'type': 'CARD',
  218. 'vendor': 'NVIDIA'},
  219. {'builtin': False,
  220. 'description': '3D controller',
  221. 'number': 'pci@0000:15:00',
  222. 'part_no': ['Tesla M2070'],
  223. 'serial': '0323111078150',
  224. 'type': 'CARD',
  225. 'vendor': 'NVIDIA'},
  226. {'builtin': False,
  227. 'description': '3D controller',
  228. 'number': 'pci@0000:16:00',
  229. 'part_no': ['Tesla M2070-Q'],
  230. 'serial': '0324512034184',
  231. 'type': 'CARD',
  232. 'vendor': 'NVIDIA'},
  233. {'builtin': False,
  234. 'description': 'Power Supply 1',
  235. 'number': '1',
  236. 'part_no': ['578322-B21'],
  237. 'serial': '5AVDC0C4D0S3UL',
  238. 'type': 'PSU',
  239. 'vendor': 'HP'},
  240. {'builtin': False,
  241. 'description': 'Power Supply 2',
  242. 'number': '2',
  243. 'part_no': ['578322-B21'],
  244. 'serial': '5AVDC0C4D0S3UM',
  245. 'type': 'PSU',
  246. 'vendor': 'HP'},
  247. {'builtin': False,
  248. 'description': 'Power Supply 3',
  249. 'number': '3',
  250. 'part_no': ['578322-B21'],
  251. 'serial': '5AVDC0C4D0S2NE',
  252. 'type': 'PSU',
  253. 'vendor': 'HP'},
  254. {'builtin': False,
  255. 'description': 'Power Supply 4',
  256. 'number': '4',
  257. 'part_no': ['578322-B21'],
  258. 'serial': '5AVDC0C4D0S2NF',
  259. 'type': 'PSU',
  260. 'vendor': 'HP'}]
  261. o =
  262. {'builtin': False,
  263. 'description': 'Power Supply 4',
  264. 'number': '4',
  265. 'part_no': ['578322-B21'],
  266. 'serial': '5AVDC0C4D0S2NF',
  267. 'type': 'PSU',
  268. 'vendor': 'HP'}
  269. ------------------------------------------------------------------------
  270. File: /opt/noc/lib/scheduler/scheduler.py (Line: 265)
  271. Function: _job_wrapper
  272. 258 else:
  273. 259 return self._job_wrapper(job, **kwargs)
  274. 260
  275. 261 def _job_wrapper(self, job, **kwargs):
  276. 262 tb = None
  277. 263 t0 = time.time()
  278. 264 try:
  279. 265 ==> r = job.handler(**kwargs)
  280. 266 except Exception:
  281. 267 # error_report()
  282. 268 tb = get_traceback()
  283. 269 job.error(tb)
  284. 270 job.on_exception()
  285. 271 s = job.S_EXCEPTION
  286. Variables:
  287. job =
  288.  
  289. tb = None
  290. self =
  291. t0 = 1386753845.219352
  292. kwargs =
  293. {'object': ,
  294. 'result': [{'builtin': False,
  295. 'description': 'ProLiant SL390s G7 (612227-B21)',
  296. 'number': 'None',
  297. 'part_no': ['612227-B21'],
  298. 'serial': 'CZ3136SR3A',
  299. 'type': 'CHASSIS',
  300. 'vendor': 'HP'},
  301. {'builtin': False,
  302. 'description': 'Intel(R) Xeon(R) CPU E5649 @ 2.53GHz',
  303. 'number': 'cpu@0',
  304. 'part_no': ['E5649'],
  305. 'serial': 'None',
  306. 'type': 'CPU',
  307. 'vendor': 'INTEL'},
  308. {'builtin': False,
  309. 'description': 'Intel(R) Xeon(R) CPU E5649 @ 2.53GHz',
  310. 'number': 'cpu@1',
  311. 'part_no': ['E5649'],
  312. 'serial': 'None',
  313. 'type': 'CPU',
  314. 'vendor': 'INTEL'},
  315. {'builtin': False,
  316. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  317. 'number': '1:2C',
  318. 'part_no': ['NoName'],
  319. 'serial': 'None',
  320. 'type': 'RAM',
  321. 'vendor': 'NONAME'},
  322. {'builtin': False,
  323. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  324. 'number': '1:4B',
  325. 'part_no': ['NoName'],
  326. 'serial': 'None',
  327. 'type': 'RAM',
  328. 'vendor': 'NONAME'},
  329. {'builtin': False,
  330. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  331. 'number': '1:5D',
  332. 'part_no': ['NoName'],
  333. 'serial': 'None',
  334. 'type': 'RAM',
  335. 'vendor': 'NONAME'},
  336. {'builtin': False,
  337. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  338. 'number': '1:6A',
  339. 'part_no': ['NoName'],
  340. 'serial': 'None',
  341. 'type': 'RAM',
  342. 'vendor': 'NONAME'},
  343. {'builtin': False,
  344. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  345. 'number': '2:2C',
  346. 'part_no': ['NoName'],
  347. 'serial': 'None',
  348. 'type': 'RAM',
  349. 'vendor': 'NONAME'},
  350. {'builtin': False,
  351. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  352. 'number': '2:4B',
  353. 'part_no': ['NoName'],
  354. 'serial': 'None',
  355. 'type': 'RAM',
  356. 'vendor': 'NONAME'},
  357. {'builtin': False,
  358. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  359. 'number': '2:5D',
  360. 'part_no': ['NoName'],
  361. 'serial': 'None',
  362. 'type': 'RAM',
  363. 'vendor': 'NONAME'},
  364. {'builtin': False,
  365. 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
  366. 'number': '2:6A',
  367. 'part_no': ['NoName'],
  368. 'serial': 'None',
  369. 'type': 'RAM',
  370. 'vendor': 'NONAME'},
  371. {'builtin': False,
  372. 'description': '82576 Gigabit Network Connection',
  373. 'number': 'pci@0000:04:00',
  374. 'part_no': ['82576 Gigabit Network Connection'],
  375. 'serial': '18:a9:05:c5:a7:5c',
  376. 'type': 'CARD',
  377. 'vendor': 'INTEL'},
  378. {'builtin': False,
  379. 'description': 'NetXtreme II BCM5709 Gigabit Ethernet',
  380. 'number': 'pci@0000:0b:00',
  381. 'part_no': ['NetXtreme II BCM5709 Gigabit Ethernet'],
  382. 'serial': '9c:8e:99:22:c9:60',
  383. 'type': 'CARD',
  384. 'vendor': 'BROADCOM'},
  385. {'builtin': False,
  386. 'description': '3D controller',
  387. 'number': 'pci@0000:08:00',
  388. 'part_no': ['Tesla M2070'],
  389. 'serial': '0323111075686',
  390. 'type': 'CARD',
  391. 'vendor': 'NVIDIA'},
  392. {'builtin': False,
  393. 'description': '3D controller',
  394. 'number': 'pci@0000:09:00',
  395. 'part_no': ['Tesla M2070'],
  396. 'serial': '0323111076615',
  397. 'type': 'CARD',
  398. 'vendor': 'NVIDIA'},
  399. {'builtin': False,
  400. 'description': '3D controller',
  401. 'number': 'pci@0000:0a:00',
  402. 'part_no': ['Tesla M2070'],
  403. 'serial': '0323111076216',
  404. 'type': 'CARD',
  405. 'vendor': 'NVIDIA'},
  406. {'builtin': False,
  407. 'description': 'VGA compatible controller',
  408. 'number': 'pci@0000:01:03',
  409. 'part_no': ['ES1000'],
  410. 'serial': 'None',
  411. 'type': 'CARD',
  412. 'vendor': 'AMD'},
  413. {'builtin': False,
  414. 'description': 'MM0500EBKAE ATA Disk',
  415. 'number': 'None',
  416. 'part_no': ['MM0500EBKAE'],
  417. 'serial': '9XF0E06L',
  418. 'type': 'DRIVE',
  419. 'vendor': 'None'},
  420. {'builtin': False,
  421. 'description': '3D controller',
  422. 'number': 'pci@0000:19:00',
  423. 'part_no': ['Tesla M2070'],
  424. 'serial': '0323910065827',
  425. 'type': 'CARD',
  426. 'vendor': 'NVIDIA'},
  427. {'builtin': False,
  428. 'description': '3D controller',
  429. 'number': 'pci@0000:1a:00',
  430. 'part_no': ['Tesla M2070'],
  431. 'serial': '0323111078313',
  432. 'type': 'CARD',
  433. 'vendor': 'NVIDIA'},
  434. {'builtin': False,
  435. 'description': '3D controller',
  436. 'number': 'pci@0000:1b:00',
  437. 'part_no': ['Tesla M2070'],
  438. 'serial': '0323910066193',
  439. 'type': 'CARD',
  440. 'vendor': 'NVIDIA'},
  441. {'builtin': False,
  442. 'description': '3D controller',
  443. 'number': 'pci@0000:15:00',
  444. 'part_no': ['Tesla M2070'],
  445. 'serial': '0323111078150',
  446. 'type': 'CARD',
  447. 'vendor': 'NVIDIA'},
  448. {'builtin': False,
  449. 'description': '3D controller',
  450. 'number': 'pci@0000:16:00',
  451. 'part_no': ['Tesla M2070-Q'],
  452. 'serial': '0324512034184',
  453. 'type': 'CARD',
  454. 'vendor': 'NVIDIA'},
  455. {'builtin': False,
  456. 'description': 'Power Supply 1',
  457. 'number': '1',
  458. 'part_no': ['578322-B21'],
  459. 'serial': '5AVDC0C4D0S3UL',
  460. 'type': 'PSU',
  461. 'vendor': 'HP'},
  462. {'builtin': False,
  463. 'description': 'Power Supply 2',
  464. 'number': '2',
  465. 'part_no': ['578322-B21'],
  466. 'serial': '5AVDC0C4D0S3UM',
  467. 'type': 'PSU',
  468. 'vendor': 'HP'},
  469. {'builtin': False,
  470. 'description': 'Power Supply 3',
  471. 'number': '3',
  472. 'part_no': ['578322-B21'],
  473. 'serial': '5AVDC0C4D0S2NE',
  474. 'type': 'PSU',
  475. 'vendor': 'HP'},
  476. {'builtin': False,
  477. 'description': 'Power Supply 4',
  478. 'number': '4',
  479. 'part_no': ['578322-B21'],
  480. 'serial': '5AVDC0C4D0S2NF',
  481. 'type': 'PSU',
  482. 'vendor': 'HP'}]}
  483. ------------------------------------------------------------------------
  484. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement