fix(drill): clean the host before setup-host, and bound it #25
No reviewers
Labels
No labels
blocked
blocker:ci-red
blocker:conflict
blocker:drill-pending
blocker:unrequested
bug
claimed
documentation
enhancement
epic
merge-next
needs-triage
ready
release
scope:cli
scope:drill
scope:host
scope:installer
scope:templates
scope:tiers
stale
state:addressing
state:bots-reviewing
state:building
state:needs-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: heavy-duty/box#25
Loading…
Reference in a new issue
No description provided.
Delete branch "drill/clean-before-setup"
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?
Run 6 stalled in
setup-host.sh— which should take seconds on a host that already has Incus. The ordering was simply wrong.Cleanup ran after setup
setup-host.shreconfiguresclaudenet's ACLs. But an aborted earlier run's boxes (archive,peer) were still attached to that network, soincus network sethad to push the ACL change onto every live NIC. That same aborted run also left the phase-D mutations in place (dns.mode=none,security.mac_filtering/ipv4_filteringon the profile), so setup was converging against a moving target.The drill's cleanup — which deletes exactly those boxes and reverts exactly those mutations — ran after setup-host. Backwards.
Now: delete the boxes and revert the mutations first, then run setup-host against a clean-ish host, where it is the no-op it's supposed to be.
And bound it, so a stall is never silent again
setup-host.shgets a 5-minute timeout, and on expiry prints the three things worth checking rather than hanging: instances still attached to the network, the firewall unit, the incus daemon.RUNS.mdgains this as trap 8: clean before you set up, not after.Note on the current host
It has been through six runs, four of them aborted, and carries their sediment. If the next run still misbehaves, the honest reset is:
then re-run the drill — it will rebuild the network, ACL, profile and firewall from scratch.
🤖 Generated with Claude Code