Repository navigation
mgr/cephadm: Control cephadm files logging based on a mgr flag - #68859
Conversation
|
This PR takes #67300 further. |
25ca6c5 to
8cd3f23
Compare
3354325 to
801c940
Compare
|
jenkins test make check arm64 |
adk3798
left a comment
There was a problem hiding this comment.
Generally looks okay. Left one comment asking a question about a certain debug level log statement. You might also want to squash the two commits as the second modifies a bunch of stuff added in the first.
rkachach
left a comment
There was a problem hiding this comment.
LGTM overall, just a minor comment
801c940 to
03eb9bc
Compare
…level flag Introduces a new 'cephadm_binary_logging_level' config option to control the verbosity of cephadm logging to persistent destinations (cephadm.log, syslog). - Adds --logging-level CLI flag (info, debug, error, warning) - Adds mgr/cephadm/cephadm_binary_logging_level config option - Applies logging level to file and syslog handlers - Console handlers maintain their defaults for terminal UX Fixes: https://tracker.ceph.com/issues/74872 Signed-off-by: Ashwin M. Joshi <[email protected]>
03eb9bc to
63b9183
Compare
Add documentation for the new cephadm binary logging level configuration Fixes: https://tracker.ceph.com/issues/74872 Signed-off-by: Ashwin M. Joshi <[email protected]>
|
Teuthology run was successful. Failing Test cases are not related to this PR: |
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
Supersedes/continues #67300 after branch rename.
User wants to disable the host check-hosts, or gather-facts logs that is being captured every minute in the cephadm.log file. The existing mgr flag mgr/cephadm/log_to_cluster_level does not control the logging by cephadm binary. This patch adds a new mgr flag cephadm_binary_logging_level to control the logging in cephadm.log. The default behaviour would have 'debug' level set, and the repetative messages can be turned off by setting mgr/cephadm/cephadm_binary_logging_level to 'info'. The cephadm_binary_logging_level logging level applies to all cephadm binary invocations by mgr.
Fixes: https://tracker.ceph.com/issues/74872
Signed-off-by: Ashwin M. Joshi [email protected]
And with higher logging levels
Syslog tests:
shows no debug logs in journalctl -t cephadm -f
Whereas
shows the following with debug logs as expected:
Note that ceph config get mgr mgr/cephadm/cephadm_binary_logging_level as "info" only applies when the mgr runs cephadm over SSH (internal orchestration), not when cephadm is run directly on the host.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.