Block agent bootstrap on existing host deployments#426
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix preflight and start to check for existing deployment on host
Block agent bootstrap on existing host deployments
Jul 8, 2026
bcho
requested changes
Jul 8, 2026
Contributor
Author
bcho
requested changes
Jul 8, 2026
bcho
left a comment
Member
There was a problem hiding this comment.
@copilot test is failing
Error: existing-deployment]: existing node deployment artifact detected (bpffs mount path): bpffs mount path /run/bpffs/kube1; node reset is needed before running preflight or start again (target: /run/bpffs/kube1)
Contributor
Author
Fixed in 7f1cf3f by adding bpffs mount cleanup to daemon AgentReset, so reset removes |
bcho
approved these changes
Jul 10, 2026
bcho
approved these changes
Jul 13, 2026
jveski
approved these changes
Jul 13, 2026
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.
unbounded-agent preflightandstartdid not detect existing or partially removed host deployments. This could allow bootstrap to continue with stale nspawn or agent state instead of requiring an explicit reset.Existing deployment detection
kube1/kube2nspawn machines, machine rootfs directories, nspawn configs, service overrides, bpffs paths, applied configs, and agent daemon artifacts.Start-time guard
startperforms any host mutation.Operator guidance
preflightorstart, without hard-coding a product-specific reset command.Example failure: