Project

General

Profile

Actions

Bug #40079

open

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

Added by haitao chen almost 5 years ago. Updated about 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):

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.

Actions

Also available in: Atom PDF