Ceph: Logrotate does not work for cephadm logs

Solution Verified - Updated -

Issue

Logrotate does not work for cephadm logs
cephadm.log rotation fails
The cephadm file in /etc/logrotate.d is missing the su directive.

# logrotate -v -d /etc/logrotate.conf
...
rotating pattern: /var/log/ceph/cephadm.log  after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/ceph/cephadm.log
error: skipping "/var/log/ceph/cephadm.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.

Environment

Red Hat Ceph Storage (RHCS) 5.1.x
Red Hat Ceph Storage (RHCS) 5.2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content