summarylogtreecommitdiffstats
path: root/ceph-17.2.5-logrotate-ignore-dups.patch
AgeCommit message (Collapse)Author
2022-12-21pkgbuild: add logrotate-ignore-dups.patchBazaah
This fixes an unfortunate issue in the upstream's provided logrotate, and the one which `cephadm` creates during runs. Unfortunately, logrotate throws an error if more than one rule matches a given file, which is the case between our '.../ceph/*.log' and the cephadm generated one: '.../ceph/cephadm.log'. Because the file is generated we can't really complain to the maintainer for cephadm, and we also can't change our rule because ceph may generate any pattern matching '<cluster>-<svc>-<id>', all of which are user / cluster specific. Fortunately, the most recent (as of this commit) logrotate as introduced a workaround: 'ignoreduplicates' which does what you expect. We patch the upstream logrotate.conf to include this keyword, fixing this issue. See the issue for more. References: https://github.com/logrotate/logrotate/pull/473 References: https://github.com/ceph/ceph/blob/v17.2.5/src/cephadm/cephadm#L9408 Closes: #8 Issue: https://github.com/bazaah/aur-ceph/issues/8 Reported-by: snack@aur.archlinux.org