Description of problem: logs in /var/log/ceph/ do not seem to be rotated. This is problematic, especially when there are issues during bring up, I have a host on customer-site where /var/log/ceph/ceph-volume.log is 17GiB after just 4 days. Version-Release number of selected component (if applicable): ceph-ansible-4.0.23-1.el8cp.noarch How reproducible: always Steps to Reproduce: 1. set up a ceph cluster with ceph-ansible 2. wait one day 3. check /var/log/ceph/ on all ceph nodes 4. wait one week 5. check /var/log/ceph/ again Actual results: logs not rotated after a day, logs not rotated after a week Expected results: logs rotated and compressed, ideally every night but at the very least every week Additional info: I'm unsure if I can just rotate the logs while ceph-volume is running or if I need to send it a signal or if I should just user copytruncate (ceph-volume could continue writing to the file in that case). If you can answer that, then I can write a /etc/logrotate.d/ceph, attach here and test in my homelab.
*** Bug 1853383 has been marked as a duplicate of this bug. ***
*** Bug 1853708 has been marked as a duplicate of this bug. ***
Hi @Ameena, When the logs belong root:root then no logs are written. I have to change them to ceph:ceph or 167:167 and restart the services. Then Ceph starts writing the logs.
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 (Red Hat Ceph Storage 4.1 Bug Fix 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/RHBA-2020:4144