rehearsal: preflight refuses recycled droplet IPs — stale known_hosts + accept-new = a false 'no SSH' red (#390's real cause) #393
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#393
Loading…
Add table
Add a link
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?
Drive
20260810T111039Zwent red at pre-legs:no SSH on root@170.64.173.190 after 300s, and the log's hint ("is the workstation's key registered on the DO account?") points the wrong way. The key is fine — a hand SSH from the workstation to that droplet succeeds.Real cause: DigitalOcean recycled
170.64.173.190from an earlier rehearsal run, so the workstation held a stale entry (~/.ssh/known_hosts:63). The preflight banner wait (scripts/lib/rehearsal-droplet.sh:37) uses-o StrictHostKeyChecking=accept-new, which accepts unknown hosts but refuses a changed key — every attempt failed until the 300s timeout.Fix: after
clan-labreports the droplet IP, runssh-keygen -R "$ip"before the banner wait (fresh droplets have no identity worth pinning at this stage). Consider the same scrub in the teardown path. Also correct the misleading hint string.Second defect on the same path: the exit-3 branch never reaches the destroy step —
clan-lab-rehearsal-d683265ewas left running until destroyed by hand 2026-08-10. Gather-evidence/destroy should run on every red, pre-legs included.Fixed in
19c7cac(on origin/main).Recycled-IP false red (#390 cause):
oc_droplet_createnow runsssh-keygen -R "$ip"after clan-lab reports the droplet IP and before the SSH-banner wait — a fresh droplet has no identity worth pinning, so a staleknown_hostskey from a recycled address can no longer makeaccept-newrefuse a real, reachable droplet into the 300s timeout. The same scrub runs after teardown's destroy (the IP returns to DO's pool). The misleading hint ("is the workstation's key registered on the DO account?") is replaced with one that names the real shape and states the address was already scrubbed.Leaked droplet on pre-legs red: an EXIT trap is armed the moment the droplet exists, so evidence-gather + teardown now run on every red path — the banner-wait
die_host(exit 3) included, which previously skipped destroy and leftclan-lab-rehearsal-d683265erunning until a hand destroy.oc_droplet_cleanupguards against a double run; the drive's ordered post-drive call routes through it and the trap is the safety net.Tests:
.sandcastle/tests/rehearsal-droplet-test.sh(offline, shimmed ssh/ssh-keygen/clan-lab) pins scrub-before-wait ordering, teardown-on-timeout,--keep-droplethold-up, and the released-IP scrub.OC_DROPLET_SSH_TIMEOUT(default 300) is the seam that lets the timeout path drive fast.