diff options
author | Bazaah | 2022-12-21 14:46:01 +0000 |
---|---|---|
committer | Bazaah | 2022-12-21 14:48:10 +0000 |
commit | fe1e3d380fe04e287cc5a9f7855a9471ad797b96 (patch) | |
tree | 2630576e6f39e5bf705189bb662e6e59ddd34329 /ceph-17.2.5-logrotate-ignore-dups.patch | |
parent | 82a7efacca33c5640103622e251755a5523e78cd (diff) | |
download | aur-fe1e3d380fe04e287cc5a9f7855a9471ad797b96.tar.gz |
pkgbuild: add logrotate-ignore-dups.patch
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
Diffstat (limited to 'ceph-17.2.5-logrotate-ignore-dups.patch')
-rw-r--r-- | ceph-17.2.5-logrotate-ignore-dups.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ceph-17.2.5-logrotate-ignore-dups.patch b/ceph-17.2.5-logrotate-ignore-dups.patch new file mode 100644 index 000000000000..5949eec9997f --- /dev/null +++ b/ceph-17.2.5-logrotate-ignore-dups.patch @@ -0,0 +1,11 @@ +diff --git a/src/logrotate.conf b/src/logrotate.conf +index a9a452dd656..7949bebf49b 100644 +--- a/src/logrotate.conf ++++ b/src/logrotate.conf +@@ -8,5 +8,6 @@ + endscript + missingok + notifempty ++ ignoreduplicates + su root ceph + } |