Project

General

Profile

Actions

Bug #48311

closed

mgr module INFO should be logged by default

Added by Dan van der Ster over 3 years ago. Updated about 2 years ago.

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

0%

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

Description

Clusters need to have debug_mgr 4/5 in order to see the useful mgr module INFO lines, e.g.:

2020-11-20T12:21:09.086+0100 7f4f2ea3c700  0 [pg_autoscaler INFO root] _maybe_adjust
2020-11-20T12:21:09.218+0100 7f4f2ea3c700  0 [pg_autoscaler INFO root] effective_target_ratio 0.0 0.55 0 6704959563235328.0
2020-11-20T12:21:09.218+0100 7f4f2ea3c700  0 [pg_autoscaler INFO root] Pool 'device_health_metrics' root_id -1 using 1.7097320113394475e-09 of space, bias 1.0, pg target 2.8096596053011588e-05 quantized to 1 (current 1)
2020-11-20T12:21:09.220+0100 7f4f2ea3c700  0 [pg_autoscaler INFO root] effective_target_ratio 0.0 0.55 0 6704959563235328.0
2020-11-20T12:21:09.221+0100 7f4f2ea3c700  0 [pg_autoscaler INFO root] Pool 'ecpool' root_id -2 using 0.0 of space, bias 1.0, pg target 0.0 quantized to 32 (current 64)
2020-11-20T12:21:09.223+0100 7f4f2ea3c700  0 [pg_autoscaler INFO root] effective_target_ratio 0.05 0.55 0 6704959563235328.0
2020-11-20T12:21:09.223+0100 7f4f2ea3c700  0 [pg_autoscaler INFO root] Pool 'cephfs_metadata' root_id -6 using 0.09090909090909091 of space, bias 4.0, pg target 5975.757575757576 quantized to 4096 (current 256)
2020-11-20T12:21:09.225+0100 7f4f2ea3c700  0 [pg_autoscaler INFO root] effective_target_ratio 0.5 0.55 0 6704959563235328.0
2020-11-20T12:21:09.225+0100 7f4f2ea3c700  0 [pg_autoscaler INFO root] Pool 'cephfs_data' root_id -2 using 0.9090909090909091 of space, bias 1.0, pg target 7469.696969696969 quantized to 8192 (current 8192)

...
2020-11-20T12:21:21.102+0100 7f4f31881700  0 [balancer INFO root] Optimize plan auto_2020-11-20_11:21:20
2020-11-20T12:21:21.102+0100 7f4f31881700  0 [balancer INFO root] Mode upmap, max misplaced 0.050000
2020-11-20T12:21:21.102+0100 7f4f31881700  0 [balancer INFO root] do_upmap
2020-11-20T12:21:21.102+0100 7f4f31881700  0 [balancer INFO root] pools ['cephfs_data']
2020-11-20T12:21:21.383+0100 7f4f31881700  0 [balancer INFO root] prepared 0/100 changes

These logs are not overly verbose, yet are super useful to help an operator understand what the mgr modules are doing.

I propose to change the default debug_mgr to 4/5 (from 1/5) or to change the mgr module "INFO" logs to be sent at ceph_level 1.


Related issues 2 (0 open2 closed)

Copied to mgr - Backport #51423: octopus: mgr module INFO should be logged by defaultResolvedLaura PaduanoActions
Copied to mgr - Backport #51424: pacific: mgr module INFO should be logged by defaultResolvedCory SnyderActions
Actions #1

Updated by Neha Ojha over 3 years ago

  • Priority changed from Normal to High
Actions #2

Updated by Sage Weil almost 3 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 41933
Actions #3

Updated by Neha Ojha almost 3 years ago

  • Backport changed from nautilus,octopus to octopus, pacific
Actions #4

Updated by Kefu Chai almost 3 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #5

Updated by Backport Bot almost 3 years ago

  • Copied to Backport #51423: octopus: mgr module INFO should be logged by default added
Actions #6

Updated by Backport Bot almost 3 years ago

  • Copied to Backport #51424: pacific: mgr module INFO should be logged by default added
Actions #7

Updated by Konstantin Shalygin about 2 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF