The forge role takes out Docker's leftover packages, socket and group (FO-53) #86
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-forge!86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/FO-53-docker-leftovers"
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?
Addresses FO-53 (share of FO-48's "On 141,
dockerisn't installed").Summary
forgejo/service/roles/forgejo/tasks/main.yml, §4a:One
aptcall, packages named one by one, noautoremove(on 141 it would also takeiptables,needrestartand a dozen libraries). The group goes after the existing task that takesgitout of it.docs/architecture.mdcarries the why, in place of a comment./var/lib/dockerstays, as the ticket's out-of-scope says.Evidence
Local:
make checkandmake syntax-checkgreen.Rehearsed on PRE (fresh Guest, then Docker seeded by hand, since a fresh PRE never had it):
apt-get install docker.ioandusermod -aG docker giton PRE):iirows for docker.io, docker-cli, docker-buildx, containerd, runc;/usr/bin/docker; containerd and dockeractive;docker:x:107:;/var/run/docker.sockroot:docker;gitindocker.make pre):changed=5: the group-membership task, the apt removal, the socket, the group, and therestart forgejohandler. Nothing else changed.dpkg -l | grep -E 'docker|containerd|runc'shows onlyrcrows (containerd, docker.io);command -v dockerfinds nothing;systemctl is-active containerdinactive;getent group dockerempty; socket gone; no containerd/dockerd processes;id gitshows onlygit;forgejoactive.make pre):changed=0in both the--check --diffpass and the real pass.make pre-down:Destroy complete! Resources: 1 destroyed.Not rehearsed (the Operator's, after merge):
make serviceon 141 and the 141 checks in the ticket,make verify, and the runner row on 141's database staying online from 146. PRE has no Edge, no TLS and no Actions repos.Merge Danger
Door: two-way. The merge changes no machine; the removal happens only when the Operator runs
make service. Removed packages are reinstallable, and config files stay (rc, not purged).Blast Radius: 141-only
The play restarts forgejo through the existing handler when it changes
git's groups, the same as before. containerd is stopped by its package's removal, and on 141 nothing uses it any more (the runner is on 146).Review started (round 1/5) on
126599d71b— reading the diff now.repo olympus/infra-forge · PR #86 · reviewed head
126599d71b· round 1/5 · verdict: mergeRecommendation: merge
Spec: Vikunja FO-53 (project 4), read live, acceptance criteria as the contract; the PR body names FO-53 and the ticket carries no comments. Standards:
AGENTS.md(§Code comments, §Docs, §Pull requests),docs/agents/workflow.md,docs/adr/0009(this repo),olympus/workshopADR 0011 read frommain.Spec
No findings.
aptcall;make checkandmake syntax-checkgreenforgejo/service/roles/forgejo/tasks/main.yml:263-269lists docker.io, docker-cli, docker-buildx, containerd, runc under onestate: absent, with noautoremove. I ranmake checkat the head (rc 0) andansible-playbook --syntax-check site.ymlagainst bothinventories/preandinventories/prodinforgejo/service(rc 0 both).dockergroup removedmain.yml:271-274, group task atmain.yml:276-279. The group task runs after "take the service user out of the docker group" (main.yml:250-257), so the group is empty whengroupdelruns.changed=5, run 3changed=0in check and real passes). Not reproduced: PRE needs the Proxmox credential this host does not hold. See unverified.make verifymake service./var/lib/docker, anything on 146main.yml:260-261still holds.Unrequested behaviour: none. The
docs/architecture.mdedit is the ticket's own reasoning, moved out of a code comment asAGENTS.md§Code comments asks.Standards
No findings.
AGENTS.md§Code comments: the diff adds no comment. The why for "by package name, notautoremove" sits indocs/architecture.md:105-108, which is the docs page that rule asks for.AGENTS.md§Pull requests: the body namesFO-53.docs/agents/workflow.md§2 (rehearse on PRE): the same code runs on PRE and PROD; no environment branching was added.olympus/workshopADR 0011 (a deploy never destroys or replaces) and this repo's ADR 0009 Consequences: the new removals are tasks in the role that the Operator runs withmake service. This is the arrangement ADR 0009 already records for thedocker.ioremoval, and nothing in.forgejo/workflows/(plan.yml,pr-checks.yml) applies the service layer on merge. The body's Merge Danger claim, "the removal happens only when the Operator runsmake service", holds.make check(env-check, fmt-check, docs-check: 5 assertions) is green at the head.Verified, and how
refs/pull/86/headfetched, equals126599d71baab7249af61f902551982d8e9cf85f; worktree clean.git diff --stat 9bd8dea 126599d; matches the forge diff.apt,file,group, allstate: absent) withansible-playbook --check --diffon localhost:ok=3 changed=0 failed=0.syntax-checkmake syntax-checkfirst failed on a missingcommunity.postgresqlcollection in the review worktree. This is an environment gap, not the PR (the failing linemain.yml:77is untouched). After installingforgejo/service/requirements.ymlinto the worktree, the syntax check passes for pre and prod.Could not verify
changed=5run and thechanged=0rerun against a seeded Docker). It needs PRE credentials and a Guest. I can only say the tasks are well-formed and idempotent when Docker is absent. The author's recaps are internally consistent with the diff, but they remain the author's evidence.make service.Summary
0 BLOCKER, 0 ADVISORY. The state follows the blockers: APPROVE; the label is
review/merge-ready.