Project

General

Profile

Actions

Bug #4676

closed

daemon logs aren't opened until daemonize

Added by Sage Weil about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.

Actions #1

Updated by Sage Weil about 11 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Greg Farnum
  • Priority changed from High to Urgent

wip-log-boot

Actions #2

Updated by Sage Weil about 11 years ago

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.

Actions #3

Updated by Sage Weil about 11 years ago

  • Tracker changed from Fix to Bug
Actions #4

Updated by Greg Farnum about 11 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Priority changed from Urgent to Normal

Merged into next in 1a3890a59fd8504176fe987cd3b1401bf721aa3f

Needs a backport but I'm turning down the priority for now.

Actions #5

Updated by Greg Farnum about 11 years ago

  • 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.

Actions #6

Updated by Greg Farnum about 11 years ago

  • 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. :)

Actions #7

Updated by Sage Weil about 11 years ago

  • Status changed from 12 to Fix Under Review

wip-log

Actions #8

Updated by Sage Weil about 11 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF