Description of problem: ceph container logging to respective daemon Version-Release number of selected component (if applicable): Red Hat Ceph Storage 3.2.z2
*** Bug 1671484 has been marked as a duplicate of this bug. ***
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. Regards, Giri
Hi Guillaume, Need help, unable to set log_to_file as mentioned in doc text field. my env - upgraded from ceph-3.3-rhel-7-containers-candidate-54404-20191212220346 to ceph-4.0-rhel-8-containers-candidate-52417-20191217061816 using ceph-ansible-4.0.6-1.el7cp.noarch $ sudo docker exec ceph-mon-magna109 ceph config daemon mon.magna109 log_to_file true no valid command found; 10 closest matches: config show <who> {<key>} config show-with-defaults <who> config set <who> <name> <value> {--force} config rm <who> <name> config get <who> {<key>} config dump config help <key> config ls config assimilate-conf config log {<int>} Error EINVAL: invalid command $ sudo docker exec ceph-mon-magna109 ceph config show log_to_file Error ENOENT: no config state for daemon log_to_file $ sudo docker exec ceph-mon-magna109 ceph config get log_to_file Error EINVAL: unrecognized entity 'log_to_file' Can you please help me ? Regards, Vasishta Shastry QE, Ceph
Hi Guilluame, Thanks for the correction, I tried but not able to see log files for corresponding monitor $ sudo docker exec ceph-mon-magna046 ceph daemon mon.magna046 config set log_to_file true { "success": "log_to_file = 'true' " } $ ls /var/log/ceph ceph-volume.log $ Please let me know whether I'm missing something in my understanding/expectations. (It was cluster upgraded from 3.3.x to 4.x latest build as on today) Regards, Vasishta Shastry QE, Ceph
Hi Guillaume, $ sudo docker exec ceph-mon-magna046 ceph config get mon.magna046 mon_cluster_log_to_file true After your suggestion in Comment 24, I could see ceph.log and ceph.audit.log , but not mon log $ ls /var/log/ceph ceph.audit.log ceph.log ceph-volume.log
# podman exec ceph-mon-magna049 ceph config get mon.magna049 mon_cluster_log_to_file true # podman exec ceph-mon-magna049 ceph config get mon.magna049 log_to_file true # ls /var/log/ceph ceph-osd.10.log ceph-osd.6.log ceph-osd.9.log ceph-volume.log # sudo systemctl -l|grep ceph ceph-mgr loaded active running Ceph Manager ceph-mon loaded active running Ceph Monitor Still not able to see monitor/manager service log files Moving BZ back to ASSIGNED state.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0312