RouterOS 009: RouterOS upgrade flow #71
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac#71
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Part of #43
Refs: lab/iac#46, lab/iac#45
Migrated from router-as-code tracker 009 (docs/routeros/tracker in this repo history). Research notes: docs/routeros/notes/.
Upgrades are the whole reason HA (#46) exists, and the provider has no
package/upgrade resource (verified, note §2). So the upgrade path is not
Terraform-managed by default and needs an explicit decision.
Options, least to most clever
handover).
/system package update download+ reboot, watched from theother unit. Dumb, proven, fits a 2-router lab.
routeros_file+routeros_system_script+routeros_scheduler(launch_trigger verified in provider source): upload npk, scheduler job
runs the upgrade script. Automatable, but a Terraform apply that reboots
the device it's talking to is a footgun; if taken, it goes behind a manual
terraform apply -targetgate, never the controller's auto-apply interval.Whatever wins
routeros_versionper workspace + expectedversion check as a
terraform_dataguard so plan goes red on drift).first; green round-trip is the precondition for touching hardware.
downtime criterion before it's routine.
Done when
unit on hardware with downtime measured and within the #46 target.