Advertisement
Guest User

Untitled

a guest
Sep 10th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. 2012-09-10 15:12:33,447 [fm.correlator] Running scheduler
  2. 2012-09-10 15:12:33,454 UNHANDLED EXCEPTION (2012-09-10 15:12:33.450673)
  3. Working directory: /usr/local/noc
  4. <type 'exceptions.KeyError'>
  5. 'schedule'
  6. START OF TRACEBACK
  7. ------------------------------------------------------------------------
  8. File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 315)
  9. Function: run_pending
  10. 308 # Invalid job class. Park job to FAIL state
  11. 309 self.error("Invalid job class: %s" % jcls)
  12. 310 self.set_job_status(job_data[self.ATTR_CLASS],
  13. 311 job_data[self.ATTR_KEY], self.S_FAIL)
  14. 312 continue
  15. 313 job = jcls(self,
  16. 314 job_data[self.ATTR_KEY], job_data[self.ATTR_DATA],
  17. 315 ==> job_data[self.ATTR_SCHEDULE]
  18. 316 )
  19. 317 self.run_job(job)
  20. 318 n += 1
  21. 319 return n
  22. 320
  23. 321 def run(self):
  24. Variables:
  25. jcls = <class 'noc.fm.correlator.jobs.performance_report.PerformanceReportJob'>
  26. throttled = set([])
  27. self = <noc.fm.correlator.scheduler.CorrelatorScheduler object at 0x80854dc10>
  28. job_data = {u'runs': 24490, u'last': datetime.datetime(2012, 9, 6, 11, 32, 0, 619000), u'log': [], u'jcls': u'performance_report', u'ldur': 0.0005838871002197266, u'ts': datetime.datetime(2012, 9, 6, 11, 33), u'tb': None, u's': u'W', u'ls': u'S', u'key': u'report', u'_id': ObjectId('5031e4e1bcf4b182a1000000'), u'data': {u'_noc': {u'interval': 60, u'offset': 0}}}
  29. n = 0
  30. q = {'s': 'W', 'ts': {'$lte': datetime.datetime(2012, 9, 10, 15, 12, 33, 447784)}}
  31. ------------------------------------------------------------------------
  32. File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 332)
  33. Function: run
  34. 325 self.collection.update({
  35. 326 self.ATTR_STATUS: self.S_RUN
  36. 327 }, {
  37. 328 "$set": {self.ATTR_STATUS: self.S_WAIT}
  38. 329 }, multi=True, safe=True)
  39. 330 self.info("Running scheduler")
  40. 331 while True:
  41. 332 ==> if not self.run_pending():
  42. 333 time.sleep(1)
  43. 334 else:
  44. 335 self.cleanup()
  45. 336
  46. 337 def wipe(self):
  47. 338 """
  48. Variables:
  49. self = <noc.fm.correlator.scheduler.CorrelatorScheduler object at 0x80854dc10>
  50. ------------------------------------------------------------------------
  51. File: /usr/local/noc/fm/correlator/daemon.py (Line: 384)
  52. Function: run
  53. 377 self.stat_success_count += 1
  54. 378
  55. 379 def run(self):
  56. 380 """
  57. 381 Main daemon loop
  58. 382 """
  59. 383 self.reset_stats()
  60. 384 ==> self.scheduler.run()
  61.  
  62. Variables:
  63. self = <noc.fm.correlator.daemon.Correlator object at 0x807020a50>
  64. ------------------------------------------------------------------------
  65. File: /usr/local/noc/lib/daemon.py (Line: 364)
  66. Function: guarded_run
  67. 357
  68. 358 def guarded_run(self):
  69. 359 """
  70. 360 Run daemon and catch common exceptions
  71. 361 :return:
  72. 362 """
  73. 363 try:
  74. 364 ==> self.run()
  75. 365 except KeyboardInterrupt:
  76. 366 pass
  77. 367 except MemoryError:
  78. 368 logging.error("Out of memory. Exiting.")
  79. 369 except SystemExit:
  80. 370 logging.info("Exiting")
  81. Variables:
  82. self = <noc.fm.correlator.daemon.Correlator object at 0x807020a50>
  83. ------------------------------------------------------------------------
  84. END OF TRACEBACK
  85. 2012-09-10 15:12:33,455 Removing pidfile: /var/run/noc/noc-correlator.pid
  86. 2012-09-10 15:12:33,455 STOP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement