Repository navigation
feat: fail closed on nodes without host-only ports - #807
Merged
Merged
Conversation
Render galactic-tap-host-only as the tap plugin type whenever an attachment carries host-only ports. Only a Galactic that enforces the list installs that plugin, so an older node fails ADD instead of starting the guest with the exec agent port open. Key changes: - Name galactic-tap-host-only in conflists that list host-only ports - Keep galactic-tap for attachments without them - Document that a node rolled back past the plugin fails DEL until it returns
scotwells
marked this pull request as ready for review
November 3, 2026 18:01
scotwells
force-pushed
the
claude/project-thread-hpazsb
branch
from
November 3, 2026 18:10
fda0bcf to
f558fe6
Compare
ecv
approved these changes
Nov 3, 2026
ecv
left a comment
Contributor
There was a problem hiding this comment.
Approve.
NSO names galactic-tap-host-only only when the attachment is the tap plugin and hostOnlyPorts is non-empty, so a node whose Galactic lacks the binary fails ADD and the VM does not start with the port open. That is the intended fail-closed behavior, and it matches what galactic#1277 installs. #1277 merged at 17:46Z today but is in no Galactic release yet (latest v0.8.2, 2 Nov), so release order matters for the one cell already opted in.
- Condition is
plugin == PluginTap && len(hostOnlyPorts) > 0; every other conflist stays ongalactic-tap. TestConflistCarriesHostOnlyPortsnow asserts both cases: fenced getsgalactic-tap-host-only, open staysgalactic-tap.- Gated by
HypervisorHostOnlyPorts, which has no default (nil, omitempty), but one cell has already opted in:clusters/edge/us-central-1-staging-lab/kustomization.yaml:459setshypervisorHostOnlyPorts: [20000]withattachmentMode: Hypervisor, on infra main and in v0.84.208. When that lab runs an NSO with this change, its tap attachments switch togalactic-tap-host-only. Ship a Galactic release carrying #1277 to that lab first, or new VMs there fail ADD and existing ones fail DEL. Unit CI and lint are green; e2e was still running at review. - Teardown caveat is documented: a node rolled back past the plugin fails DEL for sandboxes whose conflist names it, and retries until the binary returns.
Follow-ups:
- The two on-node test-plan boxes are unchecked (new Galactic blocks the port, old Galactic fails the attachment); tick them before any cell sets
hypervisorHostOnlyPorts. - Existing NADs are rewritten:
reconcileNADruns on every reconcile andCreateOrUpdatesetsnad.Spec.Configfresh, so every running VM's NAD on the opted-in lab moves to the new name at the next resync. That is why the Galactic release has to land first.
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.
Summary
When a location blocks a guest's agent port from the rest of the network, a node running an older Galactic quietly ignores the block and starts the VM with the port open. This change has those attachments name a Galactic plugin that only nodes able to enforce the block install. On an older node the VM fails to start rather than starting exposed, and a node rolled back past that plugin retries teardown until it is installed again. Attachments without host-only ports are unchanged.
The matching Galactic change, datum-cloud/galactic#1277, has merged and installs the plugin under its new name. Part of datum-cloud/enhancements#900.
Test plan
galactic-tap-host-only