Project

General

Profile

Actions

Bug #10010

closed

ceph_osd.cc calls global_init_shutdown_stderr even when running with -f or -d flags

Added by Scott Laird over 9 years ago. Updated over 9 years ago.

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

0%

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

Description

ceph-osd is difficult to debug in operation when running under systemd or docker, or any other system that expects to see error logs appear via STDOUT+STDERR, because ceph_osd.cc explicitly closes STDERR with a call to global_init_shutdown_stderr, without checking of the -f (foreground) or -d (debug) options are in use. With -d, this leads to all error messages being silently discarded with no logs at all, which is the precise opposite of what -d is supposed to do.

Code in either ceph_osd.cc or global_init.cc should check for foreground operation before closing STDERR.


Related issues 2 (0 open2 closed)

Related to Ceph - Bug #9810: dout_emergency is silenced in ceph-osdDuplicateLoïc Dachary10/17/2014

Actions
Related to Ceph - Bug #10113: --log-to-stderr with -f/-d sends a lot of things to logfileDuplicate11/14/2014

Actions
Actions

Also available in: Atom PDF