Actions
Feature #52869
closedadd setting for cephadm log level
% Done:
0%
Source:
Tags:
Backport:
Description
the cephadm log file under /var/log/ceph/cephadm.log is by default in DEBUG level and can get big quite fast:
-rw------- 1 root ceph 445M Sep 30 09:18 cephadm.log
It also contains redundant/uninteresting entries, e.g.
2021-10-08 09:46:42,766 INFO podman|docker (/usr/bin/docker) is present 2021-10-08 09:46:43,864 DEBUG Could not locate podman: podman not found 2021-10-08 09:46:47,856 DEBUG Could not locate podman: podman not found 2021-10-08 09:48:03,333 DEBUG Could not locate podman: podman not found 2021-10-08 09:48:07,242 DEBUG Could not locate podman: podman not found 2021-10-08 09:49:14,936 DEBUG Could not locate podman: podman not found 2021-10-08 09:49:18,897 DEBUG Could not locate podman: podman not found 2021-10-08 09:50:20,637 DEBUG Could not locate podman: podman not found 2021-10-08 09:50:24,579 DEBUG Could not locate podman: podman not found 2021-10-08 09:51:26,273 DEBUG Could not locate podman: podman not found 2021-10-08 09:51:30,285 DEBUG Could not locate podman: podman not found 2021-10-08 09:52:32,055 DEBUG Could not locate podman: podman not found 2021-10-08 09:52:36,019 DEBUG Could not locate podman: podman not found 2021-10-08 09:53:37,789 DEBUG Could not locate podman: podman not found 2021-10-08 09:53:41,766 DEBUG Could not locate podman: podman not found 2021-10-08 09:54:43,579 DEBUG Could not locate podman: podman not found 2021-10-08 09:54:47,543 DEBUG Could not locate podman: podman not found 2021-10-08 09:55:49,338 DEBUG Could not locate podman: podman not found 2021-10-08 09:55:56,537 DEBUG Could not locate podman: podman not found 2021-10-08 09:56:00,459 DEBUG Could not locate podman: podman not found 2021-10-08 09:57:03,910 DEBUG Could not locate podman: podman not found 2021-10-08 09:57:03,911 INFO podman|docker (/usr/bin/docker) is present 2021-10-08 09:57:05,038 DEBUG Could not locate podman: podman not found 2021-10-08 09:57:08,943 DEBUG Could not locate podman: podman not found 2021-10-08 09:58:21,716 DEBUG Could not locate podman: podman not found 2021-10-08 09:58:25,694 DEBUG Could not locate podman: podman not found
please add an option to set the desired log level to clean up the log and keep the size reasonable. thanks :)
Updated by Tobias Fischer over 2 years ago
We tried to change the Log Level in Source, but it seems that cephadm from Container Image is used.
# Log and console output config logging_config = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'cephadm': { 'format': '%(asctime)s %(thread)x %(levelname)s %(message)s' }, }, 'handlers': { 'console': { 'level': 'INFO', 'class': 'logging.StreamHandler', }, 'log_file': { 'level': 'DEBUG', 'class': 'logging.handlers.WatchedFileHandler', 'formatter': 'cephadm', 'filename': '%s/cephadm.log' % LOG_DIR, } }, 'loggers': { '': { 'level': 'DEBUG', 'handlers': ['console', 'log_file'], } } }
Updated by Sebastian Wagner over 2 years ago
- Status changed from New to In Progress
- Assignee set to Sebastian Wagner
- Pull request ID set to 43789
Updated by Sebastian Wagner over 2 years ago
- Status changed from In Progress to Resolved
Actions