Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler: AttributeError: time_to_orphanage #913

Closed
elyrtan opened this issue Jun 28, 2013 · 7 comments
Closed

Scheduler: AttributeError: time_to_orphanage #913

elyrtan opened this issue Jun 28, 2013 · 7 comments
Assignees

Comments

@elyrtan
Copy link

elyrtan commented Jun 28, 2013

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 ?

@elyrtan
Copy link
Author

elyrtan commented Jul 1, 2013

When I relaunch scheduler, the error comes again.
However, if I restart all modules on spare, after waiting for master death (I dont restart master), spare launches and scheduler does NOT go down.

@ghost ghost assigned naparuba Nov 25, 2013
@Seb-Solon
Copy link
Contributor

Any news on that?

I'll close it this week end to freeze if no news.

@elyrtan
Copy link
Author

elyrtan commented Dec 5, 2013

Nothing new related to that subject :/
I just let go of MongodbRetention

David

@naparuba
Copy link
Contributor

naparuba commented Jan 2, 2014

so it works with pickleretention?

@elyrtan
Copy link
Author

elyrtan commented Jan 2, 2014

Yes, PickleRetention works. I have the retention files rsynced between my nodes.

@naparuba
Copy link
Contributor

naparuba commented Jan 2, 2014

ok so it's mongodb related. Can you reopen this thread to the module github repo please. thanks :)

@Seb-Solon
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants