safewithyou247

NOC Schedular Error

Dec 20th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. START OF TRACEBACK
  2. ------------------------------------------------------------------------
  3. File: /usr/lib/python2.7/site-packages/pymongo/collection.py (Line: 359)
  4. Function: insert
  5. 352 if manipulate:
  6. 353 docs = [self.__database._fix_incoming(doc, self) for doc in docs]
  7. 354
  8. 355 safe, options = self._get_write_mode(safe, **kwargs)
  9. 356 self.__database.connection._send_message(
  10. 357 message.insert(self.__full_name, docs,
  11. 358 check_keys, safe, options,
  12. 359 ==> continue_on_error, self.__uuid_subtype), safe)
  13. 360
  14. 361 ids = [doc.get("_id", None) for doc in docs]
  15. 362 return return_one and ids[0] or ids
  16. 363
  17. 364 def update(self, spec, document, upsert=False, manipulate=False,
  18. 365 safe=None, multi=False, check_keys=True, **kwargs):
  19. Variables:
  20. safe = False
  21. check_keys = True
  22. docs = []
  23. return_one = False
  24. self = Collection(Database(Connection('localhost', 27017), u'noc'), u'noc.cache.selector.tmp')
  25. kwargs = {}
  26. continue_on_error = False
  27. doc_or_docs = []
  28. options = {}
  29. manipulate = True
  30. ------------------------------------------------------------------------
  31. File: /opt/noc/sa/jobs/refresh_selector_cache.py (Line: 47)
  32. Function: handler
  33. 40 "vc_domain": vcd_map.get(s.id)
  34. 41 }
  35. 42 ]
  36. 43 # Write temporary cache
  37. 44 self.info("Writing cache")
  38. 45 tmp = self.cache + ".tmp"
  39. 46 c = get_db()[tmp]
  40. 47 ==> c.insert(r)
  41. 48 # Substitute cache
  42. 49 c.rename(self.cache, dropTarget=True)
  43. 50 #
  44. 51 return True
  45. 52
  46. 53 @classmethod
  47. Variables:
  48. tmp = 'noc.cache.selector.tmp'
  49. c = Collection(Database(Connection('localhost', 27017), u'noc'), u'noc.cache.selector.tmp')
  50. self = <noc.sa.jobs.refresh_selector_cache.RefreshSelectorCacheJob object at 0x7f86302c8a90>
  51. args = ()
  52. r = []
  53. kwargs = {}
  54. vcd_map = {}
  55. ------------------------------------------------------------------------
  56. File: /opt/noc/lib/scheduler/scheduler.py (Line: 242)
  57. Function: _job_wrapper
  58. 235 t.start()
  59. 236 else:
  60. 237 return self._job_wrapper(job, **kwargs)
  61. 238
  62. 239 def _job_wrapper(self, job, **kwargs):
  63. 240 tb = None
  64. 241 try:
  65. 242 ==> r = job.handler(**kwargs)
  66. 243 except Exception:
  67. 244 error_report()
  68. 245 job.on_exception()
  69. 246 s = job.S_EXCEPTION
  70. 247 tb = get_traceback()
  71. 248 else:
  72. Variables:
  73. job = <noc.sa.jobs.refresh_selector_cache.RefreshSelectorCacheJob object at 0x7f86302c8a90>
  74. tb = None
  75. self = <noc.main.scheduler.scheduler.JobScheduler object at 0x4024410>
  76. kwargs = {}
  77. ------------------------------------------------------------------------
  78. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment