Guest User

Untitled

a guest
Oct 2nd, 2014
165
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2014-10-03 00:04:24,234 [noc.lib.debug] UNHANDLED EXCEPTION (2014-10-03 00:04:24.225970)
  2. Working directory: /opt/noc
  3. <type 'exceptions.AttributeError'>
  4. 'Activator' object has no attribute 'heartbeat_enable'
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/sa/activator/activator.py (Line: 446)
  8. Function: tick
  9. 439 # Cancel stale scripts
  10. 440 if self.get_state() == "ESTABLISHED":
  11. 441 self.cancel_stale_scripts()
  12. 442 # Run pending ping probes
  13. 443 if self.to_ping and self.get_state() == "ESTABLISHED" and bool(self.ping4_socket.socket):
  14. 444 self.run_ping_checks()
  15. 445 # Heartbeat when necessary
  16. 446 ==> if (self.heartbeat_enable and
  17. 447 (self.next_heartbeat is None or self.next_heartbeat <= t)):
  18. 448 self.heartbeat()
  19. 449 self.next_heartbeat = t + 3 # @todo: more accurate
  20. 450 # Run default daemon/fsm machinery
  21. 451 super(Activator, self).tick()
  22. 452
  23. Variables:
  24. self = <noc.sa.activator.activator.Activator object at 0x807e4ce10>
  25. t = 1412280264.225858
  26. ------------------------------------------------------------------------
  27. File: /opt/noc/lib/nbsocket/socketfactory.py (Line: 242)
  28. Function: run
  29. 235 time.sleep(1)
  30. 236 last_tick = last_stale = time.time()
  31. 237 while cond() and not self.to_shutdown:
  32. 238 self.loop(1)
  33. 239 t = time.time()
  34. 240 if self.tick_callback and t - last_tick >= 1:
  35. 241 try:
  36. 242 ==> self.tick_callback()
  37. 243 except Exception:
  38. 244 error_report()
  39. 245 logger.info("Restoring from tick() failure")
  40. 246 last_tick = t
  41. 247 if t - last_stale >= 1:
  42. 248 self.close_stale()
  43. Variables:
  44. self = <noc.lib.nbsocket.socketfactory.SocketFactory object at 0x8071ebd10>
  45. cond = <function <lambda> at 0x80878f5f0>
  46. t = 1412280264.225816
  47. last_stale = 1412280263.215829
  48. run_forever = True
  49. last_tick = 1412280263.215829
  50. ------------------------------------------------------------------------
  51. END OF TRACEBACK
RAW Paste Data