Re: cephadm logrotate conflict

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



FWIW, cephadm only writes that file out if it doesn't exist entirely. You
might be able to just remove anything actional functional from it and just
leave a sort of dummy file with only a comment there as a workaround. Also,
was this an upgraded cluster? I tried quickly bootstrapping a
cephadm cluster then installing ceph-common and running a couple commands
through it for a quick reproducer but no /etc/logrotate.d/ceph-common was
ever made.

On Thu, Aug 25, 2022 at 3:42 AM Robert Sander <r.sander@xxxxxxxxxxxxxxxxxxx>
wrote:

> Hi,
>
> on a Ceph cluster deployed with cephadm the orchestrator installs a
> config file /etc/logrotate.d/cephadm automatically to rotate its logfile.
>
> This creates a conflict when the ceph-common package is also installed:
>
> Aug 25 00:00:03 cephtest21 logrotate[203869]: error: cephadm:2 duplicate
> log entry for /var/log/ceph/cephadm.log
> Aug 25 00:00:03 cephtest21 logrotate[203869]: error: found error in file
> cephadm, skipping
>
> The package ceph-common contains the command line clients and the config
> file /etc/logrotate.d/ceph-common for all /var/log/ceph/*.log
>
> Logrotate is not able to run any more and logfiles do not get rotated
> at all. This is bad.
>
> I tried to remove /etc/logrotate.d/cephadm but it gets automatically
> re-created.
>
> IMHO cephadm should only create this file if the ceph-common file is
> not present.
>
> Regards
> --
> Robert Sander
> Heinlein Consulting GmbH
> Schwedter Str. 8/9b, 10119 Berlin
>
> http://www.heinlein-support.de
>
> Tel: 030 / 405051-43
> Fax: 030 / 405051-19
>
> Zwangsangaben lt. §35a GmbHG:
> HRB 220009 B / Amtsgericht Berlin-Charlottenburg,
> Geschäftsführer: Peer Heinlein -- Sitz: Berlin
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux