From 733331a56925564169853f66621df1ef1ea022fa Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 09:31:06 -0600 Subject: [PATCH 01/11] docs: Propose boot network and customer attachment for servers Define provisioning addresses from IPAM and boot NICs from inventory as operation inputs, the site DHCP service as a site component, network operations requirements, and customer NIC attachment through NSO and IPAM, with the asks for the networking teams. Co-Authored-By: Claude Opus 5.5 --- docs/README.md | 1 + docs/architecture/README.md | 1 + docs/enhancements/server-networking/README.md | 452 ++++++++++++++++++ .../diagrams/attachment-sequence.svg | 56 +++ .../server-networking/diagrams/ownership.svg | 56 +++ .../diagrams/reservation-sequence.svg | 60 +++ 6 files changed, 626 insertions(+) create mode 100644 docs/enhancements/server-networking/README.md create mode 100644 docs/enhancements/server-networking/diagrams/attachment-sequence.svg create mode 100644 docs/enhancements/server-networking/diagrams/ownership.svg create mode 100644 docs/enhancements/server-networking/diagrams/reservation-sequence.svg diff --git a/docs/README.md b/docs/README.md index bf31f1c5..58994caf 100644 --- a/docs/README.md +++ b/docs/README.md @@ -73,6 +73,7 @@ Each topic folder has a `README.md` entry point: | [Development](development/README.md) | Implementation status, local commands, and roadmap | | [Enhancements](enhancements/machine-lifecycle/README.md) | Focused machine lifecycle contracts and acceptance requirements | | [Device operations](enhancements/device-operations/README.md) | Proposed custody and operations for every physical action on a server | +| [Server networking](enhancements/server-networking/README.md) | Proposed boot network and customer network attachment for physical servers | | [Proposals](proposals/fleet-management/README.md) | Broader service proposals, examples, diagrams, and provenance | ## Read implementation and design separately diff --git a/docs/architecture/README.md b/docs/architecture/README.md index 3533efb6..832b0cd7 100644 --- a/docs/architecture/README.md +++ b/docs/architecture/README.md @@ -37,6 +37,7 @@ Key principles to carry into the detailed design: | What are the machine resources and project boundaries? | [Machine lifecycle API design](../enhancements/machine-lifecycle/README.md#api-design) | | How are reservations and concurrent operations coordinated? | [Durable coordination](../enhancements/machine-lifecycle/README.md#durable-coordination) | | How are physical actions on one server serialized? | [Device custody and operations](../enhancements/device-operations/README.md) | +| How does a physical server boot and join customer networks? | [Server networking](../enhancements/server-networking/README.md) | | How are provider effects recovered safely? | [Provider execution and recovery](../enhancements/machine-lifecycle/README.md#provider-execution-and-recovery) | | What happens on release or project deletion? | [Release and project lifecycle](../enhancements/machine-lifecycle/README.md#release-and-project-lifecycle) | | Which internal interfaces and guarantees exist? | [Implementation status](../development/README.md) | diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md new file mode 100644 index 00000000..93563121 --- /dev/null +++ b/docs/enhancements/server-networking/README.md @@ -0,0 +1,452 @@ +--- +status: provisional +stage: alpha +--- + +# Server networking + +[Documentation overview](../../README.md) ยท [Functionality guide](../../functionality/README.md) + +- [Summary](#summary) +- [Motivation](#motivation) +- [Proposal](#proposal) +- [Design details](#design-details) + - [Ownership](#ownership) + - [Boot network](#boot-network) + - [Customer network attachment](#customer-network-attachment) + - [Write order and crash recovery](#write-order-and-crash-recovery) + - [Requests to other teams](#requests-to-other-teams) + - [Decisions for a person](#decisions-for-a-person) + - [Acceptance tests](#acceptance-tests) +- [Production readiness review questionnaire](#production-readiness-review-questionnaire) +- [Implementation history](#implementation-history) +- [Drawbacks](#drawbacks) +- [Alternatives](#alternatives) +- [Infrastructure needed](#infrastructure-needed) + +## Summary + +A bare-metal server uses two kinds of network. Firmware needs a boot network +while Fleet installs or wipes the server. The customer's operating system needs +the customer's networks for as long as the customer holds the server. + +This enhancement defines both on top of [Device custody and +operations](../device-operations/README.md): + +- **Boot network.** Each installation and wipe carries a provisioning address + from IPAM and the boot NIC from Device inventory. A site DHCP service answers + that NIC only while the operation runs, and the operation ends only after + DHCP reports the reservation withdrawn. +- **Customer network attachment.** The Fleet provider for Metal asks NSO for one + interface per requested Machine interface. NSO assigns addresses through + IPAM, and the network owner connects the server's switch port to the + customer's network. Fleet reports the result on the Machine. + +Fleet never configures a switch, a router, or a relay. This enhancement is a +proposal. Nothing in it is implemented. + +## Motivation + +Today a site's enrollment lists each server's boot NIC MAC and provisioning +address by hand, and the site's DHCP reservations come from those values. +A Machine can request network interfaces, but nothing attaches a physical NIC +to a customer network, and NSO has no attachment mode for a physical server. + +### Goals + +- Take provisioning addresses from IPAM and boot NICs from Device inventory. +- Answer DHCP for a boot NIC only while an operation that network-boots it + runs, and prove the answer stopped before the operation succeeds. +- Ship the site DHCP service as a deployable site component. +- Attach an allocated server's NICs to the customer's networks through NSO and + IPAM, with one writer for each switch port. +- Report each Machine interface's addresses and readiness on the Machine. +- State exactly what network operations and the networking teams must provide. + +### Non-goals + +- Configuring switches, routers, relays, VLANs, or bonds from Fleet. +- Allocating customer addresses in Fleet. NSO and IPAM own them. +- Routing, network policy, DNS, and public exposure. Networking owns them. +- The underlay a managed node uses. Galactic and IPAM own it. +- Changing the attachment of a running server. Interfaces are fixed for the + life of the allocation. + +## Proposal + +![Who writes each network surface](diagrams/ownership.svg) + +### User stories + +- A customer creates a Machine on two networks. When it reports + `NetworkReady`, its OS has an address on each network, and no other + customer's network reaches its ports. +- A customer installs an OS. Firmware gets a provisioning address only during + the install, and a later reboot finds no DHCP answer and boots from disk. +- A customer deletes a Machine. The server leaves the customer's networks and + is wiped on the boot network before anyone else can allocate it. +- A DHCP instance restarts or goes silent. Installation waits instead of + booting, and success waits until withdrawal is proven. +- A network engineer gets one list of what each site's switches and routers + must do. + +### Relationship to other proposals + +- **[Device custody](../device-operations/README.md):** the boot network + becomes an input of `DeviceInstallation` and `DeviceWipe`, checked at + admission and delivered with the operation. The `Network` and `Address` + release gates close on evidence from NSO instead of at once. +- **[Machine lifecycle](../machine-lifecycle/README.md#galactic-vpc-api-integration):** + this enhancement defines the physical attachment that the lifecycle leaves + open, and keeps its `NetworkReady` contract. +- **Boot network reservations ([#87][boot-pr]):** this enhancement keeps its + reservation feed and evidence gates, and replaces its enrollment values and + its static mode at synchronized sites. +- **Network handoff ([#61][handoff-pr]):** this enhancement covers its + attachment and disconnect on custody. Commissioning paths and customer boot + proxies stay there. + +## Design details + +### Ownership + +| Surface | Single writer | +| --- | --- | +| Which boot NIC holds a reservation, and when | The site, from its admitted operations | +| Provisioning addresses | IPAM, from claims the operation's requester makes | +| Kea runtime configuration | The synchronizer next to each Kea instance | +| Kea base configuration: subnets, gateways, boot options | Network operations | +| Relays, the provisioning VLAN, and each switch port's base profile | Network operations | +| A switch port's membership in customer networks | The network owner's physical realizer | +| Customer addresses and interfaces | NSO, through IPAM | +| Interface requests for a Machine | The Fleet provider for Metal | +| Machine network status | The Fleet provider for Metal | + +A switch port has two writers in the network owner's systems, each for its own +fields. Network operations sets the base profile once: speed, bond, native +provisioning VLAN, isolation, and LLDP. The physical realizer adds and removes +customer network membership. Neither changes the other's fields. + +### Boot network + +#### Provisioning address + +Network operations defines one IPAM class for provisioning addresses and one +pool per site. The pool reserves each subnet's gateway. + +The requester of an operation that network-boots the server makes one IPAM +claim for it, in the provider project, before it creates the operation: + +- the Fleet provider for Metal, for a `DeviceInstallation`; +- the release controller, for a `DeviceWipe`. + +The claim is named from the operation, so a retry finds it. IPAM assigns a host +address when the claim is created. The requester copies the claim's name, UID, +and address into the operation: + +```yaml +apiVersion: fleet.datumapis.com/v1alpha1 +kind: DeviceInstallation +metadata: + name: alloc-3b9d61c2-install-1 +spec: + # ...the envelope and other inputs are unchanged. + bootInterface: primary + bootNetwork: + addressClaim: {name: alloc-3b9d61c2-install-1-boot, uid: 1d2f7a9e-0b3c-4e5f-8a6b-7c8d9e0f1a2b} + address: 198.51.100.10 +``` + +`DeviceWipe` gains the same `bootInterface` and `bootNetwork` fields. + +Admission adds one kind check. The claim must exist with that UID, be bound, +and hold that address. Otherwise admission refuses the operation with +`BootAddressUnavailable`. The Device snapshot already records the boot NIC's +MAC from Device inventory, and the site uses only that MAC. + +A claim's address belongs to the operation until the operation can no longer +reach DHCP: + +- The requester deletes the claim after the operation succeeds, fails, or is + cancelled. +- After `OutcomeUnknown`, the requester keeps the claim until the recovery + hold is settled, because a silent DHCP instance may still serve it. + +#### Reservation lifecycle + +![A reservation exists only while its operation runs](diagrams/reservation-sequence.svg) + +A site declares whether its DHCP is synchronized. A synchronized site refuses an +operation without a boot network input, and other sites refuse one with it. +Either refusal sends nothing. + +At a synchronized site, the boot NIC holds the operation's address while all of +these hold: + +- the operation's boot window is open; +- the operation's fence is the Device's stored fence; and +- the operation has no result. + +The site serves the full reservation set as a feed. Each synchronizer applies +the feed to its Kea instance and reports the exact feed it applied. Kea places +each reservation in the base subnet that contains its address, and the base +configuration supplies the gateway and boot options. A reservation whose address +no base subnet contains fails the cycle and is never dropped. + +The site worker gates effects on those reports: + +1. Before it powers on the server for a network boot, it waits for a report, + accepted after the operation's boot window opened, that serves the boot NIC + at the operation's address. +2. Before it reports success, it waits until no DHCP instance's latest report + serves the boot NIC, and at least one instance served it during the + operation. An instance that went silent while serving keeps the outcome + unknown. + +#### Site DHCP service + +The site DHCP service is a site component with these parts: + +- **Kea and synchronizer.** A StatefulSet with at least two replicas. Each pod + runs one Kea DHCPv4 server and one synchronizer that share Kea's control + socket. The pod name is the instance name reported to the site. Pods use host + networking on nodes that network operations labels as DHCP hosts, and Kea + listens on that node's address on the services network. +- **Base configuration.** A ConfigMap that network operations owns. It lists + the provisioning subnets with their gateways and boot options, accepts only + relayed requests from known relay addresses, and has no address pools. +- **Feed.** The site's boot service serves the feed over TLS on a port apart + from the firmware-facing boot listener. Each synchronizer authenticates with + the site's bearer token. The token and the TLS key are Secrets delivered to + the site, never in Git. + +Scaling down drains the instance first: an instance removed while it serves a +reservation keeps that operation's outcome unknown. + +#### Network operations requirements + +Each site needs: + +1. **Provisioning VLAN.** One per site or per rack, untagged on each server's + boot NIC port, so firmware boots without VLAN settings. +2. **Port isolation.** Isolated or protected ports on the provisioning VLAN, + so a server reaches only the gateway and never another server's boot NIC. +3. **Edge ports.** Spanning tree edge mode on server ports, so a port forwards + before firmware's DHCP times out. +4. **Bond fallback.** Where the boot NIC is a member of an LACP bond, LACP + fallback to an individual port, so a member with no LACP partner forwards on + its native VLAN. The fallback must begin before the firmware's DHCP timeout, + about 60 seconds. Vendors call this "LACP fallback", "no suspend-individual", + or "force-up". +5. **DHCP relay.** On the gateway of each provisioning subnet, relay to every + Kea instance address, with the gateway address as the relay address. +6. **Reachability.** Provisioning subnets reach only the site's DHCP service and + boot service. They reach no customer network, no BMC network, and no + internet. +7. **LLDP.** Switches send LLDP on server ports, so BMC discovery can confirm + which switch port each NIC is cabled to. +8. **Names.** Fleet inventory's cable records use the switch and port names the + network owner uses. +9. **UEFI HTTP Boot.** The base configuration answers the HTTP Boot vendor class + with the boot service's URL, for firmware that boots over HTTP. + +### Customer network attachment + +![A Machine interface from request to programmed switch port](diagrams/attachment-sequence.svg) + +#### Request + +Each entry in `Machine.spec.networkInterfaces` names a MachineProfile interface +slot and a Network. Each slot maps to one interface in Device inventory, and +inventory's cable record names the switch port at its other end. + +Before allocation, the Fleet provider for Metal checks: + +- each slot exists in the profile; +- each Network exists in the Machine's project, is ready, and carries the + requested address families; +- the Machine's creator may use each Network and address class; and +- the location supports physical attachment. + +A failed check leaves the Machine `Pending` and reserves no capacity. + +#### Attachment + +After allocation, the Fleet provider for Metal creates one NSO interface claim +per Machine interface, named from the allocation and the interface. Each claim +uses the proposed `Physical` attachment mode and names its attachment point: + +- the host interface's MAC address, from Device inventory; and +- the switch and port it is cabled to, from inventory's cable records. + +Then: + +1. NSO assigns addresses through IPAM and writes the interface: addresses, + gateway, and MTU. +2. The network owner's physical realizer adds the switch port to the Network's + segment at that location and reports the interface `Programmed`. +3. Fleet copies the interface's addresses, gateway, MTU, and the host + interface's MAC address into `Machine.status.network`. + +`NetworkReady` keeps the [machine lifecycle +contract](../machine-lifecycle/README.md#network-interfaces): every interface +must be `Allocated`, `Prepared`, and `Programmed` at the Machine's generation. + +#### Host configuration + +A physical server has no node agent to configure its NICs. An installation +therefore carries the host network configuration: for each Machine interface, +its MAC address, addresses, gateway, and MTU. It is pinned by digest like the +other installation inputs, and a later change to an interface does not change an +admitted installation. An installation waits for every interface to be +`Allocated`, not `Programmed`. A Machine handed off without an installation +reports the same values in status, and the customer configures the OS. + +#### Release + +When a Machine is deleted, the Fleet provider for Metal deletes its interface +claims. NSO keeps each claim until the realizer removes the port from the +customer's segment, and then returns the addresses to IPAM. The release +controller closes the `Network` and `Address` gates when every claim of the +allocation is gone. Release then wipes the server on the boot network as +before. + +A claim that never goes away keeps the gates open, and the server stays out of +use. + +### Write order and crash recovery + +| Change | Order | After a crash between the writes | +| --- | --- | --- | +| Boot address for an operation | IPAM claim, then operation, both named from the operation | The requester finds the claim by name and creates the operation. A claim whose operation will never be created is deleted. | +| Release a boot address | Operation ends, then the requester deletes the claim | The requester deletes the claim again. | +| Interface claims | Allocation, then each claim, named from the allocation and interface | The provider finds each claim by name and requires its spec to match. A claim with another spec is a conflict, and the Machine stays `Pending`. | +| Release an interface | Delete the claim, then observe it gone | The release controller observes again. A gate closes only on absence. | + +### Requests to other teams + +Fleet opens nothing in other repositories. These are the asks, in priority +order. + +#### NSO + +1. **Physical attachment mode.** Add `Physical` to the interface attachment + modes. A physical interface has no node, container, or hypervisor. +2. **Attachment point.** Add an attachment point to the interface claim and + copy it to the interface: a host MAC address, and a switch and port name. + Validate the MAC's format and require both names for `Physical`. +3. **Claim placement.** Define where a provider that is not compute creates + claims for a consumer project, since compute creates them in a location + cell's namespace. Fleet runs in the provider project and reaches the + consumer project through Milo. +4. **Detach before delete.** Keep a `Physical` claim until the realizer reports + the port removed from the segment, then release its addresses. + +#### Networking and network operations + +1. **Physical realizer.** A component that reads `Physical` interfaces, adds + and removes the named port's membership in the Network's segment, and + writes `Programmed` and the attachment reference. It is the only writer of + that membership. +2. **Base port profiles and site requirements.** The list under [Network + operations requirements](#network-operations-requirements). + +#### IPAM + +1. **Provisioning class.** One IPAM class for provisioning addresses, private, + with one host address per claim and the gateway reserved. No IPAM code + change is needed. + +### Decisions for a person + +- **Who operates the site DHCP service.** This enhancement ships Kea as a Fleet + site component, and network operations owns its base configuration. Someone + must be on call for it. +- **Dedicated boot NIC.** Isolation on the provisioning VLAN is enough when the + boot NIC also carries customer networks as tagged VLANs. A dedicated boot NIC + costs a port per server and avoids bond fallback. +- **The `Physical` attachment contract.** NSO and Networking must accept or + change the asks above. Until they do, Fleet refuses Machines that request + interfaces. + +### Acceptance tests + +These tests are required and not implemented: + +- An installation or wipe at a synchronized site without a bound boot address + is refused, and nothing is sent. +- A boot address whose claim was deleted or rebound is refused at admission. +- Firmware gets a DHCP answer only while its operation runs, and a later boot + gets none. +- A silent DHCP instance keeps the operation unknown, and its boot address + stays claimed until the hold is settled. +- A requester crash between the claim and the operation creates one claim and + one operation. +- A Machine on a Network its creator cannot use stays `Pending` without + capacity. +- A Machine reports `NetworkReady` only after every interface is programmed, and + its status shows each interface's addresses and MAC address. +- Release closes the `Network` and `Address` gates only after every interface + claim is gone. +- End to end at a site with real switches: a relayed boot on an LACP member, + attachment to two customer networks, isolation from a second customer, and + release with the port removed from both networks. + +## Production readiness review questionnaire + +### How do operators enable or disable the feature? + +A site enables the boot network by declaring synchronized DHCP and deploying the +site DHCP service. A location enables customer attachment when NSO and the +realizer support `Physical` there. Disabling attachment refuses new Machines +with interfaces and leaves existing ones attached. + +### What must operators monitor? + +Operations waiting for a DHCP report, DHCP instances that served and went +silent, rejected reports, boot address claims older than their operation, +interfaces not `Programmed`, and releases waiting on interface claims. + +### What does the feature depend on? + +IPAM for addresses. NSO and the physical realizer for attachment. Network +operations for relays, VLANs, and port profiles. + +### Does the feature add API types or calls? + +It adds no kinds. It adds the boot network input to two operation kinds, one +IPAM claim per network-booting operation, and one NSO claim per Machine +interface. + +## Implementation history + +- 2026-11-25: Proposed. + +## Drawbacks + +- Every network boot depends on the site DHCP service and its reports. +- A silent DHCP instance holds an operation unknown until an operator acts. +- Customer attachment waits on two other teams. +- Installations carry static network configuration, so a customer who changes + addresses later must also change the OS. + +## Alternatives + +- **One provisioning address per server.** Simpler and stable, but it holds an + address for every idle server and cannot tell whether a silent DHCP instance + still serves it. +- **Fleet configures switch ports.** It would make Fleet a second writer of the + network owner's switches and hold their credentials. +- **DHCP on customer networks.** NSO has no DHCP, and a server would get a + customer address before Fleet hands it off. +- **Central DHCP outside the site.** Possible behind the same feed, but each + boot would depend on a link out of the site. + +## Infrastructure needed + +The lab can run Kea, the synchronizer, and the feed against emulated DHCP +clients, and NSO's API with a test realizer. Real switches are needed for +relays, LACP fallback, port isolation, and the realizer. + +[boot-pr]: https://github.com/datum-cloud/fleet/pull/87 +[handoff-pr]: https://github.com/datum-cloud/fleet/pull/61 diff --git a/docs/enhancements/server-networking/diagrams/attachment-sequence.svg b/docs/enhancements/server-networking/diagrams/attachment-sequence.svg new file mode 100644 index 00000000..89c8b58b --- /dev/null +++ b/docs/enhancements/server-networking/diagrams/attachment-sequence.svg @@ -0,0 +1,56 @@ + +A Machine interface from request to programmed switch portThe Fleet provider for Metal checks the Network and the caller, allocates a server, and creates an interface claim with the Physical attachment mode and the attachment point: the host MAC address and the switch port from inventory. NSO assigns addresses through IPAM and writes the interface. The physical realizer adds the switch port to the Network segment and reports the interface Programmed. Fleet copies the addresses into Machine status and reports NetworkReady. On release, Fleet deletes the claim, the realizer removes the port, NSO returns the addresses, and the claim goes away, which closes the Network and Address gates. + + + + + +Fleet provider +for Metal + + +NSO + + +IPAM + + +Realizer +Network owner + + +Switch port + +Check Network, +caller; allocate + +Claim: Physical, +MAC, switch port + +Claim addresses + +Addresses + +Interface: addresses, +gateway, MTU +Interface + +Add port to +segment + +Programmed + +Status: copy to +Machine; NetworkReady + +Machine deleted +Delete claim + +Remove port + +Release addresses + +Claim gone: close +Network, Address + + diff --git a/docs/enhancements/server-networking/diagrams/ownership.svg b/docs/enhancements/server-networking/diagrams/ownership.svg new file mode 100644 index 00000000..66badcf2 --- /dev/null +++ b/docs/enhancements/server-networking/diagrams/ownership.svg @@ -0,0 +1,56 @@ + +Who writes each network surfaceFleet writes the boot address claim and operation inputs, interface claims, and Machine network status. The site serves the reservation feed. IPAM assigns provisioning and customer addresses. NSO writes interfaces. The synchronizer is the only writer of Kea runtime configuration. Network operations owns Kea base configuration, relays, the provisioning VLAN, and each switch port base profile. The physical realizer is the only writer of a switch port customer network membership. + + + + + +Fleet + +Boot address claim +Per operation + +Operation inputs +Address, boot NIC + +Interface claims +Per Machine interface + +Machine status +Addresses, readiness + +Networking teams + +IPAM +Provisioning, customer + +NSO +Interfaces + +Physical realizer +Customer membership + +Network operations +Relays, VLANs, ports + +Site + +Reservation feed +From admitted work + +Synchronizer +Kea runtime config + +Kea +Answers boot NICs + +Switch port +Two field owners + + + + + + + + diff --git a/docs/enhancements/server-networking/diagrams/reservation-sequence.svg b/docs/enhancements/server-networking/diagrams/reservation-sequence.svg new file mode 100644 index 00000000..8cf86825 --- /dev/null +++ b/docs/enhancements/server-networking/diagrams/reservation-sequence.svg @@ -0,0 +1,60 @@ + +A reservation exists only while its operation runsThe requester claims a provisioning address from IPAM and creates the operation with the address. The coordinator checks the claim at admission and delivers the operation with the boot NIC MAC from Device inventory. The site adds the reservation to its feed. The synchronizer applies it to Kea and reports it applied. Only then does the site power on the server, whose firmware gets the address through the relay. When the boot closes, the reservation leaves the feed, the synchronizer reports it withdrawn, and the operation succeeds. The requester then deletes the address claim. + + + + + +Requester +Provider, release + + +IPAM + + +Coordinator + + +Site +Feed, worker + + +Synchronizer +Kea + + +Server +Firmware + +Claim address + +Host address + +Operation with +address + +Admit; deliver with +boot NIC MAC + +Fetch feed + +NIC โ†’ address + +Report applied +after Kea accepts + +Arm network boot, +power on + +DHCP through +the relay + +Boot closes; the +feed drops the NIC +Report withdrawn + +Succeeded + +Delete claim + + From 3e7131d1730ba8f1b976deaf84008c656e54edf5 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 09:37:16 -0600 Subject: [PATCH 02/11] docs: Prove withdrawal before releasing boot addresses Release a boot address only after success, a failure that published nothing, settlement by a later successful boot, or retirement. Keep interface claims where only Fleet writes, limit Physical claims to Fleet, have the realizer check the port, and tighten the network operations requirements. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/server-networking/README.md | 180 ++++++++++-------- 1 file changed, 105 insertions(+), 75 deletions(-) diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md index 93563121..83bcf757 100644 --- a/docs/enhancements/server-networking/README.md +++ b/docs/enhancements/server-networking/README.md @@ -42,15 +42,17 @@ operations](../device-operations/README.md): IPAM, and the network owner connects the server's switch port to the customer's network. Fleet reports the result on the Machine. -Fleet never configures a switch, a router, or a relay. This enhancement is a -proposal. Nothing in it is implemented. +Fleet never configures a switch, a router, or a relay. The reservation feed, +its evidence gates, and the Kea synchronizer exist today and take their values +from site enrollment. Everything else here is proposed. ## Motivation Today a site's enrollment lists each server's boot NIC MAC and provisioning address by hand, and the site's DHCP reservations come from those values. -A Machine can request network interfaces, but nothing attaches a physical NIC -to a customer network, and NSO has no attachment mode for a physical server. +A Machine can request network interfaces, but Fleet cannot attach a physical +NIC to a customer network, because NSO has no attachment mode for a physical +server. ### Goals @@ -65,7 +67,6 @@ to a customer network, and NSO has no attachment mode for a physical server. ### Non-goals -- Configuring switches, routers, relays, VLANs, or bonds from Fleet. - Allocating customer addresses in Fleet. NSO and IPAM own them. - Routing, network policy, DNS, and public exposure. Networking owns them. - The underlay a managed node uses. Galactic and IPAM own it. @@ -102,9 +103,8 @@ to a customer network, and NSO has no attachment mode for a physical server. - **Boot network reservations ([#87][boot-pr]):** this enhancement keeps its reservation feed and evidence gates, and replaces its enrollment values and its static mode at synchronized sites. -- **Network handoff ([#61][handoff-pr]):** this enhancement covers its - attachment and disconnect on custody. Commissioning paths and customer boot - proxies stay there. +- **Network handoff ([#61][handoff-pr]):** both propose physical attachment + and disconnect. See [Decisions for a person](#decisions-for-a-person). ## Design details @@ -131,8 +131,9 @@ customer network membership. Neither changes the other's fields. #### Provisioning address -Network operations defines one IPAM class for provisioning addresses and one -pool per site. The pool reserves each subnet's gateway. +Each site has one provisioning subnet. Network operations defines one IPAM +class for provisioning addresses, with one pool per site that covers that +subnet, reserves its gateway, and keeps each address unique within the pool. The requester of an operation that network-boots the server makes one IPAM claim for it, in the provider project, before it creates the operation: @@ -140,7 +141,8 @@ claim for it, in the provider project, before it creates the operation: - the Fleet provider for Metal, for a `DeviceInstallation`; - the release controller, for a `DeviceWipe`. -The claim is named from the operation, so a retry finds it. IPAM assigns a host +The claim is named from the operation and scoped to the site's location, so a +requester that crashes and runs again finds the same claim. IPAM assigns a host address when the claim is created. The requester copies the claim's name, UID, and address into the operation: @@ -164,13 +166,24 @@ and hold that address. Otherwise admission refuses the operation with `BootAddressUnavailable`. The Device snapshot already records the boot NIC's MAC from Device inventory, and the site uses only that MAC. -A claim's address belongs to the operation until the operation can no longer -reach DHCP: - -- The requester deletes the claim after the operation succeeds, fails, or is - cancelled. -- After `OutcomeUnknown`, the requester keeps the claim until the recovery - hold is settled, because a silent DHCP instance may still serve it. +A claim's address belongs to the operation until no DHCP instance can still +serve it. The requester deletes the claim when one of these holds: + +- The operation succeeded. Success already proves withdrawal. +- The operation failed or was cancelled. Both mean the site published no + reservation, because the site counts publishing a reservation as an effect, + and an operation with an effect never ends `Failed`. +- The operation ended `OutcomeUnknown`, and its recovery hold was settled. + Every settling operation for an installation or a wipe is a later network + boot of the same NIC that succeeded, which proves that no DHCP instance still + serves that NIC. +- The Device was retired. + +A [custody `Retry`](../device-operations/README.md#unknown-outcomes) creates a +new operation with a new name, so it claims a new address while the held claim +stays. A claim whose operation will never be created, because the Installation +or the release that would create it is gone, is deleted by its requester when +the allocation is released. #### Reservation lifecycle @@ -180,6 +193,9 @@ A site declares whether its DHCP is synchronized. A synchronized site refuses an operation without a boot network input, and other sites refuse one with it. Either refusal sends nothing. +The feed changes shape. A reservation carries the boot NIC's MAC and a host +address only. The gateway and prefix come from the base configuration. + At a synchronized site, the boot NIC holds the operation's address while all of these hold: @@ -189,39 +205,37 @@ these hold: The site serves the full reservation set as a feed. Each synchronizer applies the feed to its Kea instance and reports the exact feed it applied. Kea places -each reservation in the base subnet that contains its address, and the base -configuration supplies the gateway and boot options. A reservation whose address -no base subnet contains fails the cycle and is never dropped. +each reservation in the base subnet that contains its address. A reservation +whose address no base subnet contains fails the cycle and is never dropped, so +a provisioning class that does not match the base configuration stops every +boot at the site until it is fixed. The site worker gates effects on those reports: 1. Before it powers on the server for a network boot, it waits for a report, accepted after the operation's boot window opened, that serves the boot NIC at the operation's address. -2. Before it reports success, it waits until no DHCP instance's latest report - serves the boot NIC, and at least one instance served it during the - operation. An instance that went silent while serving keeps the outcome - unknown. +2. Before it reports success, it waits until at least one instance served the + reservation during the operation, and no instance's latest report serves + the boot NIC or the operation's address. An instance that went silent while + serving them keeps the outcome unknown until an operator removes it from + the site. #### Site DHCP service The site DHCP service is a site component with these parts: -- **Kea and synchronizer.** A StatefulSet with at least two replicas. Each pod - runs one Kea DHCPv4 server and one synchronizer that share Kea's control - socket. The pod name is the instance name reported to the site. Pods use host - networking on nodes that network operations labels as DHCP hosts, and Kea - listens on that node's address on the services network. -- **Base configuration.** A ConfigMap that network operations owns. It lists - the provisioning subnets with their gateways and boot options, accepts only - relayed requests from known relay addresses, and has no address pools. -- **Feed.** The site's boot service serves the feed over TLS on a port apart - from the firmware-facing boot listener. Each synchronizer authenticates with - the site's bearer token. The token and the TLS key are Secrets delivered to - the site, never in Git. - -Scaling down drains the instance first: an instance removed while it serves a -reservation keeps that operation's outcome unknown. +- **Instances.** At least two Kea DHCPv4 servers, each paired with one + synchronizer. Each instance has a stable name and a fixed address that + relays can reach. +- **Base configuration.** Network operations owns it. It names the site's + provisioning subnet, gateway, and boot options, accepts only relayed + requests from known relay addresses, and has no address pools. +- **Feed.** The site serves the feed over TLS, apart from the firmware-facing + boot listener. Each synchronizer authenticates with the site's token. The + token and the TLS key are delivered to the site as secrets, never in Git. + +Scaling down drains the instance first, until it reports an empty feed. #### Network operations requirements @@ -229,25 +243,29 @@ Each site needs: 1. **Provisioning VLAN.** One per site or per rack, untagged on each server's boot NIC port, so firmware boots without VLAN settings. -2. **Port isolation.** Isolated or protected ports on the provisioning VLAN, - so a server reaches only the gateway and never another server's boot NIC. +2. **Isolation on the provisioning VLAN only.** A private VLAN or equivalent, + so a server reaches only the gateway on the provisioning VLAN. Isolation + must not apply to customer VLANs on the same port. 3. **Edge ports.** Spanning tree edge mode on server ports, so a port forwards before firmware's DHCP times out. 4. **Bond fallback.** Where the boot NIC is a member of an LACP bond, LACP fallback to an individual port, so a member with no LACP partner forwards on - its native VLAN. The fallback must begin before the firmware's DHCP timeout, - about 60 seconds. Vendors call this "LACP fallback", "no suspend-individual", - or "force-up". + its native VLAN. Configure the fallback timeout below the DHCP timeout of + every firmware qualified at the site, measured during qualification. + Vendors call this "LACP fallback", "no suspend-individual", or "force-up". 5. **DHCP relay.** On the gateway of each provisioning subnet, relay to every Kea instance address, with the gateway address as the relay address. 6. **Reachability.** Provisioning subnets reach only the site's DHCP service and boot service. They reach no customer network, no BMC network, and no internet. -7. **LLDP.** Switches send LLDP on server ports, so BMC discovery can confirm +7. **Spoofing protection.** DHCP snooping and source address binding on the + provisioning VLAN, so a server cannot use another server's boot NIC MAC or + provisioning address. +8. **LLDP.** Switches send LLDP on server ports, so BMC discovery can confirm which switch port each NIC is cabled to. -8. **Names.** Fleet inventory's cable records use the switch and port names the +9. **Names.** Fleet inventory's cable records use the switch and port names the network owner uses. -9. **UEFI HTTP Boot.** The base configuration answers the HTTP Boot vendor class +10. **UEFI HTTP Boot.** The base configuration answers the HTTP Boot vendor class with the boot service's URL, for firmware that boots over HTTP. ### Customer network attachment @@ -269,12 +287,17 @@ Before allocation, the Fleet provider for Metal checks: - the location supports physical attachment. A failed check leaves the Machine `Pending` and reserves no capacity. +Interfaces are checked again after allocation. If one no longer fits, the +Machine keeps its server and reports `NetworkReady=False`, and deleting the +Machine releases the server. #### Attachment After allocation, the Fleet provider for Metal creates one NSO interface claim -per Machine interface, named from the allocation and the interface. Each claim -uses the proposed `Physical` attachment mode and names its attachment point: +per Machine interface, named from the allocation and the interface. Claims live +where only the Fleet provider can write them, so a customer cannot create or +replace one. Each claim uses the proposed `Physical` attachment mode and names +its attachment point: - the host interface's MAC address, from Device inventory; and - the switch and port it is cabled to, from inventory's cable records. @@ -283,8 +306,10 @@ Then: 1. NSO assigns addresses through IPAM and writes the interface: addresses, gateway, and MTU. -2. The network owner's physical realizer adds the switch port to the Network's - segment at that location and reports the interface `Programmed`. +2. The network owner's physical realizer checks that the attachment point + belongs to the allocation, reports the interface `Prepared`, adds the + switch port to the Network's segment at that location, and reports it + `Programmed`. 3. Fleet copies the interface's addresses, gateway, MTU, and the host interface's MAC address into `Machine.status.network`. @@ -306,13 +331,11 @@ reports the same values in status, and the customer configures the OS. When a Machine is deleted, the Fleet provider for Metal deletes its interface claims. NSO keeps each claim until the realizer removes the port from the -customer's segment, and then returns the addresses to IPAM. The release -controller closes the `Network` and `Address` gates when every claim of the -allocation is gone. Release then wipes the server on the boot network as -before. - -A claim that never goes away keeps the gates open, and the server stays out of -use. +customer's segment. Then it returns the addresses to IPAM, or keeps them for +an interface that asked to retain them. The release controller closes the +`Network` and `Address` gates when every claim of the allocation is gone, and +a claim that never goes away keeps the server out of use. Release then wipes +the server on the boot network as before. ### Write order and crash recovery @@ -320,7 +343,7 @@ use. | --- | --- | --- | | Boot address for an operation | IPAM claim, then operation, both named from the operation | The requester finds the claim by name and creates the operation. A claim whose operation will never be created is deleted. | | Release a boot address | Operation ends, then the requester deletes the claim | The requester deletes the claim again. | -| Interface claims | Allocation, then each claim, named from the allocation and interface | The provider finds each claim by name and requires its spec to match. A claim with another spec is a conflict, and the Machine stays `Pending`. | +| Interface claims | Allocation, then each claim, named from the allocation and interface, then the claim's UID on the allocation | The provider finds each claim by name in a namespace only it can write, requires its spec to match, and records its UID. A claim with another spec or another UID is a conflict, and the Machine reports `NetworkReady=False`. | | Release an interface | Delete the claim, then observe it gone | The release controller observes again. A gate closes only on absence. | ### Requests to other teams @@ -336,26 +359,30 @@ order. copy it to the interface: a host MAC address, and a switch and port name. Validate the MAC's format and require both names for `Physical`. 3. **Claim placement.** Define where a provider that is not compute creates - claims for a consumer project, since compute creates them in a location - cell's namespace. Fleet runs in the provider project and reaches the - consumer project through Milo. -4. **Detach before delete.** Keep a `Physical` claim until the realizer reports - the port removed from the segment, then release its addresses. + claims for a consumer project, in a namespace the consumer cannot write. + Compute creates them in a location cell's namespace. Fleet runs in the + provider project and reaches the consumer project through Milo. +4. **Who may attach a port.** Allow only the Fleet provider's identity to + create `Physical` claims. +5. **Detach before delete.** Keep a `Physical` claim until the realizer reports + the port removed from the segment, then release or retain its addresses. #### Networking and network operations -1. **Physical realizer.** A component that reads `Physical` interfaces, adds - and removes the named port's membership in the Network's segment, and - writes `Programmed` and the attachment reference. It is the only writer of - that membership. +1. **Physical realizer.** A component that reads `Physical` interfaces, checks + each attachment point against the allocation Fleet records for that + server, adds and removes the named port's membership in the Network's + segment, and writes `Prepared`, `Programmed`, and the attachment reference. + It is the only writer of that membership. 2. **Base port profiles and site requirements.** The list under [Network operations requirements](#network-operations-requirements). #### IPAM -1. **Provisioning class.** One IPAM class for provisioning addresses, private, - with one host address per claim and the gateway reserved. No IPAM code - change is needed. +1. **Provisioning class.** One IPAM class for provisioning addresses: private, + one pool per site scoped to the site's location, one host address per + claim, the gateway reserved, and addresses unique within the pool. No IPAM + code change is needed. ### Decisions for a person @@ -368,6 +395,8 @@ order. - **The `Physical` attachment contract.** NSO and Networking must accept or change the asks above. Until they do, Fleet refuses Machines that request interfaces. +- **Overlap with network handoff ([#61][handoff-pr]).** Both propose physical + attachment and disconnect. Decide which one owns them. ### Acceptance tests @@ -380,6 +409,8 @@ These tests are required and not implemented: gets none. - A silent DHCP instance keeps the operation unknown, and its boot address stays claimed until the hold is settled. +- An operation that fails after its site published a reservation ends + unknown, not failed. - A requester crash between the claim and the operation creates one claim and one operation. - A Machine on a Network its creator cannot use stays `Pending` without @@ -425,7 +456,6 @@ interface. ## Drawbacks - Every network boot depends on the site DHCP service and its reports. -- A silent DHCP instance holds an operation unknown until an operator acts. - Customer attachment waits on two other teams. - Installations carry static network configuration, so a customer who changes addresses later must also change the OS. @@ -435,8 +465,8 @@ interface. - **One provisioning address per server.** Simpler and stable, but it holds an address for every idle server and cannot tell whether a silent DHCP instance still serves it. -- **Fleet configures switch ports.** It would make Fleet a second writer of the - network owner's switches and hold their credentials. +- **Fleet configures switch ports.** Fleet would hold the switches' + credentials and write the network owner's systems. - **DHCP on customer networks.** NSO has no DHCP, and a server would get a customer address before Fleet hands it off. - **Central DHCP outside the site.** Possible behind the same feed, but each From aa149ddc53625c88b795c121225350af8cecc180 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 09:40:15 -0600 Subject: [PATCH 03/11] docs: Cover every past reservation in withdrawal Mark the sent-step rule and the stronger withdrawal gate as proposed changes, extend the gate to every reservation published for the Device, name the writer of interface claim UIDs, and show the realizer's port check in the diagram. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/server-networking/README.md | 32 ++++++----- .../diagrams/attachment-sequence.svg | 57 ++++++++++--------- 2 files changed, 48 insertions(+), 41 deletions(-) diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md index 83bcf757..3ecabb06 100644 --- a/docs/enhancements/server-networking/README.md +++ b/docs/enhancements/server-networking/README.md @@ -42,9 +42,10 @@ operations](../device-operations/README.md): IPAM, and the network owner connects the server's switch port to the customer's network. Fleet reports the result on the Machine. -Fleet never configures a switch, a router, or a relay. The reservation feed, -its evidence gates, and the Kea synchronizer exist today and take their values -from site enrollment. Everything else here is proposed. +Fleet never configures a switch, a router, or a relay. A reservation feed, two +evidence gates, and a Kea synchronizer exist today and take their values from +site enrollment. This enhancement changes all three, and everything in it is +proposed. ## Motivation @@ -119,7 +120,7 @@ server. | Relays, the provisioning VLAN, and each switch port's base profile | Network operations | | A switch port's membership in customer networks | The network owner's physical realizer | | Customer addresses and interfaces | NSO, through IPAM | -| Interface requests for a Machine | The Fleet provider for Metal | +| Interface requests for a Machine, and their UIDs on the allocation | The Fleet provider for Metal | | Machine network status | The Fleet provider for Metal | A switch port has two writers in the network owner's systems, each for its own @@ -171,19 +172,20 @@ serve it. The requester deletes the claim when one of these holds: - The operation succeeded. Success already proves withdrawal. - The operation failed or was cancelled. Both mean the site published no - reservation, because the site counts publishing a reservation as an effect, - and an operation with an effect never ends `Failed`. + reservation, because the site records publishing a reservation as a sent + step before the reservation enters the feed, and an operation with a sent + step never ends `Failed`. - The operation ended `OutcomeUnknown`, and its recovery hold was settled. Every settling operation for an installation or a wipe is a later network - boot of the same NIC that succeeded, which proves that no DHCP instance still - serves that NIC. + boot that succeeded at the same site, and its success gate covers every + reservation the site ever published for the Device. - The Device was retired. A [custody `Retry`](../device-operations/README.md#unknown-outcomes) creates a new operation with a new name, so it claims a new address while the held claim stays. A claim whose operation will never be created, because the Installation or the release that would create it is gone, is deleted by its requester when -the allocation is released. +the allocation is released, and so is any claim still left then. #### Reservation lifecycle @@ -216,10 +218,10 @@ The site worker gates effects on those reports: accepted after the operation's boot window opened, that serves the boot NIC at the operation's address. 2. Before it reports success, it waits until at least one instance served the - reservation during the operation, and no instance's latest report serves - the boot NIC or the operation's address. An instance that went silent while - serving them keeps the outcome unknown until an operator removes it from - the site. + reservation during the operation, and no instance's latest report, however + old, serves any MAC or address the site ever published for the Device. An + instance that went silent while serving one keeps the outcome unknown until + an operator retires the instance at the site. #### Site DHCP service @@ -265,8 +267,8 @@ Each site needs: which switch port each NIC is cabled to. 9. **Names.** Fleet inventory's cable records use the switch and port names the network owner uses. -10. **UEFI HTTP Boot.** The base configuration answers the HTTP Boot vendor class - with the boot service's URL, for firmware that boots over HTTP. +10. **UEFI HTTP Boot.** The base configuration answers the HTTP Boot vendor + class with the boot service's URL, for firmware that boots over HTTP. ### Customer network attachment diff --git a/docs/enhancements/server-networking/diagrams/attachment-sequence.svg b/docs/enhancements/server-networking/diagrams/attachment-sequence.svg index 89c8b58b..c5e8da0d 100644 --- a/docs/enhancements/server-networking/diagrams/attachment-sequence.svg +++ b/docs/enhancements/server-networking/diagrams/attachment-sequence.svg @@ -1,26 +1,26 @@ - -A Machine interface from request to programmed switch portThe Fleet provider for Metal checks the Network and the caller, allocates a server, and creates an interface claim with the Physical attachment mode and the attachment point: the host MAC address and the switch port from inventory. NSO assigns addresses through IPAM and writes the interface. The physical realizer adds the switch port to the Network segment and reports the interface Programmed. Fleet copies the addresses into Machine status and reports NetworkReady. On release, Fleet deletes the claim, the realizer removes the port, NSO returns the addresses, and the claim goes away, which closes the Network and Address gates. + +A Machine interface from request to programmed switch portThe Fleet provider for Metal checks the Network and the caller, allocates a server, and creates an interface claim with the Physical attachment mode and the attachment point: the host MAC address and the switch port from inventory. NSO assigns addresses through IPAM and writes the interface. The physical realizer checks that the port belongs to the allocation, reports the interface Prepared, adds the switch port to the Network segment, and reports it Programmed. Fleet copies the addresses into Machine status and reports NetworkReady. On release, Fleet deletes the claim, the realizer removes the port, NSO returns the addresses, and the claim goes away, which closes the Network and Address gates. - + Fleet provider for Metal - + NSO - + IPAM - + Realizer Network owner - + Switch port - + Check Network, caller; allocate @@ -35,22 +35,27 @@ gateway, MTU Interface -Add port to -segment - -Programmed - -Status: copy to -Machine; NetworkReady - -Machine deleted -Delete claim - -Remove port - -Release addresses - -Claim gone: close -Network, Address - +Check port belongs +to the allocation + +Prepared + +Add port to +segment + +Programmed + +Status: copy to +Machine; NetworkReady + +Machine deleted +Delete claim + +Remove port + +Release addresses + +Claim gone: close +Network, Address + From 8d8ee34862a6e214b7bb441ec888ca623f4452cb Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 16:33:44 -0600 Subject: [PATCH 04/11] docs: Keep object UIDs out of server networking specs Name the boot address claim without its UID, pin it by name, labels and creation order, and record interface claim UIDs only in allocation status. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/server-networking/README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md index 3ecabb06..a14019e2 100644 --- a/docs/enhancements/server-networking/README.md +++ b/docs/enhancements/server-networking/README.md @@ -120,7 +120,7 @@ server. | Relays, the provisioning VLAN, and each switch port's base profile | Network operations | | A switch port's membership in customer networks | The network owner's physical realizer | | Customer addresses and interfaces | NSO, through IPAM | -| Interface requests for a Machine, and their UIDs on the allocation | The Fleet provider for Metal | +| Interface requests for a Machine, and their claims' UIDs in the allocation's status | The Fleet provider for Metal | | Machine network status | The Fleet provider for Metal | A switch port has two writers in the network owner's systems, each for its own @@ -144,8 +144,9 @@ claim for it, in the provider project, before it creates the operation: The claim is named from the operation and scoped to the site's location, so a requester that crashes and runs again finds the same claim. IPAM assigns a host -address when the claim is created. The requester copies the claim's name, UID, -and address into the operation: +address when the claim is created. The requester copies the claim's name and +address into the operation. Like every spec in this enhancement, it holds no +object UID: ```yaml apiVersion: fleet.datumapis.com/v1alpha1 @@ -156,14 +157,17 @@ spec: # ...the envelope and other inputs are unchanged. bootInterface: primary bootNetwork: - addressClaim: {name: alloc-3b9d61c2-install-1-boot, uid: 1d2f7a9e-0b3c-4e5f-8a6b-7c8d9e0f1a2b} + addressClaim: {name: alloc-3b9d61c2-install-1-boot} address: 198.51.100.10 ``` `DeviceWipe` gains the same `bootInterface` and `bootNetwork` fields. -Admission adds one kind check. The claim must exist with that UID, be bound, -and hold that address. Otherwise admission refuses the operation with +Admission adds one kind check. The claim must be the operation's own by its +name and labels, be bound, hold that address, and be created no later than the +operation, since the requester always creates it first. A claim deleted and +recreated under the name after the operation is refused, even with the same +address. Otherwise admission refuses the operation with `BootAddressUnavailable`. The Device snapshot already records the boot NIC's MAC from Device inventory, and the site uses only that MAC. @@ -345,7 +349,7 @@ the server on the boot network as before. | --- | --- | --- | | Boot address for an operation | IPAM claim, then operation, both named from the operation | The requester finds the claim by name and creates the operation. A claim whose operation will never be created is deleted. | | Release a boot address | Operation ends, then the requester deletes the claim | The requester deletes the claim again. | -| Interface claims | Allocation, then each claim, named from the allocation and interface, then the claim's UID on the allocation | The provider finds each claim by name in a namespace only it can write, requires its spec to match, and records its UID. A claim with another spec or another UID is a conflict, and the Machine reports `NetworkReady=False`. | +| Interface claims | Allocation, then each claim, named from the allocation and interface, then the claim's UID in the allocation's status | The provider finds each claim by name in a namespace only it can write, requires its spec and its Machine label to match, and records its UID in status. A claim with another spec or another UID is a conflict, and the Machine reports `NetworkReady=False`. | | Release an interface | Delete the claim, then observe it gone | The release controller observes again. A gate closes only on absence. | ### Requests to other teams From ac96d93410ae679b03d4838df1ccf73746bba139 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 19:50:50 -0600 Subject: [PATCH 05/11] docs: Plan the boot network as an NSO network Assume NSO's physical attachment mode as a planned dependency. The boot network becomes a provider-owned NSO network, and NSO, through its realizer, is the only writer of every switch port's network membership; handing a server to a customer is one NSO step from the boot network to the customer's networks. Fleet keeps the boot services: DHCP that serves a reservation only while its operation is admitted under custody's fence, PXE, iPXE and the installer, and the proof that every DHCP instance dropped the reservation. The direct IPAM claim stays as the interim address source. The operation names its claim with a typed reference, and admission picks its check by that kind, so replacing IPAM with an NSO boot-network interface is a new claimer and a new admission check, nothing else. Add what Fleet does while NSO is unavailable, and how a dedicated or shared boot NIC changes NSO's role, which stays an open decision. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/server-networking/README.md | 297 +++++++++++++----- .../diagrams/attachment-sequence.svg | 37 +-- .../server-networking/diagrams/ownership.svg | 14 +- 3 files changed, 236 insertions(+), 112 deletions(-) diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md index a14019e2..67b86805 100644 --- a/docs/enhancements/server-networking/README.md +++ b/docs/enhancements/server-networking/README.md @@ -14,8 +14,10 @@ stage: alpha - [Ownership](#ownership) - [Boot network](#boot-network) - [Customer network attachment](#customer-network-attachment) + - [When NSO is unavailable](#when-nso-is-unavailable) + - [Boot NIC choice](#boot-nic-choice) - [Write order and crash recovery](#write-order-and-crash-recovery) - - [Requests to other teams](#requests-to-other-teams) + - [Dependencies and requests to other teams](#dependencies-and-requests-to-other-teams) - [Decisions for a person](#decisions-for-a-person) - [Acceptance tests](#acceptance-tests) - [Production readiness review questionnaire](#production-readiness-review-questionnaire) @@ -33,19 +35,27 @@ the customer's networks for as long as the customer holds the server. This enhancement defines both on top of [Device custody and operations](../device-operations/README.md): -- **Boot network.** Each installation and wipe carries a provisioning address - from IPAM and the boot NIC from Device inventory. A site DHCP service answers - that NIC only while the operation runs, and the operation ends only after - DHCP reports the reservation withdrawn. +- **Boot network.** The boot network is a provider-owned NSO network. Each + installation and wipe carries a provisioning address and the boot NIC from + Device inventory. Fleet's boot services answer that NIC over DHCP only while + the operation is admitted, boot it over PXE or iPXE into the installer, and + end the operation only after every DHCP instance reports the reservation + withdrawn. - **Customer network attachment.** The Fleet provider for Metal asks NSO for one interface per requested Machine interface. NSO assigns addresses through - IPAM, and the network owner connects the server's switch port to the - customer's network. Fleet reports the result on the Machine. + IPAM. Handing the server to the customer is one NSO step that moves its + switch ports from the boot network to the customer's networks. Fleet reports + the result on the Machine. -Fleet never configures a switch, a router, or a relay. A reservation feed, two -evidence gates, and a Kea synchronizer exist today and take their values from -site enrollment. This enhancement changes all three, and everything in it is -proposed. +NSO is the only writer of a switch port's network membership, boot and +customer alike. Fleet never configures a switch, a router, or a relay. NSO's +physical attachment mode is a planned dependency, designed separately. Until +it lands, the provisioning address comes from a direct IPAM claim, and that +source is built to be replaced by an NSO interface on the boot network. + +A reservation feed, two evidence gates, and a Kea synchronizer exist today and +take their values from site enrollment. This enhancement changes all three, +and everything in it is proposed. ## Motivation @@ -53,7 +63,7 @@ Today a site's enrollment lists each server's boot NIC MAC and provisioning address by hand, and the site's DHCP reservations come from those values. A Machine can request network interfaces, but Fleet cannot attach a physical NIC to a customer network, because NSO has no attachment mode for a physical -server. +server yet. That mode is planned. ### Goals @@ -61,8 +71,9 @@ server. - Answer DHCP for a boot NIC only while an operation that network-boots it runs, and prove the answer stopped before the operation succeeds. - Ship the site DHCP service as a deployable site component. -- Attach an allocated server's NICs to the customer's networks through NSO and - IPAM, with one writer for each switch port. +- Attach an allocated server's NICs to the boot network and the customer's + networks through NSO, with NSO as the one writer of each switch port's + network membership. - Report each Machine interface's addresses and readiness on the Machine. - State exactly what network operations and the networking teams must provide. @@ -106,6 +117,10 @@ server. its static mode at synchronized sites. - **Network handoff ([#61][handoff-pr]):** both propose physical attachment and disconnect. See [Decisions for a person](#decisions-for-a-person). +- **NSO physical attachment (planned):** NSO's own design for physical + interfaces, a provider-owned boot network, and moving a port between + networks in one step. This enhancement depends on it. See + [Dependencies](#dependencies-and-requests-to-other-teams). ## Design details @@ -114,38 +129,68 @@ server. | Surface | Single writer | | --- | --- | | Which boot NIC holds a reservation, and when | The site, from its admitted operations | -| Provisioning addresses | IPAM, from claims the operation's requester makes | +| Network boot: PXE, iPXE, and the installer | The site's boot service | +| Provisioning addresses | IPAM, from claims the operation's requester makes; later NSO, through the boot network | | Kea runtime configuration | The synchronizer next to each Kea instance | | Kea base configuration: subnets, gateways, boot options | Network operations | +| The boot network and its segment at each site | NSO, as a network the provider owns | +| A switch port's network membership: boot and customer | NSO, through its physical realizer | | Relays, the provisioning VLAN, and each switch port's base profile | Network operations | -| A switch port's membership in customer networks | The network owner's physical realizer | | Customer addresses and interfaces | NSO, through IPAM | | Interface requests for a Machine, and their claims' UIDs in the allocation's status | The Fleet provider for Metal | | Machine network status | The Fleet provider for Metal | -A switch port has two writers in the network owner's systems, each for its own -fields. Network operations sets the base profile once: speed, bond, native -provisioning VLAN, isolation, and LLDP. The physical realizer adds and removes -customer network membership. Neither changes the other's fields. +Network operations sets a switch port's base profile once: speed, bond, +isolation, edge mode, and LLDP. It provides each site's provisioning VLAN to +NSO as the boot network's segment there. NSO alone decides which networks a +port belongs to. Every server port starts on the boot network. Handing a +server to a customer is one NSO step: detach the ports from the boot network +and attach them to the customer's networks. Taking the server back is the +reverse step. Fleet asks for each step and never writes a port. ### Boot network +#### What Fleet keeps + +Fleet keeps the boot services, because they follow custody and NSO's do not: + +- DHCP that serves a boot NIC's reservation only while its operation is + admitted under custody's fence; +- PXE, iPXE, and the installer; and +- proof that every DHCP instance dropped the reservation before the operation + succeeds. + +NSO owns where the boot NIC's port is attached. Fleet owns what answers it +there, and when. + +#### Boot attachment + +Before the requester creates an operation that network-boots the server, it +asks NSO to attach the server's boot port to the boot network, and waits until +NSO reports the attachment programmed. For a wipe at release, that is the same +NSO step that detaches the customer's networks; for a reinstall on a shared +boot NIC, it detaches them for the install. The operation's own checks are +unchanged: the site still powers the server on only after DHCP reports the +reservation served. + #### Provisioning address Each site has one provisioning subnet. Network operations defines one IPAM class for provisioning addresses, with one pool per site that covers that subnet, reserves its gateway, and keeps each address unique within the pool. -The requester of an operation that network-boots the server makes one IPAM -claim for it, in the provider project, before it creates the operation: +Until NSO serves addresses on the boot network, the address comes from a +direct IPAM claim. The requester of an operation that network-boots the server +makes one IPAM claim for it, in the provider project, before it creates the +operation: - the Fleet provider for Metal, for a `DeviceInstallation`; - the release controller, for a `DeviceWipe`. The claim is named from the operation and scoped to the site's location, so a requester that crashes and runs again finds the same claim. IPAM assigns a host -address when the claim is created. The requester copies the claim's name and -address into the operation. Like every spec in this enhancement, it holds no +address when the claim is created. The requester copies a typed reference to +the claim, its API group, kind and name, and the address into the operation. Like every spec in this enhancement, it holds no object UID: ```yaml @@ -157,18 +202,26 @@ spec: # ...the envelope and other inputs are unchanged. bootInterface: primary bootNetwork: - addressClaim: {name: alloc-3b9d61c2-install-1-boot} + addressClaim: + apiGroup: ipam.miloapis.com + kind: IPClaim + name: alloc-3b9d61c2-install-1-boot address: 198.51.100.10 ``` `DeviceWipe` gains the same `bootInterface` and `bootNetwork` fields. -Admission adds one kind check. The claim must be the operation's own by its -name and labels, be bound, hold that address, and be created no later than the +Admission adds one kind check, chosen by the claim's kind. IPAM's claim is the +only kind it knows. A claim of any other kind can never be checked, so the +operation fails at once with `UnsupportedBootAddressClaim`, naming the kind, +and is never retried. The claim must be the operation's own by its name and +labels, be bound, hold that address, and be created no later than the operation, since the requester always creates it first. A claim deleted and recreated under the name after the operation is refused, even with the same -address. Otherwise admission refuses the operation with -`BootAddressUnavailable`. The Device snapshot already records the boot NIC's +address. Otherwise the operation fails with `BootAddressClaimMismatch`. Only +when the claim cannot be read, because its address source is unavailable, +does the operation wait instead, `Pending` with `BootAddressUnavailable`, and +admission checks it again. The Device snapshot already records the boot NIC's MAC from Device inventory, and the site uses only that MAC. A claim's address belongs to the operation until no DHCP instance can still @@ -191,6 +244,24 @@ stays. A claim whose operation will never be created, because the Installation or the release that would create it is gone, is deleted by its requester when the allocation is released, and so is any claim still left then. +#### Replacing the address source + +The address source has two seams. Each requester uses a claimer that claims a +bound address under a name derived from the operation, releases it when the +rules above allow, and lists the claims of an allocation. Admission picks its +check by the kind the operation's claim reference names. IPAM's claim is the +only claimer and the only check today. + +Once NSO serves the boot network, the source becomes an NSO interface claim on +the boot network for the boot NIC, one per operation, and NSO takes the address +from the same IPAM class. The swap is a new claimer and a new admission check +for NSO's kind, with the same rules for name, labels, bound address, creation +time, and verified release, plus the requesters' permission to write NSO's +claims. Nothing else changes: not the operation's fields, the reservation feed, +the DHCP service, the evidence gates, or the release rules above. Operations +created before the swap name the IPAM kind, so admission still checks them +against IPAM until they end. + #### Reservation lifecycle ![A reservation exists only while its operation runs](diagrams/reservation-sequence.svg) @@ -247,8 +318,9 @@ Scaling down drains the instance first, until it reports an empty feed. Each site needs: -1. **Provisioning VLAN.** One per site or per rack, untagged on each server's - boot NIC port, so firmware boots without VLAN settings. +1. **Provisioning VLAN.** One per site or per rack, provided to NSO as the boot + network's segment, and untagged on a boot NIC's port while NSO attaches it + to the boot network, so firmware boots without VLAN settings. 2. **Isolation on the provisioning VLAN only.** A private VLAN or equivalent, so a server reaches only the gateway on the provisioning VLAN. Isolation must not apply to customer VLANs on the same port. @@ -302,7 +374,7 @@ Machine releases the server. After allocation, the Fleet provider for Metal creates one NSO interface claim per Machine interface, named from the allocation and the interface. Claims live where only the Fleet provider can write them, so a customer cannot create or -replace one. Each claim uses the proposed `Physical` attachment mode and names +replace one. Each claim uses NSO's planned `Physical` attachment mode and names its attachment point: - the host interface's MAC address, from Device inventory; and @@ -312,10 +384,10 @@ Then: 1. NSO assigns addresses through IPAM and writes the interface: addresses, gateway, and MTU. -2. The network owner's physical realizer checks that the attachment point - belongs to the allocation, reports the interface `Prepared`, adds the - switch port to the Network's segment at that location, and reports it - `Programmed`. +2. NSO's physical realizer checks that the attachment point belongs to the + allocation and reports the interface `Prepared`. When the server is handed + over, it moves the switch port from the boot network to the Network's + segment at that location in one step, and reports it `Programmed`. 3. Fleet copies the interface's addresses, gateway, MTU, and the host interface's MAC address into `Machine.status.network`. @@ -336,12 +408,47 @@ reports the same values in status, and the customer configures the OS. #### Release When a Machine is deleted, the Fleet provider for Metal deletes its interface -claims. NSO keeps each claim until the realizer removes the port from the -customer's segment. Then it returns the addresses to IPAM, or keeps them for -an interface that asked to retain them. The release controller closes the -`Network` and `Address` gates when every claim of the allocation is gone, and -a claim that never goes away keeps the server out of use. Release then wipes -the server on the boot network as before. +claims. NSO keeps each claim until the realizer has moved the port from the +customer's segment back to the boot network. Then it returns the addresses to +IPAM, or keeps them for an interface that asked to retain them. The release +controller closes the `Network` and `Address` gates when every claim of the +allocation is gone, and a claim that never goes away keeps the server out of +use. Release then wipes the server on the boot network as before. + +### When NSO is unavailable + +Every network boot depends on NSO, because only NSO attaches a port to the +boot network. That includes the wipe at release and every recovery that +settles a hold with a later network boot. While NSO is unavailable: + +- Fleet creates no installation or wipe whose boot attachment it cannot + confirm. The request waits, sends nothing, and is tried again. +- An operation already admitted keeps running. Its port is already on the boot + network, and its DHCP, boot, and withdrawal proof are Fleet's own. +- Release waits with the server held. The `Network` gate stays open, the + server stays out of capacity, and no wipe starts on a port that may still + be on a customer's network. +- A recovery that settles a hold by network boot waits the same way. One that + only records a decision, such as retiring the Device, does not need NSO. +- Handoff to the customer waits, and the Machine reports `NetworkReady=False` + with the reason. +- Fleet never writes a switch port to work around NSO. + +### Boot NIC choice + +Whether the boot NIC is dedicated or shared with customer networks stays open. +It changes what NSO does at handoff, not what Fleet's boot services do: + +- **Shared boot NIC.** The boot NIC also carries customer networks. NSO moves + that port between the boot network, untagged, and the customer's networks, + tagged, at every handoff and every return, and the port needs isolation on + the provisioning VLAN only. Where the NIC is in an LACP bond, the port needs + bond fallback to boot. +- **Dedicated boot NIC.** The boot NIC carries only the boot network, and + customer ports never do. NSO attaches the boot port for each operation that + network-boots the server and detaches it while the customer holds the + server. Handoff is still one NSO step, over separate ports. It costs a port + per server and needs no bond fallback. ### Write order and crash recovery @@ -351,37 +458,43 @@ the server on the boot network as before. | Release a boot address | Operation ends, then the requester deletes the claim | The requester deletes the claim again. | | Interface claims | Allocation, then each claim, named from the allocation and interface, then the claim's UID in the allocation's status | The provider finds each claim by name in a namespace only it can write, requires its spec and its Machine label to match, and records its UID in status. A claim with another spec or another UID is a conflict, and the Machine reports `NetworkReady=False`. | | Release an interface | Delete the claim, then observe it gone | The release controller observes again. A gate closes only on absence. | +| Boot attachment before an operation | NSO attachment programmed, then the operation | The requester asks NSO again and creates the operation only once NSO reports the port on the boot network. | + +### Dependencies and requests to other teams + +Fleet opens nothing in other repositories. + +#### NSO (planned dependency) + +NSO's physical attachment mode is being designed in NSO. This enhancement +assumes it provides: + +1. **Physical attachment mode.** A `Physical` interface attachment mode, for an + interface with no node, container, or hypervisor. +2. **Attachment point.** A host MAC address and a switch and port name on the + interface claim, copied to the interface. +3. **Provider-owned boot network.** A network the provider owns at each site, + on the provisioning VLAN, that every server port starts on. +4. **One-step handoff.** Moving a port between the boot network and customer + networks in one step, with NSO's realizer as the only writer of the port's + membership, and `Prepared` and `Programmed` reported for each interface. +5. **Claim placement and authority.** Claims a provider creates for a consumer + project live where the consumer cannot write, and only the Fleet + provider's identity may create `Physical` claims. +6. **Detach before delete.** A `Physical` claim stays until its port is off the + customer's network, then its addresses are released or retained. +7. **Boot network addresses (later).** Interface claims on the boot network + that bind one provisioning address from the site's IPAM class, for the + address source swap. + +Fleet relies on NSO being available for every network boot. See [When NSO is +unavailable](#when-nso-is-unavailable). + +#### Network operations -### Requests to other teams - -Fleet opens nothing in other repositories. These are the asks, in priority -order. - -#### NSO - -1. **Physical attachment mode.** Add `Physical` to the interface attachment - modes. A physical interface has no node, container, or hypervisor. -2. **Attachment point.** Add an attachment point to the interface claim and - copy it to the interface: a host MAC address, and a switch and port name. - Validate the MAC's format and require both names for `Physical`. -3. **Claim placement.** Define where a provider that is not compute creates - claims for a consumer project, in a namespace the consumer cannot write. - Compute creates them in a location cell's namespace. Fleet runs in the - provider project and reaches the consumer project through Milo. -4. **Who may attach a port.** Allow only the Fleet provider's identity to - create `Physical` claims. -5. **Detach before delete.** Keep a `Physical` claim until the realizer reports - the port removed from the segment, then release or retain its addresses. - -#### Networking and network operations - -1. **Physical realizer.** A component that reads `Physical` interfaces, checks - each attachment point against the allocation Fleet records for that - server, adds and removes the named port's membership in the Network's - segment, and writes `Prepared`, `Programmed`, and the attachment reference. - It is the only writer of that membership. -2. **Base port profiles and site requirements.** The list under [Network - operations requirements](#network-operations-requirements). +1. **Base port profiles and site requirements.** The list under [Network + operations requirements](#network-operations-requirements), with each + site's provisioning VLAN provided to NSO as the boot network's segment. #### IPAM @@ -395,12 +508,8 @@ order. - **Who operates the site DHCP service.** This enhancement ships Kea as a Fleet site component, and network operations owns its base configuration. Someone must be on call for it. -- **Dedicated boot NIC.** Isolation on the provisioning VLAN is enough when the - boot NIC also carries customer networks as tagged VLANs. A dedicated boot NIC - costs a port per server and avoids bond fallback. -- **The `Physical` attachment contract.** NSO and Networking must accept or - change the asks above. Until they do, Fleet refuses Machines that request - interfaces. +- **Dedicated or shared boot NIC.** See [Boot NIC choice](#boot-nic-choice) for + how each option changes NSO's role. - **Overlap with network handoff ([#61][handoff-pr]).** Both propose physical attachment and disconnect. Decide which one owns them. @@ -423,19 +532,22 @@ These tests are required and not implemented: capacity. - A Machine reports `NetworkReady` only after every interface is programmed, and its status shows each interface's addresses and MAC address. +- While NSO is unavailable, no installation or wipe is created, an admitted + operation runs to its result, and release keeps the server held. - Release closes the `Network` and `Address` gates only after every interface claim is gone. - End to end at a site with real switches: a relayed boot on an LACP member, - attachment to two customer networks, isolation from a second customer, and - release with the port removed from both networks. + handoff from the boot network to two customer networks in one NSO step, + isolation from a second customer, and release with the port back on the boot + network. ## Production readiness review questionnaire ### How do operators enable or disable the feature? A site enables the boot network by declaring synchronized DHCP and deploying the -site DHCP service. A location enables customer attachment when NSO and the -realizer support `Physical` there. Disabling attachment refuses new Machines +site DHCP service. A location enables customer attachment when NSO supports +`Physical` there. Disabling attachment refuses new Machines with interfaces and leaves existing ones attached. ### What must operators monitor? @@ -446,8 +558,10 @@ interfaces not `Programmed`, and releases waiting on interface claims. ### What does the feature depend on? -IPAM for addresses. NSO and the physical realizer for attachment. Network -operations for relays, VLANs, and port profiles. +IPAM for addresses. NSO and its physical realizer for every port's attachment, +including the boot network, so every installation, wipe, and recovery by +network boot needs NSO. Network operations for relays, VLANs, and port +profiles. ### Does the feature add API types or calls? @@ -458,11 +572,14 @@ interface. ## Implementation history - 2026-11-25: Proposed. +- 2026-11-25: NSO owns the boot network and every port's attachment; the direct + IPAM claim becomes the interim address source. ## Drawbacks - Every network boot depends on the site DHCP service and its reports. -- Customer attachment waits on two other teams. +- Customer attachment and every network boot wait on NSO's physical mode, and + on NSO being available. - Installations carry static network configuration, so a customer who changes addresses later must also change the OS. @@ -473,6 +590,11 @@ interface. still serves it. - **Fleet configures switch ports.** Fleet would hold the switches' credentials and write the network owner's systems. +- **Network operations owns the boot attachment.** A static native VLAN on every + port needs no NSO step to boot, but gives each port two writers, and a + handoff would need both to change the same port in the right order. +- **NSO serves boot DHCP.** NSO would need custody's fence and the withdrawal + proof, which Fleet already has. - **DHCP on customer networks.** NSO has no DHCP, and a server would get a customer address before Fleet hands it off. - **Central DHCP outside the site.** Possible behind the same feed, but each @@ -481,8 +603,9 @@ interface. ## Infrastructure needed The lab can run Kea, the synchronizer, and the feed against emulated DHCP -clients, and NSO's API with a test realizer. Real switches are needed for -relays, LACP fallback, port isolation, and the realizer. +clients, IPAM, and NSO's API with a test realizer. Real switches are needed for +relays, LACP fallback, port isolation, the realizer, and moving a port between +the boot network and customer networks. [boot-pr]: https://github.com/datum-cloud/fleet/pull/87 [handoff-pr]: https://github.com/datum-cloud/fleet/pull/61 diff --git a/docs/enhancements/server-networking/diagrams/attachment-sequence.svg b/docs/enhancements/server-networking/diagrams/attachment-sequence.svg index c5e8da0d..0e4f30bb 100644 --- a/docs/enhancements/server-networking/diagrams/attachment-sequence.svg +++ b/docs/enhancements/server-networking/diagrams/attachment-sequence.svg @@ -1,26 +1,26 @@ - -A Machine interface from request to programmed switch portThe Fleet provider for Metal checks the Network and the caller, allocates a server, and creates an interface claim with the Physical attachment mode and the attachment point: the host MAC address and the switch port from inventory. NSO assigns addresses through IPAM and writes the interface. The physical realizer checks that the port belongs to the allocation, reports the interface Prepared, adds the switch port to the Network segment, and reports it Programmed. Fleet copies the addresses into Machine status and reports NetworkReady. On release, Fleet deletes the claim, the realizer removes the port, NSO returns the addresses, and the claim goes away, which closes the Network and Address gates. + +A Machine interface from request to programmed switch portThe Fleet provider for Metal checks the Network and the caller, allocates a server, and creates an interface claim with the Physical attachment mode and the attachment point: the host MAC address and the switch port from inventory. NSO assigns addresses through IPAM and writes the interface. NSO's physical realizer checks that the port belongs to the allocation and reports the interface Prepared. At handoff it moves the switch port from the boot network to the Network segment in one step and reports it Programmed. Fleet copies the addresses into Machine status and reports NetworkReady. On release, Fleet deletes the claim, the realizer moves the port back to the boot network, NSO returns the addresses, and the claim goes away, which closes the Network and Address gates. - + Fleet provider for Metal - + NSO - + IPAM - + Realizer -Network owner - +NSO + Switch port - + Check Network, caller; allocate @@ -40,8 +40,8 @@ Prepared -Add port to -segment +Handoff: boot to +customer, one step Programmed @@ -51,11 +51,12 @@ Machine deleted Delete claim -Remove port - -Release addresses - -Claim gone: close -Network, Address - +Return port to +boot network + +Release addresses + +Claim gone: close +Network, Address + diff --git a/docs/enhancements/server-networking/diagrams/ownership.svg b/docs/enhancements/server-networking/diagrams/ownership.svg index 66badcf2..cb7a59ec 100644 --- a/docs/enhancements/server-networking/diagrams/ownership.svg +++ b/docs/enhancements/server-networking/diagrams/ownership.svg @@ -1,5 +1,5 @@ -Who writes each network surfaceFleet writes the boot address claim and operation inputs, interface claims, and Machine network status. The site serves the reservation feed. IPAM assigns provisioning and customer addresses. NSO writes interfaces. The synchronizer is the only writer of Kea runtime configuration. Network operations owns Kea base configuration, relays, the provisioning VLAN, and each switch port base profile. The physical realizer is the only writer of a switch port customer network membership. +Who writes each network surfaceFleet writes the boot address claim and operation inputs, interface claims, and Machine network status. The site serves the reservation feed and the network boot. IPAM assigns provisioning and customer addresses; the boot address claim goes to IPAM for now and to NSO later. NSO writes interfaces and owns the boot network. The synchronizer is the only writer of Kea runtime configuration. Network operations owns Kea base configuration, relays, the provisioning VLAN, and each switch port base profile. NSO, through its physical realizer, is the only writer of a switch port network membership, boot and customer. @@ -8,7 +8,7 @@ Fleet Boot address claim -Per operation +IPAM now; NSO later Operation inputs Address, boot NIC @@ -25,13 +25,13 @@ Provisioning, customer NSO -Interfaces +Interfaces, boot network -Physical realizer -Customer membership +NSO realizer +Every port membership Network operations -Relays, VLANs, ports +Relays, VLANs, profiles Site @@ -45,7 +45,7 @@ Answers boot NICs Switch port -Two field owners +One membership writer From d850b06a81bced8b3661346c6d5618635e02be01 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 19:59:18 -0600 Subject: [PATCH 06/11] docs: Define the boot attachment claim Boot attachment is one NSO Physical claim on the boot network per network-booting operation, made and programmed before the address claim and released under the same rules. NSO derives each port's membership from its claims: on the boot network while a boot attachment claim names it, otherwise the customer networks its interface claims name, otherwise none. That replaces "every port starts on the boot network", which contradicted a dedicated boot NIC. State the release order, reinstall on a shared NIC, who owns isolation and the native VLAN, the swap as a new claimer that folds the address into the boot attachment claim with the coordinator rolled out first, the operator decision for a port NSO cannot release, and that a synchronized site needs NSO's boot network. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/server-networking/README.md | 170 +++++++++++------- .../diagrams/attachment-sequence.svg | 56 +++--- .../diagrams/reservation-sequence.svg | 125 +++++++------ 3 files changed, 205 insertions(+), 146 deletions(-) diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md index 67b86805..6d88d532 100644 --- a/docs/enhancements/server-networking/README.md +++ b/docs/enhancements/server-networking/README.md @@ -43,9 +43,9 @@ operations](../device-operations/README.md): withdrawn. - **Customer network attachment.** The Fleet provider for Metal asks NSO for one interface per requested Machine interface. NSO assigns addresses through - IPAM. Handing the server to the customer is one NSO step that moves its - switch ports from the boot network to the customer's networks. Fleet reports - the result on the Machine. + IPAM. Handing the server to the customer is one NSO step on each switch port, + off the boot network and onto the customer's networks. Fleet reports the + result on the Machine. NSO is the only writer of a switch port's network membership, boot and customer alike. Fleet never configures a switch, a router, or a relay. NSO's @@ -134,19 +134,30 @@ server yet. That mode is planned. | Kea runtime configuration | The synchronizer next to each Kea instance | | Kea base configuration: subnets, gateways, boot options | Network operations | | The boot network and its segment at each site | NSO, as a network the provider owns | -| A switch port's network membership: boot and customer | NSO, through its physical realizer | -| Relays, the provisioning VLAN, and each switch port's base profile | Network operations | +| A switch port's network membership: boot and customer, native VLAN, and isolation on the boot network | NSO, through its physical realizer | +| Boot attachment claims, one per network-booting operation | The operation's requester | +| Relays, the provisioning VLAN, DHCP snooping on it, and each switch port's base profile | Network operations | | Customer addresses and interfaces | NSO, through IPAM | | Interface requests for a Machine, and their claims' UIDs in the allocation's status | The Fleet provider for Metal | | Machine network status | The Fleet provider for Metal | -Network operations sets a switch port's base profile once: speed, bond, -isolation, edge mode, and LLDP. It provides each site's provisioning VLAN to -NSO as the boot network's segment there. NSO alone decides which networks a -port belongs to. Every server port starts on the boot network. Handing a -server to a customer is one NSO step: detach the ports from the boot network -and attach them to the customer's networks. Taking the server back is the -reverse step. Fleet asks for each step and never writes a port. +Network operations sets a switch port's base profile once: speed, bond, bond +fallback, edge mode, and LLDP. It provides each site's provisioning VLAN to NSO +as the boot network's segment there. NSO alone decides which networks a port +belongs to, including whether the boot network is its untagged VLAN and the +isolation that comes with it. NSO derives a port's membership from the claims +that name the port: + +- While a boot attachment claim names the port, the port is on the boot + network and nothing else. +- Otherwise, the port carries the customer networks of the allocation's + interface claims that name it. +- With neither, the port is on no network. + +Each change is one NSO step on the port. Handing a server to a customer is the +step that follows the release of the installation's boot attachment claim: +NSO detaches the port from the boot network and attaches the customer's +networks. Fleet writes claims and never writes a port. ### Boot network @@ -166,12 +177,23 @@ there, and when. #### Boot attachment Before the requester creates an operation that network-boots the server, it -asks NSO to attach the server's boot port to the boot network, and waits until -NSO reports the attachment programmed. For a wipe at release, that is the same -NSO step that detaches the customer's networks; for a reinstall on a shared -boot NIC, it detaches them for the install. The operation's own checks are -unchanged: the site still powers the server on only after DHCP reports the -reservation served. +creates one NSO boot attachment claim for the boot NIC, named from the +operation: a `Physical` interface claim on the boot network, with the boot +NIC's MAC address and switch port from inventory. It waits until NSO reports +the claim `Programmed`, then claims the provisioning address and creates the +operation. The operation's own checks are unchanged: the site still powers the +server on only after DHCP reports the reservation served. + +The requester deletes the boot attachment claim under the same rules as the +address claim below, so a port stays on the boot network until no DHCP +instance can still serve its operation's address. While a held operation keeps +its claim, the port stays on the boot network. + +At release, the Machine's interface claims are deleted first, so the port has +already left the customer's networks when the wipe's boot attachment claim is +made. On a shared boot NIC, a reinstall's boot attachment moves the port off +the customer's networks for the install, and the Machine reports +`NetworkReady=False` until the claim is released and NSO moves the port back. #### Provisioning address @@ -181,8 +203,8 @@ subnet, reserves its gateway, and keeps each address unique within the pool. Until NSO serves addresses on the boot network, the address comes from a direct IPAM claim. The requester of an operation that network-boots the server -makes one IPAM claim for it, in the provider project, before it creates the -operation: +makes one IPAM claim for it, in the provider project, after its boot +attachment is programmed and before it creates the operation: - the Fleet provider for Metal, for a `DeviceInstallation`; - the release controller, for a `DeviceWipe`. @@ -190,8 +212,8 @@ operation: The claim is named from the operation and scoped to the site's location, so a requester that crashes and runs again finds the same claim. IPAM assigns a host address when the claim is created. The requester copies a typed reference to -the claim, its API group, kind and name, and the address into the operation. Like every spec in this enhancement, it holds no -object UID: +the claim, its API group, kind and name, and the address into the operation. +Like every spec in this enhancement, it holds no object UID: ```yaml apiVersion: fleet.datumapis.com/v1alpha1 @@ -252,15 +274,19 @@ rules above allow, and lists the claims of an allocation. Admission picks its check by the kind the operation's claim reference names. IPAM's claim is the only claimer and the only check today. -Once NSO serves the boot network, the source becomes an NSO interface claim on -the boot network for the boot NIC, one per operation, and NSO takes the address -from the same IPAM class. The swap is a new claimer and a new admission check -for NSO's kind, with the same rules for name, labels, bound address, creation -time, and verified release, plus the requesters' permission to write NSO's -claims. Nothing else changes: not the operation's fields, the reservation feed, -the DHCP service, the evidence gates, or the release rules above. Operations -created before the swap name the IPAM kind, so admission still checks them -against IPAM until they end. +Once NSO serves addresses on the boot network, the operation's boot attachment +claim also binds its provisioning address, from the same IPAM class, and the +separate IPAM claim goes away. The swap is a new claimer, which makes the boot +attachment claim with an address, and a new admission check for that kind, +with the same rules for name, labels, bound address, creation time, and +verified release. The operation's fields, the reservation feed, the DHCP +service, the evidence gates, and the release rules do not change. + +Rollout order matters. The coordinator gains the new check first, because a +coordinator without it fails an operation of the new kind with +`UnsupportedBootAddressClaim`. Requesters switch next. Each keeps the IPAM +claimer for releasing and listing its existing claims until no operation of +the allocation names the IPAM kind. #### Reservation lifecycle @@ -385,9 +411,10 @@ Then: 1. NSO assigns addresses through IPAM and writes the interface: addresses, gateway, and MTU. 2. NSO's physical realizer checks that the attachment point belongs to the - allocation and reports the interface `Prepared`. When the server is handed - over, it moves the switch port from the boot network to the Network's - segment at that location in one step, and reports it `Programmed`. + allocation and reports the interface `Prepared`. Once no boot attachment + claim names the port, it attaches the port to the Network's segment at that + location, moving it off the boot network in the same step if it was there, + and reports it `Programmed`. 3. Fleet copies the interface's addresses, gateway, MTU, and the host interface's MAC address into `Machine.status.network`. @@ -408,12 +435,13 @@ reports the same values in status, and the customer configures the OS. #### Release When a Machine is deleted, the Fleet provider for Metal deletes its interface -claims. NSO keeps each claim until the realizer has moved the port from the -customer's segment back to the boot network. Then it returns the addresses to -IPAM, or keeps them for an interface that asked to retain them. The release -controller closes the `Network` and `Address` gates when every claim of the -allocation is gone, and a claim that never goes away keeps the server out of -use. Release then wipes the server on the boot network as before. +claims. NSO keeps each claim until the realizer has removed the port from the +customer's segment. Then it returns the addresses to IPAM, or keeps them for an +interface that asked to retain them. The release controller closes the +`Network` and `Address` gates when every claim of the allocation is gone, and a +claim that never goes away keeps the server out of use. The `Network` gate +closes before the wipe is created. Release then wipes the server on the boot +network, through the wipe's own boot attachment claim. ### When NSO is unavailable @@ -422,7 +450,8 @@ boot network. That includes the wipe at release and every recovery that settles a hold with a later network boot. While NSO is unavailable: - Fleet creates no installation or wipe whose boot attachment it cannot - confirm. The request waits, sends nothing, and is tried again. + confirm, and claims no address for one. The request waits, sends nothing, + and is tried again. - An operation already admitted keeps running. Its port is already on the boot network, and its DHCP, boot, and withdrawal proof are Fleet's own. - Release waits with the server held. The `Network` gate stays open, the @@ -434,31 +463,37 @@ settles a hold with a later network boot. While NSO is unavailable: with the reason. - Fleet never writes a switch port to work around NSO. +If NSO stays unavailable, or a claim never goes away, the server stays out of +use: release cannot close its `Network` gate. Retiring the Device needs no NSO, +but its claims remain until NSO removes them. What an operator does then is +listed under [Decisions for a person](#decisions-for-a-person). + ### Boot NIC choice Whether the boot NIC is dedicated or shared with customer networks stays open. It changes what NSO does at handoff, not what Fleet's boot services do: - **Shared boot NIC.** The boot NIC also carries customer networks. NSO moves - that port between the boot network, untagged, and the customer's networks, - tagged, at every handoff and every return, and the port needs isolation on - the provisioning VLAN only. Where the NIC is in an LACP bond, the port needs - bond fallback to boot. + that port between the boot network, untagged and isolated, and the + customer's networks, tagged, whenever a boot attachment claim is made or + released. A reinstall takes the customer's networks off that port for the + install. Where the NIC is in an LACP bond, the port needs bond fallback. - **Dedicated boot NIC.** The boot NIC carries only the boot network, and - customer ports never do. NSO attaches the boot port for each operation that - network-boots the server and detaches it while the customer holds the - server. Handoff is still one NSO step, over separate ports. It costs a port - per server and needs no bond fallback. + customer ports never do. NSO attaches the boot port only while a boot + attachment claim names it, and the port is on no network otherwise. The + customer's ports keep their networks through a reinstall. Handoff is the + first attachment of the customer's ports, not a move. It costs a port per + server and needs no bond fallback. ### Write order and crash recovery | Change | Order | After a crash between the writes | | --- | --- | --- | | Boot address for an operation | IPAM claim, then operation, both named from the operation | The requester finds the claim by name and creates the operation. A claim whose operation will never be created is deleted. | -| Release a boot address | Operation ends, then the requester deletes the claim | The requester deletes the claim again. | +| Release a boot address | Operation ends, then the requester deletes the address claim and the boot attachment claim | The requester deletes them again. | | Interface claims | Allocation, then each claim, named from the allocation and interface, then the claim's UID in the allocation's status | The provider finds each claim by name in a namespace only it can write, requires its spec and its Machine label to match, and records its UID in status. A claim with another spec or another UID is a conflict, and the Machine reports `NetworkReady=False`. | | Release an interface | Delete the claim, then observe it gone | The release controller observes again. A gate closes only on absence. | -| Boot attachment before an operation | NSO attachment programmed, then the operation | The requester asks NSO again and creates the operation only once NSO reports the port on the boot network. | +| Boot attachment before an operation | Boot attachment claim, then `Programmed`, then the address claim and the operation, all named from the operation | The requester finds the boot attachment claim by name, waits for `Programmed`, and continues. A claim whose operation will never be created is deleted with the address claim. | ### Dependencies and requests to other teams @@ -474,18 +509,20 @@ assumes it provides: 2. **Attachment point.** A host MAC address and a switch and port name on the interface claim, copied to the interface. 3. **Provider-owned boot network.** A network the provider owns at each site, - on the provisioning VLAN, that every server port starts on. -4. **One-step handoff.** Moving a port between the boot network and customer - networks in one step, with NSO's realizer as the only writer of the port's - membership, and `Prepared` and `Programmed` reported for each interface. + on the provisioning VLAN, with isolation between servers on it. +4. **Membership from claims.** A port is on the boot network while a boot + attachment claim names it, and otherwise carries the customer networks its + interface claims name. Each change is one step, NSO's realizer is the only + writer of the port's membership, and `Prepared` and `Programmed` are + reported for each interface. 5. **Claim placement and authority.** Claims a provider creates for a consumer project live where the consumer cannot write, and only the Fleet provider's identity may create `Physical` claims. 6. **Detach before delete.** A `Physical` claim stays until its port is off the customer's network, then its addresses are released or retained. -7. **Boot network addresses (later).** Interface claims on the boot network - that bind one provisioning address from the site's IPAM class, for the - address source swap. +7. **Boot network addresses (later).** A boot attachment claim that also binds + one provisioning address from the site's IPAM class, for the address + source swap. Fleet relies on NSO being available for every network boot. See [When NSO is unavailable](#when-nso-is-unavailable). @@ -510,6 +547,10 @@ unavailable](#when-nso-is-unavailable). must be on call for it. - **Dedicated or shared boot NIC.** See [Boot NIC choice](#boot-nic-choice) for how each option changes NSO's role. +- **A port NSO cannot release.** When NSO stays unavailable or a claim never + goes away, the server is out of use until someone acts. Decide whether an + operator may force the claim's removal through NSO, and who confirms the + switch port is off the customer's network first. - **Overlap with network handoff ([#61][handoff-pr]).** Both propose physical attachment and disconnect. Decide which one owns them. @@ -546,8 +587,10 @@ These tests are required and not implemented: ### How do operators enable or disable the feature? A site enables the boot network by declaring synchronized DHCP and deploying the -site DHCP service. A location enables customer attachment when NSO supports -`Physical` there. Disabling attachment refuses new Machines +site DHCP service. The declaration requires NSO's boot network at that +location: without it, every installation and wipe there waits with nothing +sent. A location enables customer attachment when NSO supports `Physical` +there. Disabling attachment refuses new Machines with interfaces and leaves existing ones attached. ### What must operators monitor? @@ -565,9 +608,10 @@ profiles. ### Does the feature add API types or calls? -It adds no kinds. It adds the boot network input to two operation kinds, one -IPAM claim per network-booting operation, and one NSO claim per Machine -interface. +It adds no kinds. It adds the boot network input to two operation kinds; per +network-booting operation, one NSO boot attachment claim and one IPAM claim, +until the swap folds the address into the boot attachment claim; and one NSO +claim per Machine interface. ## Implementation history diff --git a/docs/enhancements/server-networking/diagrams/attachment-sequence.svg b/docs/enhancements/server-networking/diagrams/attachment-sequence.svg index 0e4f30bb..4e6f7f00 100644 --- a/docs/enhancements/server-networking/diagrams/attachment-sequence.svg +++ b/docs/enhancements/server-networking/diagrams/attachment-sequence.svg @@ -1,26 +1,26 @@ - -A Machine interface from request to programmed switch portThe Fleet provider for Metal checks the Network and the caller, allocates a server, and creates an interface claim with the Physical attachment mode and the attachment point: the host MAC address and the switch port from inventory. NSO assigns addresses through IPAM and writes the interface. NSO's physical realizer checks that the port belongs to the allocation and reports the interface Prepared. At handoff it moves the switch port from the boot network to the Network segment in one step and reports it Programmed. Fleet copies the addresses into Machine status and reports NetworkReady. On release, Fleet deletes the claim, the realizer moves the port back to the boot network, NSO returns the addresses, and the claim goes away, which closes the Network and Address gates. + +A Machine interface from request to programmed switch portThe Fleet provider for Metal checks the Network and the caller, allocates a server, and creates an interface claim with the Physical attachment mode and the attachment point: the host MAC address and the switch port from inventory. NSO assigns addresses through IPAM and writes the interface. NSO's physical realizer checks that the port belongs to the allocation and reports the interface Prepared. Once no boot attachment claim names the port, it moves the switch port to the Network segment in one step and reports it Programmed. Fleet copies the addresses into Machine status and reports NetworkReady. On release, Fleet deletes the claim, the realizer moves the port from the segment, NSO returns the addresses, and the claim goes away, which closes the Network and Address gates. - + Fleet provider for Metal - + NSO - + IPAM - + Realizer NSO - + Switch port - + Check Network, caller; allocate @@ -40,23 +40,25 @@ Prepared -Handoff: boot to -customer, one step - -Programmed - -Status: copy to -Machine; NetworkReady - -Machine deleted -Delete claim - -Return port to -boot network - -Release addresses - -Claim gone: close -Network, Address - +Install done: boot +attachment released +Handoff: boot to +customer, one step + +Programmed + +Status: copy to +Machine; NetworkReady + +Machine deleted +Delete claim + +Remove port from +segment + +Release addresses + +Claim gone: close +Network, Address + diff --git a/docs/enhancements/server-networking/diagrams/reservation-sequence.svg b/docs/enhancements/server-networking/diagrams/reservation-sequence.svg index 8cf86825..8997381d 100644 --- a/docs/enhancements/server-networking/diagrams/reservation-sequence.svg +++ b/docs/enhancements/server-networking/diagrams/reservation-sequence.svg @@ -1,60 +1,73 @@ - -A reservation exists only while its operation runsThe requester claims a provisioning address from IPAM and creates the operation with the address. The coordinator checks the claim at admission and delivers the operation with the boot NIC MAC from Device inventory. The site adds the reservation to its feed. The synchronizer applies it to Kea and reports it applied. Only then does the site power on the server, whose firmware gets the address through the relay. When the boot closes, the reservation leaves the feed, the synchronizer reports it withdrawn, and the operation succeeds. The requester then deletes the address claim. + +A reservation exists only while its operation runsThe requester makes a boot attachment claim in NSO and waits until NSO reports the boot port on the boot network. It then claims a provisioning address from IPAM and creates the operation with a typed reference to the claim and the address. The coordinator checks the claim at admission and delivers the operation with the boot NIC MAC from Device inventory. The site adds the reservation to its feed. The synchronizer applies it to Kea and reports it applied. Only then does the site power on the server, whose firmware gets the address through the relay. When the boot closes, the reservation leaves the feed, the synchronizer reports it withdrawn, and the operation succeeds. The requester then deletes the address claim and the boot attachment claim. - + - -Requester -Provider, release - - -IPAM - - -Coordinator - - -Site -Feed, worker - - -Synchronizer -Kea - - -Server -Firmware - -Claim address - -Host address - -Operation with -address - -Admit; deliver with -boot NIC MAC - -Fetch feed - -NIC โ†’ address - -Report applied -after Kea accepts - -Arm network boot, -power on - -DHCP through -the relay - -Boot closes; the -feed drops the NIC -Report withdrawn - -Succeeded - -Delete claim - + +Requester +Provider, release + + +NSO +Boot network + + +IPAM + + +Coordinator + + +Site +Feed, worker + + +Synchronizer +Kea + + +Server +Firmware + +Boot attachment +claim + +Programmed: port +on boot network + +Claim address + +Host address + +Operation: claim +reference, address + +Admit; deliver with +boot NIC MAC + +Fetch feed + +NIC โ†’ address + +Report applied +after Kea accepts + +Arm network boot, +power on + +DHCP through +the relay + +Boot closes; the +feed drops the NIC +Report withdrawn + +Succeeded + +Delete address claim + +Delete boot +attachment claim + From 6db291a240006f062a2680af6e3824999174c00c Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 20:01:03 -0600 Subject: [PATCH 07/11] docs: Align release, readiness and ownership diagram The end-to-end test now has the port leave both customer networks before the wipe's boot attachment puts it on the boot network. State that a first install or a held operation on a shared boot NIC keeps the Machine NetworkReady=False until its boot attachment claim is released, and show the boot claims and the realizer's native VLAN and isolation in the ownership diagram. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/server-networking/README.md | 9 ++++++++- .../server-networking/diagrams/ownership.svg | 9 +++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md index 6d88d532..e5eb382c 100644 --- a/docs/enhancements/server-networking/README.md +++ b/docs/enhancements/server-networking/README.md @@ -194,6 +194,12 @@ already left the customer's networks when the wipe's boot attachment claim is made. On a shared boot NIC, a reinstall's boot attachment moves the port off the customer's networks for the install, and the Machine reports `NetworkReady=False` until the claim is released and NSO moves the port back. +The same holds for a first install on a shared boot NIC: that port's interface +stays unprogrammed, and `NetworkReady` stays `False`, until the installation's +boot attachment claim is released. A held operation keeps its claim, so the +Machine stays `NetworkReady=False`, with the hold as the reason, until the hold +is settled. On a dedicated boot NIC, the customer's ports are attached +independently of any install. #### Provisioning address @@ -579,7 +585,8 @@ These tests are required and not implemented: claim is gone. - End to end at a site with real switches: a relayed boot on an LACP member, handoff from the boot network to two customer networks in one NSO step, - isolation from a second customer, and release with the port back on the boot + isolation from a second customer, and release with the port off both + customer networks before the wipe's boot attachment puts it on the boot network. ## Production readiness review questionnaire diff --git a/docs/enhancements/server-networking/diagrams/ownership.svg b/docs/enhancements/server-networking/diagrams/ownership.svg index cb7a59ec..5cc6e526 100644 --- a/docs/enhancements/server-networking/diagrams/ownership.svg +++ b/docs/enhancements/server-networking/diagrams/ownership.svg @@ -1,5 +1,5 @@ -Who writes each network surfaceFleet writes the boot address claim and operation inputs, interface claims, and Machine network status. The site serves the reservation feed and the network boot. IPAM assigns provisioning and customer addresses; the boot address claim goes to IPAM for now and to NSO later. NSO writes interfaces and owns the boot network. The synchronizer is the only writer of Kea runtime configuration. Network operations owns Kea base configuration, relays, the provisioning VLAN, and each switch port base profile. NSO, through its physical realizer, is the only writer of a switch port network membership, boot and customer. +Who writes each network surfaceFleet writes the boot claims, operation inputs, interface claims, and Machine network status. The site serves the reservation feed and the network boot. IPAM assigns provisioning and customer addresses. Each network-booting operation has a boot attachment claim in NSO and, until NSO serves boot addresses, an address claim in IPAM. NSO writes interfaces and owns the boot network. The synchronizer is the only writer of Kea runtime configuration. Network operations owns Kea base configuration, relays, the provisioning VLAN, and each switch port base profile. NSO, through its physical realizer, is the only writer of a switch port network membership, boot and customer, its native VLAN, and isolation on the boot network. @@ -7,8 +7,8 @@ Fleet -Boot address claim -IPAM now; NSO later +Boot claims +Attachment, address Operation inputs Address, boot NIC @@ -28,7 +28,7 @@ Interfaces, boot network NSO realizer -Every port membership +Membership, VLAN, isolation Network operations Relays, VLANs, profiles @@ -47,6 +47,7 @@ Switch port One membership writer + From f0756f4c4f8a560f601a27f86e2e6f5eabc252fc Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 20:26:14 -0600 Subject: [PATCH 08/11] docs: Run DHCP and boot files centrally DHCP and the boot files move out of the site into a central cluster. Each site keeps its own Kea instances there, reached by the site's relays over its WAN link through a load-balancer address on UDP 67, with replies routed back to the relay address. Firmware boots over UEFI HTTP boot, never TFTP. The reservation feed stays TLS-only. State that the fence and the withdrawal proof are unchanged, because the feed still comes from the site's admitted operations and each report still names its instance and exact feed, and that a WAN outage fails safe. Every network boot now depends on the central cluster and the WAN link. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/server-networking/README.md | 125 ++++++++++++------ 1 file changed, 87 insertions(+), 38 deletions(-) diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md index e5eb382c..3c2eac36 100644 --- a/docs/enhancements/server-networking/README.md +++ b/docs/enhancements/server-networking/README.md @@ -37,10 +37,10 @@ operations](../device-operations/README.md): - **Boot network.** The boot network is a provider-owned NSO network. Each installation and wipe carries a provisioning address and the boot NIC from - Device inventory. Fleet's boot services answer that NIC over DHCP only while - the operation is admitted, boot it over PXE or iPXE into the installer, and - end the operation only after every DHCP instance reports the reservation - withdrawn. + Device inventory. Fleet's boot services, which run in a central cluster rather + than at the site, answer that NIC over relayed DHCP only while the operation + is admitted, boot it over UEFI HTTP boot into the installer, and end the + operation only after every DHCP instance reports the reservation withdrawn. - **Customer network attachment.** The Fleet provider for Metal asks NSO for one interface per requested Machine interface. NSO assigns addresses through IPAM. Handing the server to the customer is one NSO step on each switch port, @@ -70,7 +70,8 @@ server yet. That mode is planned. - Take provisioning addresses from IPAM and boot NICs from Device inventory. - Answer DHCP for a boot NIC only while an operation that network-boots it runs, and prove the answer stopped before the operation succeeds. -- Ship the site DHCP service as a deployable site component. +- Ship the DHCP service as a deployable component that runs in a central + cluster and serves each site through the site's relays. - Attach an allocated server's NICs to the boot network and the customer's networks through NSO, with NSO as the one writer of each switch port's network membership. @@ -129,7 +130,7 @@ server yet. That mode is planned. | Surface | Single writer | | --- | --- | | Which boot NIC holds a reservation, and when | The site, from its admitted operations | -| Network boot: PXE, iPXE, and the installer | The site's boot service | +| Network boot over UEFI HTTP boot: boot loader, iPXE, and the installer | The boot service, in the central cluster | | Provisioning addresses | IPAM, from claims the operation's requester makes; later NSO, through the boot network | | Kea runtime configuration | The synchronizer next to each Kea instance | | Kea base configuration: subnets, gateways, boot options | Network operations | @@ -167,7 +168,8 @@ Fleet keeps the boot services, because they follow custody and NSO's do not: - DHCP that serves a boot NIC's reservation only while its operation is admitted under custody's fence; -- PXE, iPXE, and the installer; and +- network boot over UEFI HTTP boot: the boot loader, iPXE, and the + installer; and - proof that every DHCP instance dropped the reservation before the operation succeeds. @@ -328,24 +330,63 @@ The site worker gates effects on those reports: reservation during the operation, and no instance's latest report, however old, serves any MAC or address the site ever published for the Device. An instance that went silent while serving one keeps the outcome unknown until - an operator retires the instance at the site. - -#### Site DHCP service - -The site DHCP service is a site component with these parts: - -- **Instances.** At least two Kea DHCPv4 servers, each paired with one - synchronizer. Each instance has a stable name and a fixed address that - relays can reach. + an operator retires the instance for the site. + +#### DHCP service + +The DHCP service runs in a central cluster, not at the site. Nothing for +provisioning runs at the site except the relays network operations already +operates. Each site has its own set of instances there, because each set +applies one site's feed and reports to that site alone. It has these parts: + +- **Instances.** At least two Kea DHCPv4 servers per site, each paired with one + synchronizer and each with a stable name. They share one load-balancer + address on UDP port 67, which the site's relays reach over the site's WAN + link. Kea accepts only relayed requests, so it needs no broadcast and no + host networking. Any instance may answer. Each applies the same feed and + reports under its own name, so the withdrawal proof covers every instance; + one that has not applied a reservation yet stays silent, and the firmware + retries. +- **Replies.** Kea answers each request at the relay address the request + carries, on UDP port 67. The central cluster must route to every relay + address, and each relay must accept replies from the cluster's egress + address, which is not always the load-balancer address it forwarded to. - **Base configuration.** Network operations owns it. It names the site's provisioning subnet, gateway, and boot options, accepts only relayed - requests from known relay addresses, and has no address pools. -- **Feed.** The site serves the feed over TLS, apart from the firmware-facing - boot listener. Each synchronizer authenticates with the site's token. The - token and the TLS key are delivered to the site as secrets, never in Git. + requests from the site's relay addresses, and has no address pools. +- **Feed.** Fleet serves each site's feed over TLS only, apart from the + firmware-facing boot listener. Each synchronizer authenticates with that + site's token. The token and the TLS key are delivered as secrets, never in + Git. Scaling down drains the instance first, until it reports an empty feed. +#### Boot files + +Firmware boots over UEFI HTTP boot, never TFTP, because the boot files now +cross from the central cluster to the site. The base configuration answers the +HTTP boot vendor class with the boot service's URL in the central cluster. The +boot service still answers a boot NIC only while its operation's boot window is +open, and the installer image is pinned by digest. Servers whose firmware +cannot boot over HTTP are not supported. + +#### Fence and withdrawal proof across the WAN + +Moving DHCP out of the site changes where Kea runs, not what decides a +reservation or proves it gone: + +- The feed is still computed from the site's admitted operations under + custody's fence, so only the operation holding the Device's stored fence has + a reservation, wherever Kea runs. +- Each report still names its instance and the exact feed it applied, so the + power-on gate and the withdrawal gate read the same evidence as before. +- A WAN outage makes the site's instances silent to Fleet. Fleet fails safe: + an operation waiting for a serving report does not power the server on, and + an operation whose reservation an instance last reported serving stays + unknown until that instance reports it withdrawn or an operator retires it. + An instance that cannot reach the feed keeps its last applied configuration, + and its last report still shows what it may be serving. + #### Network operations requirements Each site needs: @@ -363,11 +404,15 @@ Each site needs: its native VLAN. Configure the fallback timeout below the DHCP timeout of every firmware qualified at the site, measured during qualification. Vendors call this "LACP fallback", "no suspend-individual", or "force-up". -5. **DHCP relay.** On the gateway of each provisioning subnet, relay to every - Kea instance address, with the gateway address as the relay address. -6. **Reachability.** Provisioning subnets reach only the site's DHCP service and - boot service. They reach no customer network, no BMC network, and no - internet. +5. **DHCP relay.** On the gateway of each provisioning subnet, relay to the Kea + instances' load-balancer address in the central cluster, with the + gateway address as the relay address, and accept the replies described in + [DHCP service](#dhcp-service). +6. **Reachability.** Provisioning subnets reach only the central cluster's DHCP + and boot service addresses, over the site's WAN link. They reach no customer + network, no BMC network, and no other internet address. Measure the DHCP + round trip across the link against every firmware's DHCP timeout during + qualification. 7. **Spoofing protection.** DHCP snooping and source address binding on the provisioning VLAN, so a server cannot use another server's boot NIC MAC or provisioning address. @@ -375,8 +420,8 @@ Each site needs: which switch port each NIC is cabled to. 9. **Names.** Fleet inventory's cable records use the switch and port names the network owner uses. -10. **UEFI HTTP Boot.** The base configuration answers the HTTP Boot vendor - class with the boot service's URL, for firmware that boots over HTTP. +10. **UEFI HTTP boot.** Firmware on every server boots over HTTP. There is no + TFTP path. ### Customer network attachment @@ -548,9 +593,9 @@ unavailable](#when-nso-is-unavailable). ### Decisions for a person -- **Who operates the site DHCP service.** This enhancement ships Kea as a Fleet - site component, and network operations owns its base configuration. Someone - must be on call for it. +- **Who operates the DHCP service.** This enhancement ships Kea as a Fleet + component in a central cluster, and network operations owns its base + configuration. Someone must be on call for it. - **Dedicated or shared boot NIC.** See [Boot NIC choice](#boot-nic-choice) for how each option changes NSO's role. - **A port NSO cannot release.** When NSO stays unavailable or a claim never @@ -593,8 +638,8 @@ These tests are required and not implemented: ### How do operators enable or disable the feature? -A site enables the boot network by declaring synchronized DHCP and deploying the -site DHCP service. The declaration requires NSO's boot network at that +A site enables the boot network by declaring synchronized DHCP and deploying its +DHCP instances in the central cluster. The declaration requires NSO's boot network at that location: without it, every installation and wipe there waits with nothing sent. A location enables customer attachment when NSO supports `Physical` there. Disabling attachment refuses new Machines @@ -610,8 +655,9 @@ interfaces not `Programmed`, and releases waiting on interface claims. IPAM for addresses. NSO and its physical realizer for every port's attachment, including the boot network, so every installation, wipe, and recovery by -network boot needs NSO. Network operations for relays, VLANs, and port -profiles. +network boot needs NSO. The central cluster and the site's WAN link for DHCP +and boot files, so a site cannot network-boot a server while either is down. +Network operations for relays, VLANs, and port profiles. ### Does the feature add API types or calls? @@ -625,10 +671,13 @@ claim per Machine interface. - 2026-11-25: Proposed. - 2026-11-25: NSO owns the boot network and every port's attachment; the direct IPAM claim becomes the interim address source. +- 2026-11-25: DHCP and boot files move to a central cluster, over relays and + UEFI HTTP boot. ## Drawbacks -- Every network boot depends on the site DHCP service and its reports. +- Every network boot depends on the central cluster, the site's WAN link, the + DHCP service, and its reports. - Customer attachment and every network boot wait on NSO's physical mode, and on NSO being available. - Installations carry static network configuration, so a customer who changes @@ -648,13 +697,13 @@ claim per Machine interface. proof, which Fleet already has. - **DHCP on customer networks.** NSO has no DHCP, and a server would get a customer address before Fleet hands it off. -- **Central DHCP outside the site.** Possible behind the same feed, but each - boot would depend on a link out of the site. +- **DHCP at each site.** A boot would not depend on the WAN link, but every + site would run and operate provisioning services of its own. ## Infrastructure needed The lab can run Kea, the synchronizer, and the feed against emulated DHCP -clients, IPAM, and NSO's API with a test realizer. Real switches are needed for +clients, with Kea beside the emulated site because the lab has no WAN link, IPAM, and NSO's API with a test realizer. Real switches are needed for relays, LACP fallback, port isolation, the realizer, and moving a port between the boot network and customer networks. From 0185097420c218da69849c518573d1db330d7354 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 21:10:44 -0600 Subject: [PATCH 09/11] docs: Declare DHCP instances and fix the WAN case The withdrawal proof is over a declared set of instance names: the feed serves and accepts reports only from a declared name, and removing a name is the only way to stop the proof from waiting on an instance. A WAN outage cuts the relays off from the central cluster, so boots stall; a silent instance keeps operations unknown. The boot service identifies the booting NIC by the MAC in the request path, and whether boot files need HTTPS across the WAN is a decision for a person. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/server-networking/README.md | 85 ++++++++++++------- .../server-networking/diagrams/ownership.svg | 4 +- 2 files changed, 55 insertions(+), 34 deletions(-) diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md index 3c2eac36..3ecf1304 100644 --- a/docs/enhancements/server-networking/README.md +++ b/docs/enhancements/server-networking/README.md @@ -326,27 +326,35 @@ The site worker gates effects on those reports: 1. Before it powers on the server for a network boot, it waits for a report, accepted after the operation's boot window opened, that serves the boot NIC at the operation's address. -2. Before it reports success, it waits until at least one instance served the - reservation during the operation, and no instance's latest report, however - old, serves any MAC or address the site ever published for the Device. An - instance that went silent while serving one keeps the outcome unknown until - an operator retires the instance for the site. +2. Before it reports success, it waits until at least one of the site's + declared instances served the reservation during the operation, and every + declared instance's latest report is of a feed issued after the reservation + was published and serves no MAC or address the site ever published for the + Device. A declared instance that never reports, or went silent while it may + serve one, keeps the outcome unknown until an operator removes it from the + declared set. #### DHCP service -The DHCP service runs in a central cluster, not at the site. Nothing for -provisioning runs at the site except the relays network operations already -operates. Each site has its own set of instances there, because each set -applies one site's feed and reports to that site alone. It has these parts: +The DHCP service runs in a central cluster, not at the site, and so does the +boot service. No DHCP or boot service runs at the site; the site's relays, +which network operations already operates, carry the boot traffic there. Each +site has its own set of instances, because each set applies one site's feed +and reports to that site alone. It has these parts: - **Instances.** At least two Kea DHCPv4 servers per site, each paired with one synchronizer and each with a stable name. They share one load-balancer address on UDP port 67, which the site's relays reach over the site's WAN link. Kea accepts only relayed requests, so it needs no broadcast and no host networking. Any instance may answer. Each applies the same feed and - reports under its own name, so the withdrawal proof covers every instance; - one that has not applied a reservation yet stays silent, and the firmware - retries. + reports under its own name; one that has not applied a reservation yet stays + silent, and the firmware retries. +- **Declared set.** The site declares its instances' names. The feed serves and + accepts reports only from a declared name, so an undeclared replica never + receives a reservation to serve. Scaling up declares the new name first. + Scaling down drains the instance until it reports an empty feed, then removes + its name. Removing a name is the only way to stop the withdrawal proof from + waiting on that instance. - **Replies.** Kea answers each request at the relay address the request carries, on UDP port 67. The central cluster must route to every relay address, and each relay must accept replies from the cluster's egress @@ -359,16 +367,22 @@ applies one site's feed and reports to that site alone. It has these parts: site's token. The token and the TLS key are delivered as secrets, never in Git. -Scaling down drains the instance first, until it reports an empty feed. - #### Boot files Firmware boots over UEFI HTTP boot, never TFTP, because the boot files now cross from the central cluster to the site. The base configuration answers the -HTTP boot vendor class with the boot service's URL in the central cluster. The -boot service still answers a boot NIC only while its operation's boot window is -open, and the installer image is pinned by digest. Servers whose firmware -cannot boot over HTTP are not supported. +HTTP boot vendor class with the boot service's URL in the central cluster. + +The boot service identifies the booting NIC by the MAC address in the request +path, never by the request's source address, which relays and address +translation can change. It answers that NIC only while its operation's boot +window is open. The boot files hold no secrets, and the boot service serves +the installer from an image pinned by digest. Over plain HTTP that pin protects +the files only if the path between the site and the central cluster is +private; whether boot files require HTTPS, which needs the boot service's CA in +each server's firmware, is listed under [Decisions for a +person](#decisions-for-a-person). Servers whose firmware cannot boot over HTTP +are not supported. #### Fence and withdrawal proof across the WAN @@ -378,14 +392,16 @@ reservation or proves it gone: - The feed is still computed from the site's admitted operations under custody's fence, so only the operation holding the Device's stored fence has a reservation, wherever Kea runs. -- Each report still names its instance and the exact feed it applied, so the - power-on gate and the withdrawal gate read the same evidence as before. -- A WAN outage makes the site's instances silent to Fleet. Fleet fails safe: - an operation waiting for a serving report does not power the server on, and - an operation whose reservation an instance last reported serving stays - unknown until that instance reports it withdrawn or an operator retires it. - An instance that cannot reach the feed keeps its last applied configuration, - and its last report still shows what it may be serving. +- Each report names a declared instance and the exact feed it applied, so the + power-on gate and the withdrawal gate read the same evidence as before, over + a set of instances fixed in advance rather than whichever replica answered. +- A WAN outage cuts the site's relays off from the central cluster. The feed + and the reports are unaffected, but no DHCP request or boot file reaches the + site, so boots stall: firmware gets no answer, and an operation that cannot + boot ends unknown, never succeeded. +- An instance that cannot reach the feed, or goes silent, keeps its last + applied configuration. Its last report still shows what it may be serving, + so the withdrawal gate keeps any operation it may serve unknown. #### Network operations requirements @@ -593,6 +609,10 @@ unavailable](#when-nso-is-unavailable). ### Decisions for a person +- **HTTPS for boot files.** Over plain HTTP, boot files are only as trustworthy + as the path between the site and the central cluster. HTTPS needs the boot + service's CA enrolled in every server's firmware. Decide which the platform + requires. - **Who operates the DHCP service.** This enhancement ships Kea as a Fleet component in a central cluster, and network operations owns its base configuration. Someone must be on call for it. @@ -639,10 +659,10 @@ These tests are required and not implemented: ### How do operators enable or disable the feature? A site enables the boot network by declaring synchronized DHCP and deploying its -DHCP instances in the central cluster. The declaration requires NSO's boot network at that -location: without it, every installation and wipe there waits with nothing -sent. A location enables customer attachment when NSO supports `Physical` -there. Disabling attachment refuses new Machines +DHCP instances in the central cluster, whose names it declares. The declaration +requires NSO's boot network at that location: without it, every installation +and wipe there waits with nothing sent. A location enables customer attachment +when NSO supports `Physical` there. Disabling attachment refuses new Machines with interfaces and leaves existing ones attached. ### What must operators monitor? @@ -702,8 +722,9 @@ claim per Machine interface. ## Infrastructure needed -The lab can run Kea, the synchronizer, and the feed against emulated DHCP -clients, with Kea beside the emulated site because the lab has no WAN link, IPAM, and NSO's API with a test realizer. Real switches are needed for +The lab can run IPAM, NSO's API with a test realizer, and Kea, the +synchronizer, and the feed against emulated DHCP clients. The lab has no WAN +link, so its Kea sits beside the emulated site. Real switches are needed for relays, LACP fallback, port isolation, the realizer, and moving a port between the boot network and customer networks. diff --git a/docs/enhancements/server-networking/diagrams/ownership.svg b/docs/enhancements/server-networking/diagrams/ownership.svg index 5cc6e526..4d42a976 100644 --- a/docs/enhancements/server-networking/diagrams/ownership.svg +++ b/docs/enhancements/server-networking/diagrams/ownership.svg @@ -1,5 +1,5 @@ -Who writes each network surfaceFleet writes the boot claims, operation inputs, interface claims, and Machine network status. The site serves the reservation feed and the network boot. IPAM assigns provisioning and customer addresses. Each network-booting operation has a boot attachment claim in NSO and, until NSO serves boot addresses, an address claim in IPAM. NSO writes interfaces and owns the boot network. The synchronizer is the only writer of Kea runtime configuration. Network operations owns Kea base configuration, relays, the provisioning VLAN, and each switch port base profile. NSO, through its physical realizer, is the only writer of a switch port network membership, boot and customer, its native VLAN, and isolation on the boot network. +Who writes each network surfaceFleet writes the boot claims, operation inputs, interface claims, and Machine network status. Fleet serves each site's reservation feed and network boot from a central cluster. IPAM assigns provisioning and customer addresses. Each network-booting operation has a boot attachment claim in NSO and, until NSO serves boot addresses, an address claim in IPAM. NSO writes interfaces and owns the boot network. The synchronizer is the only writer of Kea runtime configuration. Network operations owns Kea base configuration, relays, the provisioning VLAN, and each switch port base profile. NSO, through its physical realizer, is the only writer of a switch port network membership, boot and customer, its native VLAN, and isolation on the boot network. @@ -33,7 +33,7 @@ Network operations Relays, VLANs, profiles -Site +Boot services Reservation feed From admitted work From 22d871961b9022b5cc549684abad3d6fead5f981 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 21:12:06 -0600 Subject: [PATCH 10/11] docs: Stop an instance before undeclaring it A removed name drops its instance from the withdrawal proof, so an operator removes it only after the instance is stopped and out of the load balancer. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/server-networking/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md index 3ecf1304..f4f0dee2 100644 --- a/docs/enhancements/server-networking/README.md +++ b/docs/enhancements/server-networking/README.md @@ -331,8 +331,8 @@ The site worker gates effects on those reports: declared instance's latest report is of a feed issued after the reservation was published and serves no MAC or address the site ever published for the Device. A declared instance that never reports, or went silent while it may - serve one, keeps the outcome unknown until an operator removes it from the - declared set. + serve one, keeps the outcome unknown until an operator stops it and then + removes it from the declared set. #### DHCP service @@ -354,7 +354,9 @@ and reports to that site alone. It has these parts: receives a reservation to serve. Scaling up declares the new name first. Scaling down drains the instance until it reports an empty feed, then removes its name. Removing a name is the only way to stop the withdrawal proof from - waiting on that instance. + waiting on that instance, and an operator removes it only after that + instance is stopped and out of the load balancer, so a removed instance can + never answer with a reservation the proof no longer watches. - **Replies.** Kea answers each request at the relay address the request carries, on UDP port 67. The central cluster must route to every relay address, and each relay must accept replies from the cluster's egress @@ -401,7 +403,8 @@ reservation or proves it gone: boot ends unknown, never succeeded. - An instance that cannot reach the feed, or goes silent, keeps its last applied configuration. Its last report still shows what it may be serving, - so the withdrawal gate keeps any operation it may serve unknown. + so the withdrawal gate keeps any operation it may serve unknown until an + operator stops it, takes it out of the load balancer, and removes its name. #### Network operations requirements From f68d0c8c24063c10ac00decced6e02dae9ece2c9 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Wed, 25 Nov 2026 21:13:05 -0600 Subject: [PATCH 11/11] docs: Enforce the undeclare order where visible The withdrawal proof does not pass while a removed instance still contacts the feed. An instance whose synchronizer stopped while Kea keeps serving is not visible to the feed, so that case still rests on the operator. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/server-networking/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/enhancements/server-networking/README.md b/docs/enhancements/server-networking/README.md index f4f0dee2..f933e401 100644 --- a/docs/enhancements/server-networking/README.md +++ b/docs/enhancements/server-networking/README.md @@ -356,7 +356,12 @@ and reports to that site alone. It has these parts: its name. Removing a name is the only way to stop the withdrawal proof from waiting on that instance, and an operator removes it only after that instance is stopped and out of the load balancer, so a removed instance can - never answer with a reservation the proof no longer watches. + never answer with a reservation the proof no longer watches. Fleet enforces + the order where it can see it: the feed records every request from an + undeclared name, and the withdrawal proof does not pass while a removed + instance still contacts the feed. The feed cannot see the cluster's Pods, + so an instance whose synchronizer stopped while Kea keeps serving is not + detected; for that case the order still rests on the operator. - **Replies.** Kea answers each request at the relay address the request carries, on UDP port 67. The central cluster must route to every relay address, and each relay must accept replies from the cluster's egress