Project

General

Profile

Actions

Bug #56552

closed

cephadm: reduce spam to cephadm.log

Added by Adam King almost 2 years ago. Updated over 1 year ago.

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

0%

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

Description

cephadm.log is getting filled with a bunch of messages that won't be useful in 99.9% of situations and make it hard to read the log. For example, gather-facts, which runs every minute, logs

2022-07-12 15:07:50,013 7f737ba12b80 DEBUG --------------------------------------------------------------------------------
cephadm ['gather-facts']
2022-07-12 15:07:50,060 7f737ba12b80 DEBUG /bin/podman: 4.0.2
2022-07-12 15:07:50,113 7f737ba12b80 DEBUG sestatus: SELinux status:                 enabled
2022-07-12 15:07:50,113 7f737ba12b80 DEBUG sestatus: SELinuxfs mount:                /sys/fs/selinux
2022-07-12 15:07:50,113 7f737ba12b80 DEBUG sestatus: SELinux root directory:         /etc/selinux
2022-07-12 15:07:50,113 7f737ba12b80 DEBUG sestatus: Loaded policy name:             targeted
2022-07-12 15:07:50,113 7f737ba12b80 DEBUG sestatus: Current mode:                   permissive
2022-07-12 15:07:50,113 7f737ba12b80 DEBUG sestatus: Mode from config file:          permissive
2022-07-12 15:07:50,113 7f737ba12b80 DEBUG sestatus: Policy MLS status:              enabled
2022-07-12 15:07:50,114 7f737ba12b80 DEBUG sestatus: Policy deny_unknown status:     allowed
2022-07-12 15:07:50,114 7f737ba12b80 DEBUG sestatus: Memory protection checking:     actual (secure)
2022-07-12 15:07:50,114 7f737ba12b80 DEBUG sestatus: Max kernel policy version:      33
2022-07-12 15:07:50,117 7f737ba12b80 DEBUG sestatus: SELinux status:                 enabled
2022-07-12 15:07:50,117 7f737ba12b80 DEBUG sestatus: SELinuxfs mount:                /sys/fs/selinux
2022-07-12 15:07:50,117 7f737ba12b80 DEBUG sestatus: SELinux root directory:         /etc/selinux
2022-07-12 15:07:50,117 7f737ba12b80 DEBUG sestatus: Loaded policy name:             targeted
2022-07-12 15:07:50,117 7f737ba12b80 DEBUG sestatus: Current mode:                   permissive
2022-07-12 15:07:50,117 7f737ba12b80 DEBUG sestatus: Mode from config file:          permissive
2022-07-12 15:07:50,117 7f737ba12b80 DEBUG sestatus: Policy MLS status:              enabled
2022-07-12 15:07:50,117 7f737ba12b80 DEBUG sestatus: Policy deny_unknown status:     allowed
2022-07-12 15:07:50,118 7f737ba12b80 DEBUG sestatus: Memory protection checking:     actual (secure)
2022-07-12 15:07:50,118 7f737ba12b80 DEBUG sestatus: Max kernel policy version:      33
2022-07-12 15:07:50,121 7f737ba12b80 DEBUG sestatus: SELinux status:                 enabled
2022-07-12 15:07:50,121 7f737ba12b80 DEBUG sestatus: SELinuxfs mount:                /sys/fs/selinux
2022-07-12 15:07:50,121 7f737ba12b80 DEBUG sestatus: SELinux root directory:         /etc/selinux
2022-07-12 15:07:50,121 7f737ba12b80 DEBUG sestatus: Loaded policy name:             targeted
2022-07-12 15:07:50,121 7f737ba12b80 DEBUG sestatus: Current mode:                   permissive
2022-07-12 15:07:50,122 7f737ba12b80 DEBUG sestatus: Mode from config file:          permissive
2022-07-12 15:07:50,122 7f737ba12b80 DEBUG sestatus: Policy MLS status:              enabled
2022-07-12 15:07:50,122 7f737ba12b80 DEBUG sestatus: Policy deny_unknown status:     allowed
2022-07-12 15:07:50,122 7f737ba12b80 DEBUG sestatus: Memory protection checking:     actual (secure)
2022-07-12 15:07:50,122 7f737ba12b80 DEBUG sestatus: Max kernel policy version:      33
2022-07-12 15:07:50,125 7f737ba12b80 DEBUG sestatus: SELinux status:                 enabled
2022-07-12 15:07:50,125 7f737ba12b80 DEBUG sestatus: SELinuxfs mount:                /sys/fs/selinux
2022-07-12 15:07:50,125 7f737ba12b80 DEBUG sestatus: SELinux root directory:         /etc/selinux
2022-07-12 15:07:50,125 7f737ba12b80 DEBUG sestatus: Loaded policy name:             targeted
2022-07-12 15:07:50,125 7f737ba12b80 DEBUG sestatus: Current mode:                   permissive
2022-07-12 15:07:50,126 7f737ba12b80 DEBUG sestatus: Mode from config file:          permissive
2022-07-12 15:07:50,126 7f737ba12b80 DEBUG sestatus: Policy MLS status:              enabled
2022-07-12 15:07:50,126 7f737ba12b80 DEBUG sestatus: Policy deny_unknown status:     allowed
2022-07-12 15:07:50,126 7f737ba12b80 DEBUG sestatus: Memory protection checking:     actual (secure)
2022-07-12 15:07:50,126 7f737ba12b80 DEBUG sestatus: Max kernel policy version:      33
2022-07-12 15:07:50,129 7f737ba12b80 DEBUG sestatus: SELinux status:                 enabled
2022-07-12 15:07:50,129 7f737ba12b80 DEBUG sestatus: SELinuxfs mount:                /sys/fs/selinux
2022-07-12 15:07:50,129 7f737ba12b80 DEBUG sestatus: SELinux root directory:         /etc/selinux
2022-07-12 15:07:50,129 7f737ba12b80 DEBUG sestatus: Loaded policy name:             targeted
2022-07-12 15:07:50,129 7f737ba12b80 DEBUG sestatus: Current mode:                   permissive
2022-07-12 15:07:50,129 7f737ba12b80 DEBUG sestatus: Mode from config file:          permissive
2022-07-12 15:07:50,129 7f737ba12b80 DEBUG sestatus: Policy MLS status:              enabled
2022-07-12 15:07:50,129 7f737ba12b80 DEBUG sestatus: Policy deny_unknown status:     allowed
2022-07-12 15:07:50,129 7f737ba12b80 DEBUG sestatus: Memory protection checking:     actual (secure)
2022-07-12 15:07:50,129 7f737ba12b80 DEBUG sestatus: Max kernel policy version:      33
2022-07-12 15:07:50,132 7f737ba12b80 DEBUG sestatus: SELinux status:                 enabled
2022-07-12 15:07:50,132 7f737ba12b80 DEBUG sestatus: SELinuxfs mount:                /sys/fs/selinux
2022-07-12 15:07:50,133 7f737ba12b80 DEBUG sestatus: SELinux root directory:         /etc/selinux
2022-07-12 15:07:50,133 7f737ba12b80 DEBUG sestatus: Loaded policy name:             targeted
2022-07-12 15:07:50,133 7f737ba12b80 DEBUG sestatus: Current mode:                   permissive
2022-07-12 15:07:50,133 7f737ba12b80 DEBUG sestatus: Mode from config file:          permissive
2022-07-12 15:07:50,133 7f737ba12b80 DEBUG sestatus: Policy MLS status:              enabled
2022-07-12 15:07:50,133 7f737ba12b80 DEBUG sestatus: Policy deny_unknown status:     allowed
2022-07-12 15:07:50,133 7f737ba12b80 DEBUG sestatus: Memory protection checking:     actual (secure)
2022-07-12 15:07:50,133 7f737ba12b80 DEBUG sestatus: Max kernel policy version:      33

A number of other commands run regularly as part of metadata gathering (e.g. ceph-volume inventory, list-networks, ls) similarly print massive blocks of text into the log, making it hard to read through and making the overall size of the log file quickly become massive.


Related issues 1 (0 open1 closed)

Copied to Orchestrator - Backport #56741: quincy: cephadm: reduce spam to cephadm.logResolvedAdam KingActions
Actions #1

Updated by Adam King over 1 year ago

  • Status changed from In Progress to Pending Backport
  • Pull request ID set to 47088
Actions #2

Updated by Backport Bot over 1 year ago

  • Copied to Backport #56741: quincy: cephadm: reduce spam to cephadm.log added
Actions #3

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions #4

Updated by Adam King over 1 year ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF