action #162347
closedInvalid journald configuration on OSD (any maybe other hosts) size:S
0%
Description
Observation¶
While checking osd-logs nicksinger encountered:
[ 4.485011] systemd-journald[628]: /etc/systemd/journald.conf.d/journal_size.conf:3: Failed to parse size value, ignoring: 20%
So https://gitlab.suse.de/openqa/salt-states-openqa/-/blob/2f714dc265be4e962409afc997c260e4dab42b1b/openqa/server.sls#L421 seems to be outdated and should be updated to limit journald again.
Acceptance criteria¶
-
AC1:
ssh osd 'journalctl'
does not show "Failed to parse size" errors anymore
Suggestions¶
- Check what the correct syntax is, % may not be allowed or no longer accepted?
- Apply the fix for OSD
- Then check what machines are affected e.g. workers, and apply the according fix there as well, e.g. according state files
Updated by gpathak 4 months ago
The journald.conf
man page mentions to Specify values in bytes or use K, M, G, T, P, E as units for the specified sizes (equal to 1024, 1024²,... bytes).
Changed the setting on OSD to keep 20% of 80GB storage free.
[Journal]
SystemMaxUse=80G
SystemKeepFree=16G
SystemMaxFileSize=1G
SystemMaxFiles=200
Updated by gpathak 4 months ago
The specified journald configuration file is not present on any other worker except OSD
gpathak@openqa:~> sudo salt '*' cmd.run 'cat /etc/systemd/journald.conf.d/journal_size.conf'
s390zl12.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
s390zl13.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
openqa.suse.de:
[Journal]
SystemMaxUse=80G
SystemKeepFree=16G
SystemMaxFileSize=1G
SystemMaxFiles=200
diesel.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
ada.qe.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
baremetal-support-prg2.qe.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
openqaworker18.qa.suse.cz:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
openqaworker16.qa.suse.cz:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
openqaw5-xen.qe.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
openqaworker17.qa.suse.cz:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
osiris-1.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
qesapworker-prg6.qa.suse.cz:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
storage.qe.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
netboot.qe.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
qesapworker-prg7.qa.suse.cz:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
qesapworker-prg4.qa.suse.cz:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker40.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker34.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker36.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker29.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker31.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker35.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
sapworker1.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker33.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker-arm2.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker-arm1.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker39.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker30.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
unreal6.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
petrol.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
qesapworker-prg5.qa.suse.cz:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
worker32.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
openqaworker14.qa.suse.cz:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
mania.qe.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
schort-server.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
openqa-piworker.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
baremetal-support.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
qamaster.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
backup-vm.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
jenkins.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
monitor.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
backup-qam.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
grenache-1.oqa.prg2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
tumblesle.qe.nue2.suse.org:
cat: /etc/systemd/journald.conf.d/journal_size.conf: No such file or directory
Updated by okurz 4 months ago
gpathak wrote in #note-6:
The
journald.conf
man page mentions to Specify values in bytes or use K, M, G, T, P, E as units for the specified sizes (equal to 1024, 1024²,... bytes).Changed the setting on OSD to keep 20% of 80GB storage free.
[Journal] SystemMaxUse=80G SystemKeepFree=16G SystemMaxFileSize=1G SystemMaxFiles=200
https://manpath.be/c7/5/journald.conf#L129 mentions percent and I am sure those values worked and did not cause errors when we introduced them. Maybe the format changed and the character '%' shouldn't be used?
Updated by gpathak 4 months ago · Edited
okurz wrote in #note-10:
gpathak wrote in #note-6:
The
journald.conf
man page mentions to Specify values in bytes or use K, M, G, T, P, E as units for the specified sizes (equal to 1024, 1024²,... bytes).Changed the setting on OSD to keep 20% of 80GB storage free.
[Journal] SystemMaxUse=80G SystemKeepFree=16G SystemMaxFileSize=1G SystemMaxFiles=200
https://manpath.be/c7/5/journald.conf#L129 mentions percent and I am sure those values worked and did not cause errors when we introduced them. Maybe the format changed and the character '%' shouldn't be used?
I was also confused at first, but the line says
The first pair defaults to 10% and the second to 15% of the size of the respective file system , but each value is capped to 4G
which is the default value that journald will consider if not specified or not found explicitly in any config file