Repository navigation
fix(node): a requester names itself to its lane's daemon - #352
Merged
Merged
Conversation
What a requester's daemon asks of a lane's daemon on a node (a restart of its services, `up`, the state) carried no X-Devstack-Client header, so the lane daemon's journal showed it as "by an unknown client". Every request over the member connection now says `auto`: devstack itself. The client a person used stays in the requester's journal. The remote lane test checks the lane journal after a warm restart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…unning service The first warm restart runs before the lane's service is up, so it restarts nothing; the check now runs a restart once the lane answers on its ports, and reads only the entries after it (the CLI's restarts above are rightly the CLI's). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-up to #351. A lane on a node showed the requester's calls in its Activity as "by an unknown client":
nodeclient::api(restart of its services,up, the state) went out throughtls::requestwithoutX-Devstack-Client, and the node's proxy passes headers through to the lane daemon as they are.Change:
tls::requestsendsx-devstack-client: autoon every request over the member connection. Both callers (nodeclient::callto the node agent,nodeclient::apito the lane daemon) are a devstack daemon acting, so the lane's journal now says "by devstack". The client a person used is in the requester's journal (POST /v1/lanes/{lane}/restart via the dashboard).No card point: it fills in ADR-0067's
viafor a case that fell through tounknown.docs/dashboard-api.md(journal row) and the changelog follow.Checked:
cargo fmt,cargo clippy --all-targets -D warnings(devstack-node, devstack),cargo test -p devstack-node. The remote lane test (remote-laneCI job) now reads the lane's journal after the warm restart and asserts every…/restartentry hasvia: "auto".🤖 Generated with Claude Code