ansible: delete rehearsal-rootless.yml and the rootless migration task #619

Stängd
öppnade 2026-10-08 21:12:24 +00:00 av supernaut · 1 kommentar
Ägare

What

ansible/rehearsal-rootless.yml (639 lines) rehearsed the ADR 0031 rootless cutover, which is done. It no longer runs. The task "Install the shared bitborg network Quadlet unit" (:509-521) renders roles/podman/templates/bitborg.network.j2 without a loop, but the template uses item.name, item.subnet and item.internal. The play never installs bitborg-data.network, which forgejo.container.j2:25 needs. Its CLI podman network create bitborg (:300) ignores the pinned 10.89.1.0/24 that the trusted proxies assume.

Why

It is dead code with a broken path, and the drill's HOLD mode points operators at it.

Failing case

Run ansible-playbook ansible/rehearsal-rootless.yml against a held drill VM. The template task fails with 'item' is undefined.

Fix

Delete the playbook, roles/forgejo/tasks/migrate-rootless.yml, the include_tasks at roles/forgejo/tasks/main.yml:295-301 and forgejo_migrate_rootless (roles/forgejo/defaults/main.yml:178-180). Update the references: the HOLD hint in roles/backup-drill/templates/bitborg-backup-drill.py.j2:629 and roles/backup-drill/defaults/main.yml:86, the comment at opentofu/backup-drill.tofu:62, and docs/runbook.md (lines 701, 761, 781, 827, 5835, 5954). Keep the runbook's historical rehearsal record, marked as historical.

Done when

  • The playbook, the migrate task and the variable are gone.
  • grep -r rehearsal-rootless finds only the historical runbook section.
  • ansible-playbook --syntax-check site.yml and ansible-lint pass.
## What `ansible/rehearsal-rootless.yml` (639 lines) rehearsed the ADR 0031 rootless cutover, which is done. It no longer runs. The task "Install the shared bitborg network Quadlet unit" (`:509-521`) renders `roles/podman/templates/bitborg.network.j2` without a loop, but the template uses `item.name`, `item.subnet` and `item.internal`. The play never installs `bitborg-data.network`, which `forgejo.container.j2:25` needs. Its CLI `podman network create bitborg` (`:300`) ignores the pinned 10.89.1.0/24 that the trusted proxies assume. ## Why It is dead code with a broken path, and the drill's HOLD mode points operators at it. ## Failing case Run `ansible-playbook ansible/rehearsal-rootless.yml` against a held drill VM. The template task fails with `'item' is undefined`. ## Fix Delete the playbook, `roles/forgejo/tasks/migrate-rootless.yml`, the `include_tasks` at `roles/forgejo/tasks/main.yml:295-301` and `forgejo_migrate_rootless` (`roles/forgejo/defaults/main.yml:178-180`). Update the references: the HOLD hint in `roles/backup-drill/templates/bitborg-backup-drill.py.j2:629` and `roles/backup-drill/defaults/main.yml:86`, the comment at `opentofu/backup-drill.tofu:62`, and `docs/runbook.md` (lines 701, 761, 781, 827, 5835, 5954). Keep the runbook's historical rehearsal record, marked as historical. ## Done when - [ ] The playbook, the migrate task and the variable are gone. - [ ] `grep -r rehearsal-rootless` finds only the historical runbook section. - [ ] `ansible-playbook --syntax-check site.yml` and `ansible-lint` pass.
Upphovsperson
Ägare

Already done on main by #642 and #653: the playbook, the migrate task, the variable and its references are gone (grep on main finds nothing).

Already done on main by #642 and #653: the playbook, the migrate task, the variable and its references are gone (grep on main finds nothing).
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra#619
Ingen beskrivning angiven.