Scheduler: AttributeError: time_to_orphanage
elyrtan opened this issue · comments
Issue number 913 on main repo
Hi evryone, I am currently testing failover in conjunction with mongodbretention replicaset.
When failing over to the secondary shinken server, scheduler goes down almost immediately with the following error:
2013-06-28 16:50:58,305 [1372431058] Critical : Back trace of it: Traceback (most recent call last):
File "/usr/local/shinken/shinken/daemons/schedulerdaemon.py", line 388, in main
self.do_mainloop()
File "/usr/local/shinken/shinken/daemon.py", line 244, in do_mainloop
self.do_loop_turn()
File "/usr/local/shinken/shinken/daemons/schedulerdaemon.py", line 251, in do_loop_turn
self.sched.run()
File "/usr/local/shinken/shinken/scheduler.py", line 1491, in run
f()
File "/usr/local/shinken/shinken/scheduler.py", line 1377, in check_orphaned
time_to_orphanage = c.ref.get_time_to_orphanage()
File "/usr/local/shinken/shinken/objects/schedulingitem.py", line 1322, in get_time_to_orphanage
if self.time_to_orphanage <= 0:
AttributeError: time_to_orphanage
Has anyone ever faced this before ?