Project

General

Profile

Bug #40079

mgr/dashboard: dashboard plugin can't output message into ceph-mgr's log file

Added by haitao chen almost 5 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
General - Back-end
Target version:
-
% Done:

0%

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

Description

Env: centos 7.5, kernel: 3.10, ceph version: 13.2.5

Reproduce:
1, deploy three ceph-mgr nodes.
2, use 'ceph mgr fail <mgr_id>' to switch active mgr node.
3, After sometimes, dashboard can't output message into ceph-mgr's log file.

Root cause:

When a mgr node switch from standby to active. It will config the logger in __init__ function of class MgrModule.
But this logger's handler may be removed by __del__ function of class MgrStandbyModule.(class MgrModule and class MgrStandyModule have the same logger name.)

When this scene occurs, the dashboard plugin can't output message into ceph-mgr's log file.

History

#1 Updated by Neha Ojha almost 5 years ago

  • Project changed from RADOS to mgr

#2 Updated by Lenz Grimmer almost 5 years ago

  • Tags set to logging
  • Subject changed from [ceph-mgr dashboard]dashboard plugin can't output message into ceph-mgr's log file to mgr/dashboard: dashboard plugin can't output message into ceph-mgr's log file
  • Category set to 146
  • Target version deleted (v13.2.6)
  • Affected Versions v13.2.5 added

#3 Updated by Ernesto Puerta almost 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 146 to General - Back-end

Also available in: Atom PDF