Repository navigation
fix(pool): release the lease of a lane start cut off by the daemon's end - #566
Merged
Merged
Conversation
Member
Author
7schmiede
force-pushed
the
fix/lease-orphan
branch
from
November 18, 2026 12:30
c3e6187 to
218cd52
Compare
7schmiede
marked this pull request as ready for review
November 18, 2026 12:38
A lane's lease on a node was noted here (followed.json) only once its start there was over. A daemon that ended between the node's admission and that point (minutes on a first start) left a lease nobody knew: `lane stop` said the lane was not started, and every `up` met the node's "runs here already" until the lease's grace ran out, up to an hour. The daemon now notes the lease (leasing.json) as soon as the node admits it, and drops the note once the lane is followed or its failed start released the lease. The next daemon releases a lease still noted when it starts and says so with the lane; the lane's next start releases one first as well, should the node not have answered then. Closes #563 Bug-Class: orphaned-lease Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
force-pushed
the
fix/lease-orphan
branch
from
November 18, 2026 12:39
218cd52 to
213fca3
Compare
This was referenced Nov 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
A lane's lease on a node was noted on the requester (
followed.json) only once the lane's start there was over. A daemon that ended between the node's admission and that point (minutes on a first start: images, containers) left a lease nobody here knew:devstack lane stopsaid the lane was not started, and everydevstack upmet the node's409 ... runs here already (lease <id>)until the lease's grace ran out (an hour on a dedicated node, #379).leasing.jsonin the lane's state) as soon as the node admits it, and drops the note once the lane is followed or its failed start released the lease.remote_lane_start_released) and says so with the lane (its start was cut off,devstack upstarts it again).No review card: a fix within ADR-0052 point 6 (#379), no new contract or term.
Root cause and class
orphaned-lease.lease(), fixed with it. The node side (a lease whose lane container was stopped by hand, a warm lease whose daemon ended) is A node holds a lease whose lane container is gone, and a warm lease whose daemon ended, for the whole grace #565.Tests
remote_lane.rs(Linux, Docker): the daemon is killed right after the node admitted the lane's lease; the nextup --onmust start the lane. Pushed alone first: red in CI before the fix commit.Closes #563
🤖 Generated with Claude Code