Bug #57917
Updated by Michael Fritch 5 months ago
Configuration of logrotate for /var/lib/ceph/cephadm.log was added (and backported to Pacific) via this PR:
https://github.com/ceph/ceph/pull/41283
However, a global config of for /var/lib/ceph/*.log is already present in the ceph-base RPM.
Using cephadm while also having the ceph-base RPM installed causes logrotate to fail with a duplicate log entry message
<pre>
node1:~ # logrotate --force /etc/logrotate.d/*
error: /etc/logrotate.d/cephadm:2 duplicate log entry for /var/log/ceph/cephadm.log
node1:~ # cat /etc/logrotate.d/ceph | head -1
/var/log/ceph/*.log {
node1:~ # rpm -qf /etc/logrotate.d/ceph
ceph-base-16.2.9.536+g41a9f9a5573-150300.3.3.1.x86_64
node1:~ # cat /etc/logrotate.d/cephadm | head -2
# created by cephadm
/var/log/ceph/cephadm.log {
</pre>
https://github.com/ceph/ceph/pull/41283
However, a global config of for /var/lib/ceph/*.log is already present in the ceph-base RPM.
Using cephadm while also having the ceph-base RPM installed causes logrotate to fail with a duplicate log entry message
<pre>
node1:~ # logrotate --force /etc/logrotate.d/*
error: /etc/logrotate.d/cephadm:2 duplicate log entry for /var/log/ceph/cephadm.log
node1:~ # cat /etc/logrotate.d/ceph | head -1
/var/log/ceph/*.log {
node1:~ # rpm -qf /etc/logrotate.d/ceph
ceph-base-16.2.9.536+g41a9f9a5573-150300.3.3.1.x86_64
node1:~ # cat /etc/logrotate.d/cephadm | head -2
# created by cephadm
/var/log/ceph/cephadm.log {
</pre>