Bug #4676
closed
daemon logs aren't opened until daemonize
Added by Sage Weil about 11 years ago.
Updated about 11 years ago.
Description
This explains by the log banner with the ceph version etc usually does not appear in the log.
We don't call the LogObs until common_init_finish(), which is called after daemonize, which starts the threads.
It would be nice to get logging before that point, since mon and osd both can do significant work prior to daemonize.
- Status changed from New to Fix Under Review
- Assignee set to Greg Farnum
- Priority changed from High to Urgent
simple fix is to call observers in global_init(). there is no harm in calling them twice. and note that the config ones are already called by global_init if the config file adjusts the defaults.
- Tracker changed from Fix to Bug
- Status changed from Fix Under Review to Pending Backport
- Priority changed from Urgent to Normal
- Status changed from Pending Backport to 12
- Priority changed from Normal to High
That version didn't work; it crashed, I believe because the lockdep infrastructure isn't set up yet and we're descending into locking. We'll need to rework it.
- Assignee changed from Greg Farnum to Sage Weil
Giving this back since you're no longer on vacation and I haven't had a chance to try and untangle the issues. :)
- Status changed from 12 to Fix Under Review
- Status changed from Fix Under Review to Resolved
Also available in: Atom
PDF