Package: slurmctld
Version: 22.05.8-4+deb12u1
Severity: normal
Tags: patch
X-Debbugs-Cc: alois.schlo...@gmail.com
Dear Maintainer,
After migrating the slurmctld from debian11/slurm20 to a host with
debian12/slurm22,
/var/log/slurm/slurmctld.log was rotated at midnight, to
/var/log/slurm/slurmctld.log.1.gz
but no /var/log/slurm/slurmctld.log was generated.
syslog of logrotate showed this log message:
2023-11-17T00:00:01.825407+01:00 l74 logrotate[3441040]:
start-stop-daemon: matching only on non-root pidfile
/var/run/slurm/slurmctld.pid is insecure
2023-11-17T00:00:03.356036+01:00 l74 logrotate[3440981]: error:
Compressing program wrote following message to stderr when compressing
log /var/log/slurm/slurmctld.log.1:
2023-11-17T00:00:03.356307+01:00 l74 logrotate[3440981]: gzip:
stdin: file size changed while zipping
I believe the following patch fixes the issue:
l74:# diff -uw /etc/logrotate.d/slurmctld.orig
/etc/logrotate.d/slurmctld
--- /etc/logrotate.d/slurmctld.orig 2023-11-17 10:15:45.751842740 +0100
+++ /etc/logrotate.d/slurmctld 2023-11-17 10:15:30.132636120 +0100
@@ -3,7 +3,7 @@
missingok
nocopytruncate
nocreate
- nodelaycompress
+ delaycompress
nomail
notifempty
noolddir
I'd like suggesting to include this change in the slurmctld package.
-- System Information:
Debian Release: 12.2
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-13-amd64 (SMP w/56 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN,
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages slurmctld depends on:
ii libc6 2.36-9+deb12u3
ii munge 0.5.15-2
ii slurm-client 22.05.8-4+deb12u1
ii slurm-wlm-basic-plugins 22.05.8-4+deb12u1
ii ucf 3.0043+nmu1
slurmctld recommends no packages.
slurmctld suggests no packages.
-- Configuration Files:
/etc/logrotate.d/slurmctld changed:
/var/log/slurm-llnl/slurmctld.log /var/log/slurm/slurmctld.log {
compress
missingok
nocopytruncate
nocreate
delaycompress
nomail
notifempty
noolddir
rotate 12
sharedscripts
size=5M
postrotate
/usr/sbin/invoke-rc.d --quiet slurmctld reconfig >/dev/null
/bin/sleep 1
endscript
}