Your message dated Fri, 22 Mar 2024 17:47:28 +0100
with message-id <[email protected]>
and subject line Closing this lacking justification for an oldstable upload
has caused the Debian Bug report #993962,
regarding pacemaker: Spams logs due to bogus log file permission check
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
993962: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993962
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pacemaker
Version: 2.0.5-2
Severity: important
Tags: patch upstream fixed-upstream
Forwarded: 
https://github.com/ClusterLabs/pacemaker/commit/825557ebe55038c2fdb87ed26b91a04173a496bd

Hi!

This release up to 2.1 spams the log file with:

  ,---
  Set r/w permissions for uid=105, gid=110 on /var/log/pacemaker/pacemaker.log
  `---

due to a bogus check in the code. This has been fixed already, in the
above mentioned commit, and it will disappear from testing/sid once a
new upstream release gets packaged, but I'd appreciate if this could
be fixed in stable too, as the workarounds to try to silence this are a
bit brittle. :/

What I have done to silence this has been to, set:

  ,-- /etc/default/pacemaker ---
  PCMK_logfile_mode=0
  `---

to disable the involved code, but that then means the files get created
with the wrong permissions (due to the forced umask), which was the next
thing I tried via an UMask directive in the systemd service file, which
was obviously not effective. So to fix that, I had to add:

  ,--- /etc/logrotate.d/pacemaker ---
    firstaction
      find /var/log/pacemaker/ -type f -name '*.log' -exec chmod 0660 '{}' \;
    endscript
  `---

which is not ideal.

Thanks,
Guillem

--- End Message ---
--- Begin Message ---
X-CrossAssassin-Score: 48607

--- End Message ---

Reply via email to