#411 dogfood fix: release the instance lock when the tripwire refuses to boot #416
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "kd-lockrelease"
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?
Observed live on cairn-enc's first real discard: a boot refused by the key-rotation tripwire exited via
os.Exit(1)while holding the state-backend instance lock, so the next boot — with the key restored orCAIRN_KEYDRAIN_FORCE=1set — waited out the full 5-minute stale window in CrashLoopBackOff.The tripwire and ledger-open exit paths now cancel the heartbeat and release the lock before exiting, same as the graceful-shutdown paths. A guardrail that refuses to start must leave the door unlocked behind it.