The tracker's journal is persistent by declaration (TR-67) #48
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-tracker!48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/TR-67-the-tracker-s-journal-is-persistent-by-d"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements TR-67
Summary
A
journalrole beside the Service's, applied first in the playbook, declaresjournald's storage instead of leaving it to whatever the image shipped — the
shape
infra-cockpitalready carries on 143 and 145.Two readings the ticket left to the change:
roles/vikunja. The ticket says "in thevikunjarole … the way the cockpit's journal role does", and the cockpit's wayis a
journalrole applied ahead of the Service's. Folding it in would have madethe Guest's boot log the Service's property, which it is not.
journalctl --disk-usageis the only route tojournald that needs no privilege and no JSON, so the Assert reads it, and it
reads the drop-in rather than only the directory:
/var/log/journalexisting isa property of the image, and the point of this change is that the answer stops
depending on the image.
Evidence
mise exec -- make check, exit 0, on this head:ansible-playbook --syntax-checkon both plays against the prod Inventory:playbook: site.yml,playbook: verify.yml, rc 0.The assertions, run for real. The three expressions the new Assert rests on
were run in a throwaway play against this host's journald (systemd 257, Debian
13's major) and
ansible-core 2.21.5—ok=4 changed=0 failed=0:journalctl --disk-usageanswersArchived and active journals take up 51.3M in the file system.rc == 0andsearch('take up')Storage=persistenton its own linesearch('(?m)^Storage=persistent$')#Storage=persistentStorage=autoNot verified here. The Suite. This host has no docker
(
docker: command not found), somake test— the local leg that Converges acontainer Target and runs this Assert — could not run, and
make test-cineedsthe
preProxmox token and a CI SSH key an agent identity does not hold. Theexecutejob on this pull request is the leg that proves it, on a Test Guestcreated from this Stack. The container Target is
debian:13-slim, which carriesno
/var/log/journalof its own, so a green Suite is the stronger reading of"rebuilt from this role" — the directory arrives from the drop-in.
Merge Danger
Door: two-way. A revert drops the role and the assertion; the directory and
the journal files stay where they are, because removing a drop-in deletes no
journal.
Blast Radius: the Service layer of one Guest
On the first Converge after the merge the drop-in is new, so the handler restarts
systemd-journaldon 142 once. Nothing about where the logs land moves — theGuest already carries
/var/log/journal, so journald'sautoalready resolved topersistent — and a restart loses no journal line already written. What changes is
that a rebuilt Guest keeps the boot before the one being read without depending on
what the image shipped.
Review started (round 1/5) on
55bab3495d— reading the diff now.olympus/infra-tracker#48 · head
55bab34· review round 1/5 · verdict merge — 0 blockers, 1 advisory.Recommendation: merge
What this change promises
TR-67 (Vikunja task 353, project 3, fetched live:
task http=200,identifier TR-67,index 67) asks for a persistent journal declared by this repository — in the Service layer, the wayinfra-cockpit's journal role does on 143 and 145 — with two acceptance criteria: a Guest rebuilt from the role carries/var/log/journaland ajournalctl --disk-usageanswer after its first deploy, andmise exec -- make checkexits 0.Spec source: the ticket's own acceptance criteria. The PR body says
Implements TR-67and did not change between my first read and this post (updated_atmoved only by my own sign-on comment).Standards
ADVISORY —
vikunja/service/verify.yml:115-117. The sentence splices two clauses with awherethat reads as a relative pronoun: "…is named there, where the config slurp further down can rely on the file the role has just installed." The intended word is whereas — this slurp tolerates absence, the config slurp does not — but as written "the file the role has just installed" can be taken for the journal drop-in the assert above is about, which the config slurp never reads (verify.yml:168-171reads/etc/vikunja/config.yml). Smallest fix:…is named there, whereas the config slurp further down may rely on its own file having been installed.— or cut the clause; the first half carries the reason.No other standards finding. I read the repo's rules at head —
AGENTS.md,GLOSSARY.md,docs/adr/0001–0005,.agents/skills/pr/SKILL.md, and the org records inolympus/workshopdocs/adrpulled from the forge atmain(0002 protectedmain, 0009 deploy through a merge, 0011 a deploy never destroys or replaces, 0012 the deploy key reads the record) — and:## Summary,## Evidence,## Merge Dangerwith Door and Blast Radius, asAGENTS.md§Pull requests and theprskill require;_Avoid_term (deploy,app,instance,snapshot: 0 occurrences in the diff's added lines), and the section uses Guest, Service, Converge, Assert asGLOSSARY.mddefines them;boundarystring (container/suite.sh:24), joined by a table row and YAML expressions, all matching shapes the base already carries (21 lines over 80 ondocs/reference/service.mdate8f22actoo);Managed byline — sosite.yml:2-8anddocs/reference/service.md:51-52say exactly what the cockpit does.Spec
No findings. Both criteria hold, and I reproduced the second by hand:
mise exec -- make check→ exit 0 at55bab34: 31oklines in the run (env-check's two beside env-test's 29),env-test: every assertion holds.,tofu validateclean on all three Stacks,pool.tftest.hcl1 passed,edge.tftest.hcl1 passed. The body's "31 ok" is the count a fullmake checkprints — I first counted env-test alone (29) and the full run reconciled it./var/log/journaland ajournalctl --disk-usageanswer" — proved after the body was written, by CI: run #416 (execute, job 3) finished success in 2m56s on this same SHA, converged a Test Guest from this Stack, and logged both new asserts asAll assertions passed—the journal is declared persistentandthe journal is on disk, and journalctl answers for it. Converges 2 and 3 came backchanged=0with no handler. That closes the gap the body names as "Not verified here".Scope: six files, every hunk mapping to the role, its place in
site.yml, its Assert, the page that documents it, or the Suite's parity boundary. No scope creep, no requirement missing.Verified, and how
localhostchanged=2, file written with exactly# Managed by infra-tracker (vikunja/service/roles/journal)./[Journal]/Storage=persistent, mode 644--check --diffchanged=0, no handler; check mode rc 0that:list as written, driven against the generated file and four mutants#Storage=persistent,Storage=auto,Storage= persistent,Storage=persistent-extraall fail; a register with nocontentfails and is named by the first assertionjournalctl --disk-usagesays what the body quotesArchived and active journals take up 51.3M in the file system.— verbatim; and on an empty journal root it still prints… take up 0B …with rc 0, sosearch('take up')does not depend on there being datajournald.conf(5)auto"behaves like persistent if the /var/log/journal directory exists, and volatile otherwise";persistentstores "below the /var/log/journal hierarchy (which is created if needed)"; the size limits default to 10% "capped to 4G"infra-cockpitat a freshorigin/main(e07323d)semaphore/service/roles/journalexists, applied first in both plays, hosts 143 and 145--syntax-checkplaybook: site.yml,playbook: verify.yml, rc 0; no duplicate task names, no register collisionsEvery file in the diff is passed:
container/suite.sh(boundary clause matches whatverify.ymlnow asserts),docs/reference/service.md(Logs row and the new section, each journald claim checked against the man page),roles/journal/tasks/main.yml(driven),roles/journal/handlers/main.yml(identical to the cockpit's),vikunja/service/site.yml(role first, as the cockpit does),vikunja/service/verify.yml(asserts driven green and red).Could not verify
docker: command not foundhere, somake test— the only leg that would drive the parity boundary's new journal clause ondebian:13-slim— did not run. CI'sexecutejob is the Guest leg; the boundary sentence remains a claim about a leg neither I nor CI drove for this change./var/log/journaltoday (docs/reference/service.md:60). That is the ticket's statement, and 142 is not reachable from this session.systemd-journaldonce. That happens on a human'smake service; the restart itself is exercised in CI on the Test Guest.Named, not charged
Converge, and the changed files carry zerodeployat either revision (repo-wide: 4 lines ate8f22ac, the same 4 at55bab34, all outside this change). The number does not reproduce — but it is in the tracker comment, not in the change, so it is not charged; it just should not be quoted as this PR's evidence.vikunjarole"; the change makes a siblingjournalrole. The same sentence says "the way the cockpit's journal role does", and the cockpit's way is exactly that (verified above), so the reading stands and no criterion depends on where the declaration lives.deployoccurrences (GLOSSARY.md:89is the_Avoid_line itself,bao/recipients/README.md:4,10,docs/agents/issue-tracker.md:123).Closing
verify.yml:115-117comment splice (advisory, prose only).The single advisory is advice: it does not move the verdict, and nothing in this review blocks the merge.