Description of problem: Log files are created with rights root:root after cluster installation, therefore Ceph can't write the logs in the files. For example: [vagrant@osd01 ~]$ ll -a /var/log/ceph/ total 920 drwxr-xr-x. 2 167 167 223 Oct 1 21:48 . drwxr-xr-x. 11 root root 4096 Oct 1 21:45 .. -rw-r--r--. 1 root root 0 Oct 1 21:45 ceph-client.admin.log -rw-r--r--. 1 root root 0 Oct 1 21:46 ceph-mgr.osd01.log -rw-r--r--. 1 167 167 426058 Oct 2 05:24 ceph-mon.osd01.log -rw-r--r--. 1 root root 0 Oct 1 21:47 ceph-osd.0.log -rw-r--r--. 1 root root 0 Oct 1 21:48 ceph-osd.12.log -rw-r--r--. 1 root root 0 Oct 1 21:48 ceph-osd.17.log -rw-r--r--. 1 root root 0 Oct 1 21:48 ceph-osd.22.log -rw-r--r--. 1 root root 0 Oct 1 21:47 ceph-osd.6.log -rw-r--r--. 1 root root 411567 Oct 1 21:49 ceph-volume.log From the above files only the mon log file is created correctly (rights for file are 167:167), and all other files remain empty as the daemons can't write in root owned files Version-Release number of selected component (if applicable): Ceph-ansible is ceph-ansible-4.0.31-1.el8cp.noarch RHCS is 4.1z2 How reproducible: Everytime Steps to Reproduce: 1. Create a cluster with the configuration parameter "log_to_file= true" 2. Check /var/log/ceph Actual results: Log files remain empty Expected results: Logs should be written in log files
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 (Important: Red Hat Ceph Storage security, bug fix, and enhancement Update), 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/RHSA-2021:1452