feat(system_baseline): let system_baseline_journal_max_use be empty to leave journald alone #415
Open
Dragonish
wants to merge 1 commits from
feat/401-journal-max-use-empty into main
pull from: feat/401-journal-max-use-empty
merge into: Mortis:main
Mortis:main
Mortis:renovate/community.docker-5.x
Mortis:renovate/apm-cli-0.x
Mortis:renovate/job-container-ubuntu-24.04
Mortis:renovate/ubuntu-24.04
Mortis:fix/364-ansible-facts
Mortis:feat/400-skip-upgrade-during-vzdump
Mortis:ci/168-offline-fast-path
No Reviewers
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Needs Triage
Maintainer needs to evaluate this issue
Status
Ready for Agent
Fully specified, ready for an AFK agent
Status
Ready for Human
Requires human implementation
Wayfinder
Grilling
Decision ticket resolved in conversation with the maintainer
Wayfinder
Map
Wayfinder map: index of a planning effort and its decision tickets
Wayfinder
Prototype
Decision ticket resolved by reacting to a rough concrete artifact
Wayfinder
Research
Decision ticket resolved by reading outside sources
Wayfinder
Task
Manual work that must happen before a decision can be made
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mortis/Kamino#415
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #401
system_baselinecapped the persistent journal on every host with no way to opt out, and wrotesystem_baseline_journal_max_useinto the drop-in unchecked: an empty value produced an emptySystemMaxUse=, and a bare number, a typo or a line break went into the file as it was.tasks/main.yml: the journald import haswhen: system_baseline_journal_max_use | length > 0, as the apt-daily import does. With an empty value there is no drop-in directory, no drop-in file and no restart ofsystemd-journald. A file an earlier run wrote stays (the issue's proposal, matching the apt-daily input).tasks/validate.yml(tagalways, so--tags journaldvalidates too): the value is empty,infinity, or a number followed byK,M,GorT. A bare number, a space or a line break stops the run before any change, with a message that names the input.defaults/main.yml, and aminor_changesfragment. The default stays200M."300","0",10 M,10m, a value with a line break and the integer300(newtasks/refuse_journal_max_use.yml); the last play ofverify.ymlremoves the drop-in, runs the role with an empty value and asserts that no drop-in directory exists and that journald'sActiveEnterTimestampMonotonicdid not change.Decisions you may want to look at
1.5Gand theP/Esuffixes stop the run, because the issue names K, M, G and T. If you want them, it is one regex intasks/validate.yml. The fragment says that a form which used to be written as it was now stops the run.0Mpasses while0is refused. It is the same zero-byte cap in a valid form; refusing it would need a rule on the number.infinityis accepted because the issue lists it.Verified
Assisted-by).--tags journald,alwaysagainst this branch:200M,infinity,2Gand0Mvalidate and reach the drop-in tasks; an empty value skips both journald tasks;"300","0","10 M","10m","200M\nStorage=none", the integer300andinfiniteeach stop with the message that names the input.molecule verify, the stricter pattern) are fixed or listed above.Not verified
systemctl show systemd-journald --property=ActiveEnterTimestampMonotonicbehaves as the new assertion expects in the container, or that the lastverify.ymlplay (a full role run with defaults) leaves nothing that matters. It runs last, because it removes the drop-in and the tmux snippet the converge wrote; a secondmolecule verifywithout a converge fails by design.infinityforSystemMaxUse, and its exact size syntax (decimals,P,E): I could not check the manual offline.NOTICEandREUSE.toml, or there is none. (None.)Assisted-by: Claude Code:claude-sonnet-5-5
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.