routeros: on-box judged rollback fuse (#74) #119
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac!119
Loading…
Reference in a new issue
No description provided.
Delete branch "routeros-rollback-74b"
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?
Closes #74. Refs #98.
Sim (CHR 7.25.1, scripts in an Alpine container with only bash/curl/jq/coreutils + tofu 1.12.1): PASS A good change, A2 early confirm, B bad change rolls back, C re-apply refused, D peer guard, E bench no-probe, F judge error, S no passwords in state/show -json/saved plan. .ids survive backup load. Not proven: real RB5009 timing, HTTPS path, air gap.
fmt, validate (3 roots + sim), routeros:guard, shellcheck pass. Rebased on master with #118; merges cleanly with #117.
The judge body runs in :do { } on-error={ }. On any error nothing confirmed the change, so the handler writes judge-error-<hash>.txt, removes its scheduler first (a failed load cannot leave a spent fuse that refuses every later arm), and loads the backup. Sim scenario F injects a runtime :error into the installed judge and checks marker, scheduler, restore and a later arm.