The store Guest's journal is persistent by declaration (SL-35) #33
No reviewers
Labels
No labels
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-silo!33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/SL-35-the-store-guest-s-journal-is-persistent"
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 SL-35
Summary
The
silorole declares the journal persistent, right after its password gate andbefore it installs anything:
journald's default,
auto, keeps a disk journal only where/var/log/journalhappens to exist;
Storage=persistentstores under/var/log/journal, "which iscreated if needed" (
man 5 journald.conf). 150 carries the directory today, sothis changes nothing there — it is the declaration a Guest rebuilt from this role
keeps, and what lets
journalctlanswer for the boot before the one being readafter a deploy that did not come back.
The same mechanism as
infra-cockpit'ssemaphore/service/roles/journalon 143and 145, declared inside this repo's one role rather than as a second one: this
repo has one host, and
docs/architecture.mdsays "One role,silo, run againstthe
silohost".docs/architecture.mdgains the step — its service mapping is the page that goesstale when the role gains one — and runbook 0001 §2 says where the drop-in lands,
why it lands before everything else, and what reads it.
Evidence
ansible-playbook site.yml --list-taskson the branch:mise exec -- make check→CHECK_EXIT=0(env-check, env-test, key-audit-test,key-mint-test, deploy-test, fmt-check, validate).
ansible-playbook site.yml --syntax-check→SYNTAX_EXIT=0.notify: restart journaldresolves to the handler of that name; parsed from therole's own
tasks/main.ymlandhandlers/main.yml:unresolved notifies: [].What this cannot show. Nothing here can prove a rebuilt Guest carries
/var/log/journal: that ismake service-check, thenmake service(ormake prod) on 150, and both are the Operator's — they needSILO_ROOT_PASSWORD, whichmake envrefuses for an agent's class. This repo hasno rehearsal Guest by design. The mechanism is the one 143 and 145 already run.
Merge Danger
Door: two-way. A drop-in file and a directory; a revert restores the role, and
journald restarts rather than anything being replaced.
Blast Radius: one Guest. Nothing changes until the next
make serviceormake prodagainst 150, where it writes two files under/etcand restartssystemd-journald— the journal keeps its contents across that restart.Review started (round 1/5) on
b0fe4d670d— reading the diff now.Review — repo
olympus/infra-silo· PR #33 · headb0fe4d670da7c61b368e2b1111938f9fa17b5969· round 1/5 (the thread carries no earlier review; the sign-on comment's 1/5 agrees) · verdict: merge (no blockers; two advisories)Recommendation: merge
Spec source: SL-35, fetched live from Vikunja project 7 (task id 344, the one the body links). Its acceptance criteria: (1) a Guest rebuilt from this role carries
/var/log/journalafter its first deploy; (2)mise exec -- make checkexits 0. Standards source:AGENTS.md,docs/agents/workflow.md,docs/index.mdconventions;docs/adr/(0001–0010) read, none bears on a journald drop-in; the org records inolympus/workshopbind nothing this change touches.Spec
Criteria 1 and 2 are met on the path the ticket describes. The body's claims, reproduced at the head:
make checkexits 0mise exec -- make checkrc=0; CIpr-checks / check (pull_request)issuccesson this SHAsite.yml --syntax-checkexits 0--list-tasksat head lists 11; the base file holds ninenotify: restart journaldresolves to a handlerhandlers/main.yml:8carries that exact name; the drop-in text is byte-for-byte the same mechanism asinfra-cockpit'ssemaphore/service/roles/journal(read fromorigin/main)docs/agents/workflow.md)ADVISORY 1 — the journald restart is deferred to the end of the play, so the docs' ordering is not what runs, and a failed first run is never repaired by its retry.
silo/service/roles/silo/tasks/main.yml:47(notify: restart journald) queues the handler; Ansible runs it after the last task. Two consequences:docs/architecture.md:63-65lists the restart as step 2 of an ordered list ("withsystemd-journaldrestarted through the handler"), anddocs/runbooks/0001-deploy-and-teardown.md:140-143says the drop-in "lands before anything else the run does". The file does; the restart (which is what creates/var/log/journal) happens after step 8..debdownload,apt, the port wait) the queued handler is dropped, and on the retry thecopyreportsok, so it notifies nothing: journald is not restarted and/var/log/journalstays absent until the Guest reboots. Driven in scratch with the role's copy+notify shape (cache/scratch/infra-silo-33-r1/handler-pb.yml): run 1 fails after the notify →persistent.confwritten, no handler marker; run 2 succeeds withchanged=0, still no handler marker. That is the "first deploy that did not come back" this change exists to make readable. It does not turn criterion 1 red on a clean first run, and a reboot repairs it, hence advisory.copy):- ansible.builtin.meta: flush_handlers. It makes the restart happen at step 2 as the docs say and survives a later failure. Or state the end-of-play timing in the two doc sentences.infra-cockpit's role has the same shape; that is context, not a reason.Standards
ADVISORY 2 — new comments run against
AGENTS.md§Code comments ("Keep comments to a minimum … When something genuinely needs more explanation than the code can carry, propose a docs page underdocs/instead of writing it as a comment").silo/service/roles/silo/tasks/main.yml:23-26(four lines) and:35-36(two) carry the rationale that this same PR writes out indocs/architecture.md:63-68anddocs/runbooks/0001-deploy-and-teardown.md:140-146, so the explanation now lives in three places.:25-26("150 carries it today") is a point-in-time fact that goes stale the day 150 is rebuilt, which is the only moment it matters. I read the rule against the file's own practice (the basetasks/main.ymlalready carries four rationale comments of two to five lines each, at:6-8,:21-22,:42-43,:59-63), so this is not a blocker: the docs pages exist already, so the clearing change is to drop:23-26and:35-36and leave the banner and the task names.Not a finding (checked): Duplicated Code against
infra-cockpit's journal role is real (same two tasks, same handler) and the body states why a second role is not declared; the repo's documented shape ("One role,silo") overrides the smell baseline. No secret, no hostname or external IP in the diff (AGENTS.md§Privacy). Docs links and the glossary are untouched; the section-banner renumbering intasks/main.ymlis the matching churn of adding a section.Named, not charged
/var/log/journalexists aftermake serviceon a rebuilt Guest, and thatsystemd-journaldrestarts cleanly in its LXC, could not be verified from here; both are the Operator's (docs/agents/workflow.md§3), as the body says. I could not run the role against a Guest; the handler path above was driven on a stand-in play, not on the role.Summary
tasks/main.yml:47)tasks/main.yml:23-26,:35-36;AGENTS.md§Code comments)Blockers: 0. Advisories: 2 — under the three that turn the recommendation, so the recommendation is merge, and both travel as advice.
b0fe4d670d394556cc0dNew commits pushed, approval review dismissed automatically according to repository settings
Review started (round 1/5) on
394556cc0d— reading the diff now.Review — repo
olympus/infra-silo· PR #33 · head394556cc0d534c60f1f77aea7ccc52fa5676c5c6· round 2/5 in the thread's count (one earlier review sits on this PR, APPROVED atb0fe4d6; the sign-on comment's1/5is the dispatch's counter, and the branch has been rebased since) · verdict: merge (no blockers, two advisories)Recommendation: merge
Fixed point. The head moved by rebase, not by a fix:
git merge-base --is-ancestor b0fe4d6 394556cis false, and the branch is one commit ond69964a.git diff b0fe4d6 394556cis exactlyd69964a's own change (7 files — README, ADR 0010, runbooks 0001/0003, the mint test,silo/store/), including thetwenty-five → twenty-sixline that commit rewrote; no branch edit was dropped in the rebase. There is therefore no fix delta to review; the whole head was reviewed, and both findings below were re-driven at it.Spec source: SL-35, read live from Vikunja project 7 (task id 344). Acceptance criteria: (1) a Guest rebuilt from this role carries
/var/log/journalafter its first deploy; (2)mise exec -- make checkexits 0.Standards source:
AGENTS.md§Code comments and §Privacy,docs/agents/workflow.md,docs/index.md; org records inolympus/workshopdocs/adratmain(0002 protectedmain, 0009 deploy-on-merge, 0011 a deploy never destroys or replaces). None is breached.Spec
make checkexits 0CHECK_RC=0site.yml --syntax-checkexits 0SYNTAX_RC=0--list-taskslists exactly 11 on thesiloplaynotify: restart journaldresolves['restart journald', 'restart silo'], handlers['restart silo', 'restart journald'],unresolved: [][Journal]/Storage=persistent, 0644--check --diffrender of the shipped role:+[Journal] +Storage=persistentat/etc/systemd/journald.conf.d/persistent.confStorage=persistentcreates/var/log/journal"persistent"stores "below the/var/log/journalhierarchy (which is created if needed) … "auto" behaves like "persistent" if the/var/log/journaldirectory exists" (man 5 journald.conf,Storage=)pr-checks / check (pull_request)success(29s) on394556cADVISORY 1 — the restart is queued to the end of the play, so the ordering both doc pages state is not what runs, and a failed first deploy is never repaired by its retry.
silo/service/roles/silo/tasks/main.yml:47(notify: restart journald) againstsilo/service/roles/silo/handlers/main.yml:8-11: Ansible flushes handlers after the last task, so the restart that creates/var/log/journalhappens afterwait for the S3 API to answer(tasks/main.yml:114-118), not at step 2.docs/architecture.md:63-65puts the restart inside ordered step 2 ("withsystemd-journaldrestarted through the handler"), anddocs/runbooks/0001-deploy-and-teardown.md:140-143says the declaration "lands before anything else the run does". The file does. The restart does not.--check --diff(connection: local,become: false): the directory and the drop-in reportchangedwith exactly the declared content, then the run stops atdownload the pinned package(Destination /var/cache/apt/archives is not writable) — a real failure after the notify, and the handler never appears in the log. (b) A scratch role carrying the same copy+notify shape, run as a red/green pair: run 1 fails after the notify → drop-in written, handler never ran; run 2 on the same destination succeeds withchanged=0, because the file is already there, so nothing notifies and the handler still never runs. Inserting- ansible.builtin.meta: flush_handlersafter thecopymakes run 1 run the handler before the failing task (marker present), i.e. the retry path is repaired.RUNNING HANDLER … marker before the play ends: Trueat the end of the play — so criterion 1 holds on the path the ticket describes; the gap is the failure path, and a reboot repairs it.- ansible.builtin.meta: flush_handlersstraight after thecopy. Or narrow the two doc sentences to say the restart happens at the end of the play. (infra-cockpit'ssemaphore/service/roles/journalhas the same shape; that is context, not a reason.)Standards
ADVISORY 2 — six new comment lines restate the documentation this same PR writes.
AGENTS.md:37-41§Code comments: "Keep comments to a minimum: code should be expressive enough to explain itself. When something genuinely needs more explanation than the code can carry, propose a docs page underdocs/instead of writing it as a comment."silo/service/roles/silo/tasks/main.yml:23-26(four lines) and:35-36(two) carry the same rationale now written out indocs/architecture.md:63-68anddocs/runbooks/0001-deploy-and-teardown.md:140-146, so the explanation lives in three places;:25("150 carries it today") is a point-in-time fact that goes stale on the rebuild it is meant to describe. Read against the file's own practice — at based69964athe file carried 15 comment lines, four of them 2–5-line rationale blocks — so this is not a blocker. Clearing change: drop:23-26and:35-36, keep the section banner and the task names.Not a finding (checked): Duplicated Code against
infra-cockpit's journal role is real (the same two tasks, the same handler, the same file content and modes), and the repo's documented shape overrides the smell baseline:docs/architecture.md:58("One role,silo, run against thesilohost") and the ticket asks for the declaration inside it. No secret, no DDNS hostname and no external IP in the diff (AGENTS.md§Privacy). No relative link added; the section-banner renumbering is the matching churn of a new step.Named, not charged
make checknever loads the role. That is the repo's documented shape —docs/agents/workflow.md:196: "No Suite … They test those four guards and nothing else" — and the body says it was left undone on purpose. A--list-tasksassertion oversite.ymlis the credential-free pin if the repo ever wants one.ssh -o BatchMode=yes root@10.12.0.150 'ls -d /var/log/journal'answersPermission denied (publickey,password), andmake service/make service-checkneedSILO_ROOT_PASSWORD, whichmake envrefuses for an Agent's class. So: whether a rebuilt Guest carries/var/log/journal, and whethersystemd-journaldrestarts cleanly in its LXC, stay the Operator's read after a deploy.silo/store/) ared69964a's, not this branch's; they are not judged here.Summary
tasks/main.yml:47,handlers/main.yml:8-11)tasks/main.yml:23-26,:35-36;AGENTS.md:37-41)Blockers: 0. Advisories: 2 — below the three that turn the recommendation, so the recommendation is merge and both travel as advice.
394556cc0df2c58688e4