From f1e832f3db86cf780b6d963c3c9e39d3e49ee9b5 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Thu, 26 Nov 2026 13:44:48 -0600 Subject: [PATCH 01/12] docs: Propose boot delivery methods behind one install contract Define network boot and Redfish virtual media as boot delivery methods that a site declares and a machine class can constrain. Both meet one contract: exact inputs before effects, prepare under the custody fence, verify the booted input by an operation token, prove the delivery path closed, and treat any unproven step as unknown. Cover commissioning checks of BMC virtual media capability, addressing from IPAM under virtual media, media isolation, failure modes, and open questions. Co-Authored-By: Claude Opus 5.5 --- docs/README.md | 1 + docs/enhancements/boot-delivery/README.md | 546 ++++++++++++++++++++++ 2 files changed, 547 insertions(+) create mode 100644 docs/enhancements/boot-delivery/README.md diff --git a/docs/README.md b/docs/README.md index 61100183..ed5fa2bf 100644 --- a/docs/README.md +++ b/docs/README.md @@ -74,6 +74,7 @@ Each topic folder has a `README.md` entry point: | [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 | | [OS images and bootstrap data](enhancements/machine-images/README.md) | Proposed image catalog and sealed bootstrap data for installs | +| [Boot delivery](enhancements/boot-delivery/README.md) | Proposed network boot and virtual media behind one install contract | | [Proposals](proposals/fleet-management/README.md) | Broader service proposals, examples, diagrams, and provenance | ## Read implementation and design separately diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md new file mode 100644 index 00000000..9cc50d11 --- /dev/null +++ b/docs/enhancements/boot-delivery/README.md @@ -0,0 +1,546 @@ +--- +status: provisional +stage: alpha +--- + +# Boot delivery methods + +[Documentation overview](../../README.md) ยท [Functionality guide](../../functionality/README.md) + +- [Summary](#summary) +- [Motivation](#motivation) +- [Proposal](#proposal) +- [Design details](#design-details) + - [The delivery contract](#the-delivery-contract) + - [Network boot](#network-boot) + - [Virtual media](#virtual-media) + - [Choosing a method](#choosing-a-method) + - [Commissioning checks](#commissioning-checks) + - [Addresses](#addresses) + - [Isolation and security](#isolation-and-security) + - [Failure modes](#failure-modes) + - [Acceptance tests](#acceptance-tests) +- [Production readiness review questionnaire](#production-readiness-review-questionnaire) +- [Implementation history](#implementation-history) +- [Drawbacks](#drawbacks) +- [Alternatives](#alternatives) +- [Open questions](#open-questions) +- [Infrastructure needed](#infrastructure-needed) + +## Summary + +To install, wipe, or burn in a server, Fleet boots it from an image. A **boot +delivery method** is how that image reaches the server. This enhancement +defines two methods behind one contract: + +- **Network boot.** Fleet answers the server's boot NIC over relayed DHCP and + boots it over UEFI HTTP boot, only while the operation runs. +- **Virtual media.** Fleet tells the server's BMC, through Redfish, to mount + boot media from a URL and boot from it once. + +Each site declares the methods it offers. A provider machine class can require +one. Customers never choose a method, and the Metal API does not change. + +Custody, admission, operations, power, image selection, and sealed bootstrap +data are the same for both methods. Each method only prepares delivery, proves +what the server booted, and proves that the delivery path is closed afterwards. + +Network boot is built first. Virtual media is added later behind the same +contract. This enhancement is a proposal. Nothing in it is implemented. + +## Motivation + +The [boot network reservations][boot-network-pr] and [server +networking][server-networking-pr] proposals define network boot. Network boot +needs a provisioning VLAN at the site, relays on the site's routers, a central +DHCP service, and a WAN link between them. A site that does not have those yet +cannot install any server. That includes the servers that would run the site's +own infrastructure. + +Many BMCs can mount boot media from a URL. That needs only the BMC network, +which every site has before it has anything else. Treating virtual media as a +separate install path would duplicate custody, fencing, and recovery, so it +needs to fit the same contract as network boot. + +### Goals + +- One install contract that every delivery method meets. +- A site declares its methods. A machine class can require one. +- Every method proves what the server booted and that the delivery path closed. +- An uncertain prepare, verify, or release never becomes success. +- Commissioning records which methods a server's BMC can use, and Fleet never + attempts a method the server cannot use. +- Virtual media installs get their addresses from the same owner as network + boot installs. +- Virtual media never exposes one customer's bootstrap data to another. + +### Non-goals + +- Letting a customer choose a method per install. +- Customer access to virtual media, through a provisioning session or any other + path. +- Delegated customer PXE ([#59][pxe-pr]) at a site that offers only virtual + media. Delegated PXE needs network boot. +- Building boot media. The provider's image pipeline builds them, as + [#184][images-pr] describes for every other image artifact. +- Vendor APIs other than Redfish, including IPMI virtual media. +- Legacy BIOS boot. +- Secure Boot and measured boot. + +## Proposal + +The site worker that runs an operation delegates three steps to the +operation's delivery method: prepare, verify, and release. Everything before +and after those steps is the same for every method. + +| Step | Network boot | Virtual media | +| --- | --- | --- | +| Prepare | Boot attachment, provisioning address, DHCP reservation served, one-time UEFI HTTP boot | Boot and config media inserted and read back, one-time boot from media | +| Verify | The install report carries the token served only to that NIC | The install report carries the token written only to that operation's config medium | +| Release | Every declared DHCP instance reports the reservation dropped | Every media device reads back ejected, and the URLs stop serving | + +Both methods also read back that the one-time boot override is cleared. + +### User stories + +- An operator brings up a new site. Before its provisioning network and relays + exist, Fleet installs the site's own infrastructure servers over virtual + media, using only the BMC network. +- A provider sells many identical servers at a site with network boot. Fleet + installs them in parallel over the host NICs, with no traffic through the + BMCs. +- A provider offers a machine class only on virtual media. Fleet allocates a + customer only a server whose BMC passed the virtual media check. +- A BMC accepts a mount but never reports it ejected. The operation stays + unknown and the server stays out of use until the media are proven gone. + +### Relationship to other proposals + +- **[Device custody](../device-operations/README.md):** unchanged. Each + delivery step runs inside an admitted operation, under its fence, and is + journaled like every other step. Settlement gains one rule, described in + [Settling a hold](#settling-a-hold). +- **Boot network reservations ([#87][boot-network-pr]) and server networking + ([#186][server-networking-pr]):** become the network boot method. Their + evidence gates are its verify and release steps. Two changes: a site can + offer more than one method, and the one-time boot override is read back after + release. +- **Central DHCP ([#197][central-dhcp-pr]):** its proof that every declared Kea + instance dropped a reservation is the network boot release step. +- **OS images and bootstrap data ([#184][images-pr]):** unchanged for the + customer. An image gains a boot medium artifact to be offered on virtual + media. The sealed payload is delivered on a config medium instead of from the + boot service. +- **Commissioning ([#185][commissioning-pr]):** commissioning gains a delivery + check, and capacity gains one more `Available` condition. +- **PXE installation ([#59][pxe-pr]):** its customer Redfish gateway already + refuses virtual media. That stays true. + +## Design details + +Names are provisional. Examples use synthetic data. + +### The delivery contract + +Every delivery method meets all of these rules. A method that cannot meet one +is not allowed. + +1. **Exact inputs first.** The operation records its method, image digest, + bootstrap digest, and host network configuration before any effect. A + method adds its own inputs to that record, such as a provisioning address, + and never reads a mutable source after admission. +2. **Prepare under the fence.** The worker prepares delivery only while the + operation holds the Device's current fence. Each prepare step is journaled + before it is sent, like every other step. +3. **Verify what booted.** Success needs evidence that the server booted this + operation's input, not only that a boot happened. Both methods use a random + token that only this operation's delivery can carry. The install report + must return that token with the image and bootstrap digests, as + [#184][images-pr] defines. +4. **Prove release.** Before the operation succeeds, the worker proves that the + delivery path can no longer reach the server. Release proof covers every + delivery that the site ever prepared for the Device, not only this + operation's. +5. **Unknown is not ready.** A prepare, verify, or release step whose result + the worker cannot prove ends the operation `OutcomeUnknown`, with a recovery + hold. It never ends `Succeeded`. + +A method also defines what it needs from the site, from the server's BMC, and +from the image. Commissioning checks the BMC part. + +#### Settling a hold + +A held installation or wipe is settled by a later operation of the same kind +that succeeds, as [device custody](../device-operations/README.md#unknown-outcomes) +defines. A settling operation proves release only for its own method. So while +a hold exists, the coordinator admits a settling operation only if it uses the +held operation's method. Otherwise it refuses with `DeliveryMethodMismatch`. + +### Network boot + +Network boot is the method in [#87][boot-network-pr] and +[#186][server-networking-pr], with the central DHCP service in +[#197][central-dhcp-pr]. This enhancement adds no new behavior to it except the +override check. + +- **Prepare.** The requester creates the boot attachment claim and the + provisioning address claim. The site publishes the reservation and waits for + a DHCP report that serves it. The worker sets the UEFI HTTP boot target and a + one-time boot, then powers the server on. +- **Verify.** The boot service serves the boot script, with the boot + admission's token, only to that NIC while the admission is open. The install + report returns the token. +- **Release.** Every declared DHCP instance reports a feed, issued after the + reservation was published, that serves no address the site ever published + for the Device. The worker reads back that no one-time boot override is set. + The requester then deletes the claims, under the rules in + [#186][server-networking-pr]. + +The site needs a provisioning network on the boot NIC, relays to the central +DHCP service, and a WAN link. The BMC needs UEFI HTTP boot. + +### Virtual media + +Virtual media mounts two media on the server's BMC: + +- **Boot medium.** A bootable image built by the provider's image pipeline and + listed in the image's artifact manifest by digest. It holds the installer + and the image, and nothing specific to a customer or an operation. It can be + cached and is served to any BMC at the site. +- **Config medium.** A small medium the worker renders for one operation. It + holds the rendered bootstrap payload, the host network configuration, and + the operation's token, in the format the image reads, such as a NoCloud + volume. + +An image with no boot medium in its manifest is not offered on virtual media. +Admission refuses it with `ImageIncompatible`. + +```mermaid +sequenceDiagram + participant W as Site worker + participant S as Media service + participant B as BMC + participant H as Server + W->>S: open the operation's media window + W->>B: eject any inserted media, read back ejected + W->>B: insert boot medium and config medium + W->>B: read back both inserted, with the exact URLs + W->>B: set a one-time boot from media, read it back, power on + B->>S: fetch media over HTTPS + H->>H: install the image, read the payload back + H-->>W: install report with the token and digests + W->>S: close the window, URLs stop serving + W->>B: eject every device, read back ejected and the override cleared +``` + +- **Prepare.** The media service serves media to BMCs, at the endpoint the + site's enrollment names. The worker opens a window for the operation on it. The window serves the + boot medium at a URL derived from its digest and the config medium at a URL + that carries a random 256-bit token. Before inserting, the worker ejects any + media already inserted on the server and reads back that they are gone. It + then inserts both media, reads back that each device reports the exact URL, + sets a one-time boot from media, reads it back, and powers the server on. +- **Verify.** The config medium is the only place the operation's token + exists. The install report must return it with the image and bootstrap + digests. +- **Release.** The worker closes every window the media service holds for the + Device, so no URL for it serves again. It ejects every virtual media device + on the server, then reads back that every device reports no media and that + no boot override is set. Release covers every window and every device, so it + also covers media that an earlier, held operation inserted. + +The site deletes the rendered config medium when the operation ends or a +higher fence stops the worker, as [#184][images-pr] requires for every copy of +a bootstrap payload. + +Virtual media needs only the BMC network. It needs no provisioning VLAN, boot +attachment claim, provisioning address, relay, or DHCP. The switch port does +not move during an install. + +#### Install report + +The install report travels over one of two channels. The image's +qualification names which one it supports: + +- **Network.** The installer reaches the site's report endpoint with the + Machine's addresses. See [Addresses](#addresses). +- **Console.** The installer writes the report to the serial console, and the + worker reads it through the BMC. Commissioning burn-in already reports this + way. A wipe or a burn-in has no Machine addresses, so it uses the console. + +#### BMCs with one media device + +A BMC that can mount only one medium gets a single medium per operation that +combines boot and config. Because it carries bootstrap data, it is served only +under the rules for config media. + +### Choosing a method + +#### Site declaration + +A site's enrollment lists the methods it offers, in order of preference, with +what each method needs: + +```yaml +site: site-example-1 +deliveryMethods: + - method: NetworkBoot + dhcp: Synchronized + - method: VirtualMedia + mediaEndpoint: https://media.site-example-1.example.net + addresses: Static # Static | DataNetwork + reportChannels: [Console, Network] +``` + +Adding a method takes effect for new operations. Removing a method is refused +while any operation that used it has not ended or still holds the Device. + +#### Machine class + +A provider machine class definition can list the methods its servers may use. +Without a list, every method the site offers is allowed. The allocator matches +a class only to capacity that is qualified for at least one allowed method, so +a server that cannot use the class's method is never allocated to it. + +#### Selecting the method for an operation + +The requester selects the method when it creates the operation: the first +method in the site's order that the class allows and the server's latest +commissioning qualified. It records the method in the operation. Staff +operations have no class, so the class rule is skipped for them. A +commissioning selects its burn-in method from its own delivery phase. + +Admission checks the recorded method again under the custody update and refuses +an operation whose method: + +- the site does not offer, with `DeliveryMethodNotOffered`; +- the class does not allow, with `DeliveryMethodNotAllowed`; +- the server is not qualified for, with `DeliveryMethodUnqualified`; or +- does not match the operation's other inputs, for example a network boot + without a boot network input, or a virtual media operation with one. + +Each refusal sends nothing. The method never changes after admission, and a +reinstall selects again under the same rules. + +### Commissioning checks + +The commissioning in [#185][commissioning-pr] gains a delivery phase, after +firmware and before burn-in. It checks every method the site offers. + +For virtual media, the worker reads the BMC's virtual media devices and records: + +- the media types each device accepts, and how many media it can mount at once; +- whether the BMC offers the insert and eject actions; +- the transfer protocols it accepts, and whether HTTPS is one of them; +- whether it can verify the media service's certificate; and +- whether it allows a one-time boot from each media type. + +Then it probes. It inserts the site's probe medium, which is small and holds +no data, from the media service over HTTPS. It reads back that the BMC +reports it inserted and that the media service saw the fetch, then ejects it and +reads back that it is gone. The probe is the only proof that the BMC can reach +the media service. + +For network boot, the worker records whether the BMC accepts a UEFI HTTP boot +target and a one-time network boot. + +Commissioning evidence records each method as qualified or not, with the first +check that failed. Burn-in then boots with the first qualified method. If the +server qualifies for none of the site's methods, the commissioning succeeds +with result `Failed`, in the delivery phase. If a probe cannot be proven +ejected, the commissioning ends `OutcomeUnknown`, like any other step. + +The capacity projector adds one condition to `Available`: the server is +qualified for at least one method the site offers. Otherwise `Available` is +`False` with `NoDeliveryMethod`. It also keeps `Available` `False` with +`MediaInserted` while discovery reports inserted media or a set boot override +on a server with no active operation. + +### Addresses + +The installed operating system needs addresses with either method. The firmware +needs one only for network boot. + +| Address | Network boot | Virtual media | Owner | +| --- | --- | --- | --- | +| Firmware provisioning address | Yes, for the boot window | None | IPAM, through the operation's claim | +| Machine interface addresses | Yes | Yes | IPAM, through NSO interface claims on the Machine | + +[Server networking][server-networking-pr] already pins the host network +configuration, with each interface's MAC, addresses, gateway, and MTU, into +the installation by digest. Virtual media uses that configuration in one of two +ways: + +- **The data network provides the addresses.** The network owner's DHCP on the + customer's network serves the Machine's addresses. The config medium carries + none. +- **Fleet supplies static configuration.** The worker writes the pinned host + network configuration onto the config medium in the image's format, such as + a NoCloud network configuration or a Talos machine configuration. + +The site's enrollment chooses one per site. In both cases IPAM is the one +source of the addresses. Fleet copies them and never chooses one. + +No boot attachment moves the port under virtual media, so NSO attaches the +Machine's interfaces before the install. An install that takes its addresses +from the data network, or reports over the network, waits until every +interface is `Programmed`. A wipe and a burn-in hold no Machine, so under +virtual media they run with no network. + +### Isolation and security + +- **No boot network.** A virtual media install never puts the switch port on a + provisioning network, so it cannot reach another server's boot traffic. +- **One BMC, its own media.** Only the operation's worker inserts media, and it + inserts them only on the Device it holds under custody, at the BMC endpoint + in the operation's Device snapshot. No customer-facing session can insert + media. +- **Reachability.** The media endpoint must be reachable from the site's BMC + network. It accepts requests only from that network's addresses, and serves + only media for open windows. +- **Public boot media.** A boot medium holds no customer or operation data, so + any BMC at the site may fetch it. +- **Scoped config media.** A config medium is served only over HTTPS, only at + its token URL, and only while its window is open. The window closes when the + install report arrives, when its deadline passes, or when a higher fence + stops the worker. A BMC that cannot fetch over HTTPS can use virtual media + only for operations that carry no bootstrap data and report over the + console, such as a wipe or a burn-in. Over plain HTTP the token can be read + on the BMC network, so a network report could be forged. +- **No secrets in records.** Journals, evidence, and logs record media digests, + never a token or a config medium URL. + +### Failure modes + +| Failure | Effect | +| --- | --- | +| The BMC accepts an insert but never reports the media inserted | Nothing is powered on. The worker ejects and reads back. If the eject cannot be proven, the operation ends unknown. | +| The BMC reports media inserted after eject, or reports stale state | Release cannot be proven. The operation ends unknown and the server stays held. | +| The BMC ignores the one-time boot and boots from disk | No install report arrives. The operation ends unknown at its deadline. | +| The transfer through the BMC is slow | The install takes longer. Virtual media deadlines are set per site, and a large image may not fit them. | +| Many installs at once | Each BMC streams its media from the media service, so the service and the BMC network carry every install. Network boot carries it on the host NICs instead. | +| A WAN outage between a site and the central cluster | Network boot stops at that site, because DHCP and boot files are central. Virtual media keeps working if the media service runs at the site with a local copy of the media. | +| The media service is down | Prepare fails before power-on. Nothing reached the server, so the operation fails, unless an insert was sent, in which case the worker reads back and ejects first. | + +#### Choosing a method as an operator + +| Need | Better method | +| --- | --- | +| Install a site's own servers before its provisioning network exists | Virtual media | +| A site with no relay or WAN path to the central DHCP service | Virtual media | +| Many identical servers installed in parallel | Network boot | +| Large images, or installs that must finish quickly | Network boot | +| Delegated customer PXE | Network boot | +| BMCs with unreliable virtual media | Network boot | + +### Acceptance tests + +These tests are required and not implemented: + +- A virtual media install succeeds, and afterwards every device reads back + ejected, the override reads back cleared, and the config URL no longer + serves. +- The install report carries another operation's token, and the operation does + not succeed. +- An eject cannot be proven, and the operation ends `OutcomeUnknown`. A later + install over network boot is refused while the hold exists, and a later + install over virtual media settles it. +- A delayed worker tries to insert media after a newer operation is admitted, + and the site journal refuses it. +- A server whose BMC failed the virtual media check is never allocated to a + class that requires virtual media. +- An operation records a method that the site does not offer, and admission + refuses it without sending anything. +- A BMC without HTTPS is refused an install with bootstrap data over virtual + media. +- A fetch from outside the BMC network, or after the window closes, gets + nothing. +- The network boot tests in [#87][boot-network-pr] and [#197][central-dhcp-pr] + still pass through the shared contract. + +## Production readiness review questionnaire + +These controls are proposed, not implemented. + +### How do operators enable or disable the feature? + +Per site, through the enrollment's method list. Removing a method waits until +no operation that used it holds a Device. + +### Does enabling the feature change any default behavior? + +No. A site with only network boot behaves as [#186][server-networking-pr] +describes. + +### What must operators monitor? + +Operations held on unproven release, per method. Servers reporting +`MediaInserted` or `NoDeliveryMethod`. Media service fetch latency, errors, +and requests from outside the BMC network. Virtual media installs near their +deadline. + +### What does the feature depend on? + +Redfish virtual media on each BMC, a media service reachable from the BMC +network, and boot media in the image catalog. + +### Does the feature add API types or calls? + +No new kinds. Operations gain a delivery method input. Site enrollment and the +provider machine class definition gain a method list. Each virtual media +install adds a few Redfish calls and two media fetches. + +## Implementation history + +- 2026-11-26: Proposed. + +## Drawbacks + +- Two methods mean two sets of BMC behavior to qualify, test, and monitor. +- BMC virtual media is slower and less consistent across vendors than network + boot. +- Every virtual media image needs a boot medium artifact as well as its + network boot artifacts. +- A site's media service is a new service on the BMC network. + +## Alternatives + +- **The customer chooses per install.** Rejected. The method depends on the + site and the hardware, which the customer cannot see. +- **One combined medium per operation for every BMC.** Simpler, but the whole + image would be served under a per-operation URL and could not be cached. + Kept only for BMCs with one media device. +- **Bootstrap data on the boot medium.** Rejected. One customer's data would + sit on media that any BMC at the site may fetch. +- **Virtual media as a separate install path.** Rejected. It would duplicate + custody, fencing, and recovery. +- **Network boot with static addresses and no DHCP.** Firmware support is + limited, and it still needs a provisioning network. + +## Open questions + +- **Report channel.** Whether the first virtual media images report over the + console, over the network, or both. +- **Certificate verification.** Whether a BMC that fetches over HTTPS but + cannot verify the media service's certificate may receive a config medium. +- **Where the media service runs.** At each site, which survives a WAN outage, + or centrally, which serves BMCs over the management WAN. +- **Images that fetch over the network.** Some installers download the image + during the install. Whether those are offered on virtual media when the data + network provides addresses. +- **Deadlines.** The default virtual media deadline, and whether it depends on + image size. + +## Infrastructure needed + +Testing needs a site with both methods, BMC emulators whose virtual media can +fail to mount, report stale state, and refuse to eject, and a media service on +an emulated BMC network. Hardware qualification needs servers from each BMC +vendor the provider plans to support, with reachable BMCs. + +[boot-network-pr]: https://github.com/datum-cloud/fleet/pull/87 +[server-networking-pr]: https://github.com/datum-cloud/fleet/pull/186 +[central-dhcp-pr]: https://github.com/datum-cloud/fleet/pull/197 +[images-pr]: https://github.com/datum-cloud/fleet/pull/184 +[commissioning-pr]: https://github.com/datum-cloud/fleet/pull/185 +[pxe-pr]: https://github.com/datum-cloud/fleet/pull/59 From dd0cddf566ad7e9621741b2d4a9b20eb21dd0c62 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Thu, 26 Nov 2026 14:21:55 -0600 Subject: [PATCH 02/12] docs: Tighten boot delivery hold and release rules A settling operation reuses the held operation's method, and admission skips the site, class, and qualification checks for it. The custody settlement table is restated accurately. The media service opens windows only under the Device's stored fence, closes them at the fence rise or deadline, and is read back as a second release source. URL capabilities and report tokens are distinct, and records keep only digests. Virtual media installs run with no network and report over the serial console, so the #186 interface ordering is unchanged. A method qualifies only after the server boots with it. Network boot requires synchronized DHCP, and secret-bearing media require a verified HTTPS fetch. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 516 ++++++++++++---------- 1 file changed, 271 insertions(+), 245 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index 9cc50d11..12b2f265 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -38,12 +38,13 @@ defines two methods behind one contract: - **Virtual media.** Fleet tells the server's BMC, through Redfish, to mount boot media from a URL and boot from it once. -Each site declares the methods it offers. A provider machine class can require -one. Customers never choose a method, and the Metal API does not change. +Each site declares the methods it offers, and a provider machine class can +require one. Customers never choose a method, and the Metal API does not +change. -Custody, admission, operations, power, image selection, and sealed bootstrap -data are the same for both methods. Each method only prepares delivery, proves -what the server booted, and proves that the delivery path is closed afterwards. +Image selection, sealed bootstrap data, power, and the custody fence are the +same for both methods. Each method prepares delivery, proves what the server +booted, and proves that the delivery path closed afterwards. Network boot is built first. Virtual media is added later behind the same contract. This enhancement is a proposal. Nothing in it is implemented. @@ -51,55 +52,45 @@ contract. This enhancement is a proposal. Nothing in it is implemented. ## Motivation The [boot network reservations][boot-network-pr] and [server -networking][server-networking-pr] proposals define network boot. Network boot -needs a provisioning VLAN at the site, relays on the site's routers, a central -DHCP service, and a WAN link between them. A site that does not have those yet -cannot install any server. That includes the servers that would run the site's -own infrastructure. +networking][server-networking-pr] proposals define network boot. It needs a +provisioning VLAN at the site, relays on the site's routers, a central DHCP +service, and a WAN link between them. A site without those cannot install any +server, including the servers that would run the site's own infrastructure. Many BMCs can mount boot media from a URL. That needs only the BMC network, -which every site has before it has anything else. Treating virtual media as a -separate install path would duplicate custody, fencing, and recovery, so it -needs to fit the same contract as network boot. +which a site has before anything else. A separate install path for virtual +media would duplicate custody, fencing, and recovery, so it must fit the same +contract as network boot. ### Goals -- One install contract that every delivery method meets. -- A site declares its methods. A machine class can require one. +- One contract that every delivery method meets. +- A site declares its methods, and a machine class can require one. - Every method proves what the server booted and that the delivery path closed. - An uncertain prepare, verify, or release never becomes success. -- Commissioning records which methods a server's BMC can use, and Fleet never - attempts a method the server cannot use. +- Fleet starts a new operation only with a method that commissioning + qualified. A settling operation reuses the held operation's method. - Virtual media installs get their addresses from the same owner as network boot installs. - Virtual media never exposes one customer's bootstrap data to another. ### Non-goals -- Letting a customer choose a method per install. +- Letting a customer choose a method. - Customer access to virtual media, through a provisioning session or any other path. - Delegated customer PXE ([#59][pxe-pr]) at a site that offers only virtual media. Delegated PXE needs network boot. -- Building boot media. The provider's image pipeline builds them, as - [#184][images-pr] describes for every other image artifact. +- Building boot media. The provider's image pipeline builds them, like every + other image artifact in [#184][images-pr]. - Vendor APIs other than Redfish, including IPMI virtual media. -- Legacy BIOS boot. -- Secure Boot and measured boot. +- Legacy BIOS boot, Secure Boot, and measured boot. ## Proposal -The site worker that runs an operation delegates three steps to the -operation's delivery method: prepare, verify, and release. Everything before -and after those steps is the same for every method. - -| Step | Network boot | Virtual media | -| --- | --- | --- | -| Prepare | Boot attachment, provisioning address, DHCP reservation served, one-time UEFI HTTP boot | Boot and config media inserted and read back, one-time boot from media | -| Verify | The install report carries the token served only to that NIC | The install report carries the token written only to that operation's config medium | -| Release | Every declared DHCP instance reports the reservation dropped | Every media device reads back ejected, and the URLs stop serving | - -Both methods also read back that the one-time boot override is cleared. +The site worker that runs an operation hands three steps to the operation's +delivery method: prepare, verify, and release. Admission, power, the journal, +and evidence handling are the same for every method. ### User stories @@ -110,29 +101,35 @@ Both methods also read back that the one-time boot override is cleared. installs them in parallel over the host NICs, with no traffic through the BMCs. - A provider offers a machine class only on virtual media. Fleet allocates a - customer only a server whose BMC passed the virtual media check. + customer only a server whose BMC qualified for virtual media. - A BMC accepts a mount but never reports it ejected. The operation stays - unknown and the server stays out of use until the media are proven gone. + unknown, and the server stays out of use until a later operation proves the + media gone. ### Relationship to other proposals -- **[Device custody](../device-operations/README.md):** unchanged. Each - delivery step runs inside an admitted operation, under its fence, and is - journaled like every other step. Settlement gains one rule, described in - [Settling a hold](#settling-a-hold). +- **[Device custody](../device-operations/README.md):** delivery steps run + inside an admitted operation, under its fence, and are journaled like every + other step. Custody changes in three ways: + - installation, wipe, and commissioning operations gain a delivery method + input; + - admission gains kind checks of that input, through custody's existing rule + for checks of a kind's own inputs; and + - a settling operation must use the held operation's method. See [Settling a + hold](#settling-a-hold). - **Boot network reservations ([#87][boot-network-pr]) and server networking ([#186][server-networking-pr]):** become the network boot method. Their evidence gates are its verify and release steps. Two changes: a site can - offer more than one method, and the one-time boot override is read back after + offer more than one method, and the boot override is read back after release. - **Central DHCP ([#197][central-dhcp-pr]):** its proof that every declared Kea instance dropped a reservation is the network boot release step. - **OS images and bootstrap data ([#184][images-pr]):** unchanged for the - customer. An image gains a boot medium artifact to be offered on virtual - media. The sealed payload is delivered on a config medium instead of from the - boot service. + customer. Two additions: an image needs a boot medium artifact to be offered + on virtual media, and the install report returns a report token. See [Install + report](#install-report). - **Commissioning ([#185][commissioning-pr]):** commissioning gains a delivery - check, and capacity gains one more `Available` condition. + phase, and `Available` gains two conditions. - **PXE installation ([#59][pxe-pr]):** its customer Redfish gateway already refuses virtual media. That stays true. @@ -147,57 +144,75 @@ is not allowed. 1. **Exact inputs first.** The operation records its method, image digest, bootstrap digest, and host network configuration before any effect. A - method adds its own inputs to that record, such as a provisioning address, - and never reads a mutable source after admission. -2. **Prepare under the fence.** The worker prepares delivery only while the - operation holds the Device's current fence. Each prepare step is journaled - before it is sent, like every other step. + method adds its own inputs, such as a provisioning address, and never reads + a mutable source after admission. +2. **Prepare under the fence.** Every prepare step, on the server or on a + Fleet delivery service, runs only while the operation holds the Device's + stored fence. The journal records each step before it is sent. 3. **Verify what booted.** Success needs evidence that the server booted this - operation's input, not only that a boot happened. Both methods use a random - token that only this operation's delivery can carry. The install report - must return that token with the image and bootstrap digests, as - [#184][images-pr] defines. + operation's input, not only that a boot happened. The evidence is a report + token that only this operation's delivery carries. 4. **Prove release.** Before the operation succeeds, the worker proves that the - delivery path can no longer reach the server. Release proof covers every - delivery that the site ever prepared for the Device, not only this - operation's. -5. **Unknown is not ready.** A prepare, verify, or release step whose result - the worker cannot prove ends the operation `OutcomeUnknown`, with a recovery - hold. It never ends `Succeeded`. + delivery path can no longer reach the server. The proof covers every + delivery the site ever prepared for the Device, not only this operation's. +5. **Unknown is not ready.** An operation that sent any step and cannot prove + its result ends `OutcomeUnknown`, with a recovery hold. It never ends + `Succeeded`, and never `Failed`. + +On every path into `OutcomeUnknown`, the worker also tries to undo delivery: it +closes what it opened and ejects what it inserted. That attempt is never +release proof. -A method also defines what it needs from the site, from the server's BMC, and -from the image. Commissioning checks the BMC part. +#### Install report + +The installer reads the bootstrap payload back from the target disk, as +[#184][images-pr] requires, and reports the report token, the image digest, +and the salted bootstrap digest. The worker accepts the report only if all +three match the operation. A wipe or a burn-in reports the token and its own +result. #### Settling a hold -A held installation or wipe is settled by a later operation of the same kind -that succeeds, as [device custody](../device-operations/README.md#unknown-outcomes) -defines. A settling operation proves release only for its own method. So while -a hold exists, the coordinator admits a settling operation only if it uses the -held operation's method. Otherwise it refuses with `DeliveryMethodMismatch`. +[Device custody](../device-operations/README.md#unknown-outcomes) defines how a +hold is settled: + +- an installation hold, by a later installation that succeeds, or by a wipe + that succeeds after release; +- a wipe hold, by a `Retry` and then a later wipe that succeeds; and +- a commissioning hold, by a later commissioning that succeeds. + +Each method proves release only for itself. So a settling installation, wipe, +or commissioning uses the method that the held operation used. The requester +reads it from the hold. Admission skips the site, class, and qualification +checks for a settling operation, because the held operation passed them and +its delivery must be proven closed with the same method. A settling operation +that records another method is refused with `DeliveryMethodMismatch`. + +Other operations wait or are refused exactly as custody defines today. + +A hold therefore waits for its own method. A network boot hold at a site whose +WAN link is down stays until the link returns. ### Network boot Network boot is the method in [#87][boot-network-pr] and [#186][server-networking-pr], with the central DHCP service in -[#197][central-dhcp-pr]. This enhancement adds no new behavior to it except the -override check. +[#197][central-dhcp-pr]. - **Prepare.** The requester creates the boot attachment claim and the provisioning address claim. The site publishes the reservation and waits for a DHCP report that serves it. The worker sets the UEFI HTTP boot target and a one-time boot, then powers the server on. -- **Verify.** The boot service serves the boot script, with the boot - admission's token, only to that NIC while the admission is open. The install - report returns the token. +- **Verify.** The boot service serves the boot script, with the report token, + only to that NIC while the boot admission is open. - **Release.** Every declared DHCP instance reports a feed, issued after the reservation was published, that serves no address the site ever published - for the Device. The worker reads back that no one-time boot override is set. - The requester then deletes the claims, under the rules in - [#186][server-networking-pr]. + for the Device. The worker then reads back that no boot override is set. The + requester deletes the claims under the rules in [#186][server-networking-pr]. -The site needs a provisioning network on the boot NIC, relays to the central -DHCP service, and a WAN link. The BMC needs UEFI HTTP boot. +Release proof needs DHCP reports, so network boot needs synchronized DHCP. A +site whose DHCP is configured outside Fleet, the static mode in +[#87][boot-network-pr], cannot prove release and does not offer network boot. ### Virtual media @@ -205,15 +220,28 @@ Virtual media mounts two media on the server's BMC: - **Boot medium.** A bootable image built by the provider's image pipeline and listed in the image's artifact manifest by digest. It holds the installer - and the image, and nothing specific to a customer or an operation. It can be - cached and is served to any BMC at the site. + and the image, and nothing specific to a customer or an operation. Any BMC + at the site may fetch it. - **Config medium.** A small medium the worker renders for one operation. It holds the rendered bootstrap payload, the host network configuration, and - the operation's token, in the format the image reads, such as a NoCloud - volume. + the report token, in the format the image reads, such as a NoCloud volume. + +Admission refuses an image with no boot medium with `ImageIncompatible`. + +The **media service** serves media to BMCs, at the endpoint that the site's +enrollment names. It serves only through windows. A window belongs to one +operation and holds two URLs: -An image with no boot medium in its manifest is not offered on virtual media. -Admission refuses it with `ImageIncompatible`. +- the boot medium's URL, derived from its digest; and +- the config medium's URL, which carries a random 256-bit URL capability. + +The URL capability and the report token are different values. A BMC learns the +capability. Only the config medium's contents carry the report token. + +The media service follows the site's stored fence for each Device. It opens a +window only for the operation that holds the Device's stored fence. It closes +every window of a Device when the fence rises, and closes each window at its +deadline, which is never later than the operation's deadline. ```mermaid sequenceDiagram @@ -221,58 +249,59 @@ sequenceDiagram participant S as Media service participant B as BMC participant H as Server - W->>S: open the operation's media window - W->>B: eject any inserted media, read back ejected + W->>S: open the operation's window + W->>B: eject every device, read back empty W->>B: insert boot medium and config medium - W->>B: read back both inserted, with the exact URLs - W->>B: set a one-time boot from media, read it back, power on + W->>B: read back both URLs, set one-time boot, power on B->>S: fetch media over HTTPS - H->>H: install the image, read the payload back - H-->>W: install report with the token and digests - W->>S: close the window, URLs stop serving - W->>B: eject every device, read back ejected and the override cleared + H->>H: install, read the payload back from disk + H-->>W: install report on the serial console + W->>S: close the window + W->>B: eject every device, read back empty, override cleared + W->>S: read back no window open and no transfer for the Device ``` -- **Prepare.** The media service serves media to BMCs, at the endpoint the - site's enrollment names. The worker opens a window for the operation on it. The window serves the - boot medium at a URL derived from its digest and the config medium at a URL - that carries a random 256-bit token. Before inserting, the worker ejects any - media already inserted on the server and reads back that they are gone. It - then inserts both media, reads back that each device reports the exact URL, - sets a one-time boot from media, reads it back, and powers the server on. -- **Verify.** The config medium is the only place the operation's token - exists. The install report must return it with the image and bootstrap - digests. -- **Release.** The worker closes every window the media service holds for the - Device, so no URL for it serves again. It ejects every virtual media device - on the server, then reads back that every device reports no media and that - no boot override is set. Release covers every window and every device, so it - also covers media that an earlier, held operation inserted. +- **Prepare.** The worker opens the window. It ejects any media already on + the server and reads back that every device is empty. Then it inserts both + media, reads back each device's URL, sets a one-time boot from media, reads + it back, and powers the server on. +- **Verify.** The worker reads the install report from the serial console. + The report token exists only inside this operation's config medium. +- **Release.** The worker closes every window of the Device and ejects every + virtual media device. It then reads back two independent sources: + - the BMC: every device reports no media, and no boot override is set; and + - the media service: no window of the Device is open, and no transfer to + its BMC is in progress. + +Both sources cover the whole Device, so release also covers media that an +earlier, held operation inserted. If either source cannot be read, release is +unproven. + +Release relies on the BMC's own report of its media, as network boot relies on +DHCP's report of its reservations. A BMC that reports empty devices while it +still holds media is not detected. Closed windows limit that BMC to media it +already fetched, and the cleared override keeps it from booting them. The site deletes the rendered config medium when the operation ends or a higher fence stops the worker, as [#184][images-pr] requires for every copy of a bootstrap payload. Virtual media needs only the BMC network. It needs no provisioning VLAN, boot -attachment claim, provisioning address, relay, or DHCP. The switch port does -not move during an install. +attachment claim, provisioning address, relay, or DHCP. -#### Install report +#### Serial console -The install report travels over one of two channels. The image's -qualification names which one it supports: - -- **Network.** The installer reaches the site's report endpoint with the - Machine's addresses. See [Addresses](#addresses). -- **Console.** The installer writes the report to the serial console, and the - worker reads it through the BMC. Commissioning burn-in already reports this - way. A wipe or a burn-in has no Machine addresses, so it uses the console. +The installer under virtual media uses no network. It writes its report to the +serial console, and the worker reads it through the BMC's serial console +service. [#185][commissioning-pr] burn-in reports on the console too, but no +proposal yet defines how a worker reads it. This enhancement needs that +reader, and commissioning checks for it. #### BMCs with one media device -A BMC that can mount only one medium gets a single medium per operation that -combines boot and config. Because it carries bootstrap data, it is served only -under the rules for config media. +A BMC that can mount only one medium gets one medium per operation that +combines boot and config. It carries bootstrap data, so the media service +serves it only under the rules for config media. ### Choosing a method @@ -285,142 +314,138 @@ what each method needs: site: site-example-1 deliveryMethods: - method: NetworkBoot - dhcp: Synchronized - method: VirtualMedia mediaEndpoint: https://media.site-example-1.example.net addresses: Static # Static | DataNetwork - reportChannels: [Console, Network] ``` Adding a method takes effect for new operations. Removing a method is refused -while any operation that used it has not ended or still holds the Device. +while an operation that used it has not ended or still holds the Device. #### Machine class A provider machine class definition can list the methods its servers may use. Without a list, every method the site offers is allowed. The allocator matches -a class only to capacity that is qualified for at least one allowed method, so -a server that cannot use the class's method is never allocated to it. +a class only to capacity qualified for at least one allowed method, so a server +that cannot use the class's method is never allocated to it. #### Selecting the method for an operation -The requester selects the method when it creates the operation: the first -method in the site's order that the class allows and the server's latest -commissioning qualified. It records the method in the operation. Staff -operations have no class, so the class rule is skipped for them. A -commissioning selects its burn-in method from its own delivery phase. +The requester selects the method when it creates the operation and records it +there. Unless the operation settles a hold, the method is the first one in the +site's order that the class allows and the server's latest commissioning +qualified. Staff operations have no class, so the class rule does not apply to +them. -Admission checks the recorded method again under the custody update and refuses -an operation whose method: +Admission checks the recorded method again under the custody update, and +refuses an operation whose method: - the site does not offer, with `DeliveryMethodNotOffered`; - the class does not allow, with `DeliveryMethodNotAllowed`; - the server is not qualified for, with `DeliveryMethodUnqualified`; or -- does not match the operation's other inputs, for example a network boot - without a boot network input, or a virtual media operation with one. +- does not match the operation's other inputs, for example a virtual media + operation with a boot network input. -Each refusal sends nothing. The method never changes after admission, and a -reinstall selects again under the same rules. +Each refusal sends nothing. The method never changes after admission. A +reinstall selects again. ### Commissioning checks -The commissioning in [#185][commissioning-pr] gains a delivery phase, after -firmware and before burn-in. It checks every method the site offers. +The commissioning in [#185][commissioning-pr] gains a delivery phase after the +firmware check. It checks every method the site offers. -For virtual media, the worker reads the BMC's virtual media devices and records: +For virtual media, the worker reads the BMC's virtual media devices and +records: - the media types each device accepts, and how many media it can mount at once; - whether the BMC offers the insert and eject actions; -- the transfer protocols it accepts, and whether HTTPS is one of them; -- whether it can verify the media service's certificate; and -- whether it allows a one-time boot from each media type. - -Then it probes. It inserts the site's probe medium, which is small and holds -no data, from the media service over HTTPS. It reads back that the BMC -reports it inserted and that the media service saw the fetch, then ejects it and -reads back that it is gone. The probe is the only proof that the BMC can reach -the media service. +- the transfer protocols it accepts, including HTTPS; +- whether it verifies the media service's certificate; +- whether it allows a one-time boot from each media type; and +- whether its serial console service can be read. For network boot, the worker records whether the BMC accepts a UEFI HTTP boot target and a one-time network boot. +Reading capabilities is not enough to qualify a method. The server must boot +with it. Burn-in boots with the first method whose capabilities pass. For each +other method that passes, the worker boots the site's probe image with that +method, reads the probe's report token, and proves release. The probe image is +small and holds no data. + Commissioning evidence records each method as qualified or not, with the first -check that failed. Burn-in then boots with the first qualified method. If the -server qualifies for none of the site's methods, the commissioning succeeds -with result `Failed`, in the delivery phase. If a probe cannot be proven -ejected, the commissioning ends `OutcomeUnknown`, like any other step. +check that failed. If the server qualifies for none of the site's methods, the +commissioning succeeds with result `Failed`, in the delivery phase. A probe +whose release cannot be proven ends the commissioning `OutcomeUnknown`. + +The capacity projector adds two `Available` checks: -The capacity projector adds one condition to `Available`: the server is -qualified for at least one method the site offers. Otherwise `Available` is -`False` with `NoDeliveryMethod`. It also keeps `Available` `False` with -`MediaInserted` while discovery reports inserted media or a set boot override -on a server with no active operation. +- `NoDeliveryMethod`: the server is qualified for none of the methods the site + offers. +- `MediaInserted`: discovery reports inserted media or a set boot override with + no active operation. Discovery reports this for held servers too, so an + operator can see it. ### Addresses -The installed operating system needs addresses with either method. The firmware +The installed operating system needs addresses with either method. Firmware needs one only for network boot. | Address | Network boot | Virtual media | Owner | | --- | --- | --- | --- | -| Firmware provisioning address | Yes, for the boot window | None | IPAM, through the operation's claim | +| Firmware provisioning address | For the boot window | None | IPAM, through the operation's claim | | Machine interface addresses | Yes | Yes | IPAM, through NSO interface claims on the Machine | [Server networking][server-networking-pr] already pins the host network -configuration, with each interface's MAC, addresses, gateway, and MTU, into -the installation by digest. Virtual media uses that configuration in one of two -ways: - -- **The data network provides the addresses.** The network owner's DHCP on the - customer's network serves the Machine's addresses. The config medium carries - none. -- **Fleet supplies static configuration.** The worker writes the pinned host - network configuration onto the config medium in the image's format, such as - a NoCloud network configuration or a Talos machine configuration. - -The site's enrollment chooses one per site. In both cases IPAM is the one -source of the addresses. Fleet copies them and never chooses one. - -No boot attachment moves the port under virtual media, so NSO attaches the -Machine's interfaces before the install. An install that takes its addresses -from the data network, or reports over the network, waits until every -interface is `Programmed`. A wipe and a burn-in hold no Machine, so under -virtual media they run with no network. +configuration into the installation by digest, with each interface's MAC, +addresses, gateway, and MTU. The installation waits for interfaces to be +`Allocated`, not `Programmed`. Under virtual media the site's enrollment picks +how the OS gets those addresses at first boot: + +- **Data network.** The network owner's DHCP on the customer's network serves + the Machine's addresses. The config medium carries none. +- **Static.** The worker writes the pinned configuration onto the config + medium in the image's format, such as a NoCloud network configuration or a + Talos machine configuration. + +Either way IPAM is the one source of the addresses. Fleet copies them and never +chooses one. + +The installer uses no network, so it does not matter when NSO programs the +Machine's interfaces. Under virtual media, NSO programs them as it does for a +dedicated boot NIC in [#186][server-networking-pr], with no boot attachment. +A wipe and a burn-in hold no Machine and run with no network. ### Isolation and security - **No boot network.** A virtual media install never puts the switch port on a provisioning network, so it cannot reach another server's boot traffic. -- **One BMC, its own media.** Only the operation's worker inserts media, and it - inserts them only on the Device it holds under custody, at the BMC endpoint - in the operation's Device snapshot. No customer-facing session can insert - media. +- **One BMC, its own media.** Only the worker that holds the Device's fence + inserts media, and only at the BMC endpoint in the operation's Device + snapshot. No customer-facing session can insert media. - **Reachability.** The media endpoint must be reachable from the site's BMC - network. It accepts requests only from that network's addresses, and serves - only media for open windows. -- **Public boot media.** A boot medium holds no customer or operation data, so - any BMC at the site may fetch it. -- **Scoped config media.** A config medium is served only over HTTPS, only at - its token URL, and only while its window is open. The window closes when the - install report arrives, when its deadline passes, or when a higher fence - stops the worker. A BMC that cannot fetch over HTTPS can use virtual media - only for operations that carry no bootstrap data and report over the - console, such as a wipe or a burn-in. Over plain HTTP the token can be read - on the BMC network, so a network report could be forged. -- **No secrets in records.** Journals, evidence, and logs record media digests, - never a token or a config medium URL. + network. It accepts requests only from that network's addresses. It serves a + config URL only to the Device's BMC address from the snapshot. +- **Public boot media.** A boot medium holds no customer or operation data. +- **Scoped config media.** A config medium is served only over HTTPS that the + BMC verifies, at its capability URL, while its window is open. A BMC that + does not verify the media service's certificate gets virtual media only for + operations with no bootstrap data, such as a wipe or a burn-in. +- **No secrets in records.** Journals, evidence, and logs record a digest of + each URL and compare readbacks by digest. They never record a capability, a + report token, or a config URL. ### Failure modes -| Failure | Effect | +| Failure | Outcome | | --- | --- | -| The BMC accepts an insert but never reports the media inserted | Nothing is powered on. The worker ejects and reads back. If the eject cannot be proven, the operation ends unknown. | -| The BMC reports media inserted after eject, or reports stale state | Release cannot be proven. The operation ends unknown and the server stays held. | -| The BMC ignores the one-time boot and boots from disk | No install report arrives. The operation ends unknown at its deadline. | -| The transfer through the BMC is slow | The install takes longer. Virtual media deadlines are set per site, and a large image may not fit them. | -| Many installs at once | Each BMC streams its media from the media service, so the service and the BMC network carry every install. Network boot carries it on the host NICs instead. | -| A WAN outage between a site and the central cluster | Network boot stops at that site, because DHCP and boot files are central. Virtual media keeps working if the media service runs at the site with a local copy of the media. | -| The media service is down | Prepare fails before power-on. Nothing reached the server, so the operation fails, unless an insert was sent, in which case the worker reads back and ejects first. | +| The media service cannot open a window | Nothing was sent to the server, so the operation fails. | +| The BMC accepts an insert but never reports the media inserted | The operation ends `OutcomeUnknown`. The worker tries to eject. | +| The BMC reports media after an eject | Release is unproven. The operation ends `OutcomeUnknown`. | +| The BMC ignores the one-time boot and boots from disk | No report arrives. The operation ends `OutcomeUnknown` at its deadline. | +| The transfer through the BMC is slow | Virtual media deadlines are set per site. An image too large for the deadline is not offered there. | +| Many installs at once | Every BMC streams its media from the media service, over the BMC network. Network boot uses the host NICs instead. | +| A WAN outage between a site and the central cluster | Network boot stops at that site. Virtual media keeps working if the media service runs at the site with local media. | #### Choosing a method as an operator @@ -431,30 +456,29 @@ virtual media they run with no network. | Many identical servers installed in parallel | Network boot | | Large images, or installs that must finish quickly | Network boot | | Delegated customer PXE | Network boot | -| BMCs with unreliable virtual media | Network boot | +| BMCs whose virtual media is unreliable | Network boot | ### Acceptance tests These tests are required and not implemented: -- A virtual media install succeeds, and afterwards every device reads back - ejected, the override reads back cleared, and the config URL no longer - serves. -- The install report carries another operation's token, and the operation does +- A virtual media install succeeds. Afterwards the BMC reports every device + empty and no override, and the media service reports no open window. +- The console report carries another operation's token, and the operation does not succeed. -- An eject cannot be proven, and the operation ends `OutcomeUnknown`. A later - install over network boot is refused while the hold exists, and a later - install over virtual media settles it. -- A delayed worker tries to insert media after a newer operation is admitted, - and the site journal refuses it. -- A server whose BMC failed the virtual media check is never allocated to a - class that requires virtual media. +- An eject cannot be proven, and the install ends `OutcomeUnknown`. A settling + install uses virtual media even after the site's preferred method changed, + and settles the hold. +- A delayed worker tries to open a window or insert media after a newer + operation is admitted. The media service and the site journal refuse it. +- A window reaches its deadline, and its URLs stop serving without a worker. +- A server whose BMC failed the virtual media qualification is never allocated + to a class that requires virtual media. - An operation records a method that the site does not offer, and admission refuses it without sending anything. -- A BMC without HTTPS is refused an install with bootstrap data over virtual - media. -- A fetch from outside the BMC network, or after the window closes, gets - nothing. +- A BMC that does not verify the media certificate is refused an install with + bootstrap data over virtual media. +- A fetch from another address, or after the window closes, gets nothing. - The network boot tests in [#87][boot-network-pr] and [#197][central-dhcp-pr] still pass through the shared contract. @@ -464,8 +488,7 @@ These controls are proposed, not implemented. ### How do operators enable or disable the feature? -Per site, through the enrollment's method list. Removing a method waits until -no operation that used it holds a Device. +Per site, through the enrollment's method list. ### Does enabling the feature change any default behavior? @@ -474,15 +497,14 @@ describes. ### What must operators monitor? -Operations held on unproven release, per method. Servers reporting -`MediaInserted` or `NoDeliveryMethod`. Media service fetch latency, errors, -and requests from outside the BMC network. Virtual media installs near their -deadline. +Holds with unproven release, per method. Servers reporting `MediaInserted` or +`NoDeliveryMethod`. Media service errors, open windows, and requests from +unexpected addresses. Virtual media installs near their deadline. ### What does the feature depend on? -Redfish virtual media on each BMC, a media service reachable from the BMC -network, and boot media in the image catalog. +Redfish virtual media and a readable serial console on each BMC, a media +service reachable from the BMC network, and boot media in the image catalog. ### Does the feature add API types or calls? @@ -499,44 +521,48 @@ install adds a few Redfish calls and two media fetches. - Two methods mean two sets of BMC behavior to qualify, test, and monitor. - BMC virtual media is slower and less consistent across vendors than network boot. -- Every virtual media image needs a boot medium artifact as well as its - network boot artifacts. -- A site's media service is a new service on the BMC network. +- Every image offered on virtual media needs a boot medium artifact. +- The media service is a new service on the BMC network. +- A hold can only be settled with its own method, so one method's outage can + keep a server out of use while the other method works. ## Alternatives -- **The customer chooses per install.** Rejected. The method depends on the - site and the hardware, which the customer cannot see. - **One combined medium per operation for every BMC.** Simpler, but the whole - image would be served under a per-operation URL and could not be cached. - Kept only for BMCs with one media device. + image would sit behind a per-operation URL and could not be cached. Kept only + for BMCs with one media device. - **Bootstrap data on the boot medium.** Rejected. One customer's data would sit on media that any BMC at the site may fetch. -- **Virtual media as a separate install path.** Rejected. It would duplicate +- **A separate install path for virtual media.** Rejected. It would duplicate custody, fencing, and recovery. +- **A network report channel for virtual media.** Rejected for now. It would + put the installer on the customer's network with a path to a provider + endpoint. - **Network boot with static addresses and no DHCP.** Firmware support is limited, and it still needs a provisioning network. ## Open questions -- **Report channel.** Whether the first virtual media images report over the - console, over the network, or both. -- **Certificate verification.** Whether a BMC that fetches over HTTPS but - cannot verify the media service's certificate may receive a config medium. +- **Certificate verification.** Whether a BMC that fetches over HTTPS without + verifying the certificate may receive bootstrap data on an isolated BMC + network. - **Where the media service runs.** At each site, which survives a WAN outage, - or centrally, which serves BMCs over the management WAN. -- **Images that fetch over the network.** Some installers download the image - during the install. Whether those are offered on virtual media when the data - network provides addresses. + or centrally, which serves BMCs over the management WAN and needs each site's + fences. +- **Images that fetch during install.** Some installers download the image + over the network. Whether those can be offered on virtual media. +- **Console reader.** How the worker reads the serial console on each qualified + BMC. - **Deadlines.** The default virtual media deadline, and whether it depends on image size. ## Infrastructure needed Testing needs a site with both methods, BMC emulators whose virtual media can -fail to mount, report stale state, and refuse to eject, and a media service on -an emulated BMC network. Hardware qualification needs servers from each BMC -vendor the provider plans to support, with reachable BMCs. +fail to mount, report stale state, and refuse to eject, a serial console the +worker can read, and a media service on an emulated BMC network. Hardware +qualification needs servers from each BMC vendor the provider plans to +support. [boot-network-pr]: https://github.com/datum-cloud/fleet/pull/87 [server-networking-pr]: https://github.com/datum-cloud/fleet/pull/186 From 98158cea70907479e2277bde1bb74b56cc4b54d2 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Thu, 26 Nov 2026 14:24:10 -0600 Subject: [PATCH 03/12] docs: Define hold methods for commissioning A recovery hold records each method the held operation prepared, and a settling operation proves release for every one. A commissioning lists every method the site offers, so a settling commissioning must list the held methods. Burn-in may boot with any qualified method. An uncertain window open now ends unknown, first-boot addressing waits for NSO programming, and the acceptance tests cover the new release and settlement rules. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 64 ++++++++++++++++------- 1 file changed, 44 insertions(+), 20 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index 12b2f265..ec2fa179 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -110,13 +110,14 @@ and evidence handling are the same for every method. - **[Device custody](../device-operations/README.md):** delivery steps run inside an admitted operation, under its fence, and are journaled like every - other step. Custody changes in three ways: + other step. Custody changes in four ways: - installation, wipe, and commissioning operations gain a delivery method input; - admission gains kind checks of that input, through custody's existing rule - for checks of a kind's own inputs; and - - a settling operation must use the held operation's method. See [Settling a - hold](#settling-a-hold). + for checks of a kind's own inputs; + - a recovery hold records each method the held operation prepared; and + - a settling operation must prove release for each of those methods. See + [Settling a hold](#settling-a-hold). - **Boot network reservations ([#87][boot-network-pr]) and server networking ([#186][server-networking-pr]):** become the network boot method. Their evidence gates are its verify and release steps. Two changes: a site can @@ -129,7 +130,8 @@ and evidence handling are the same for every method. on virtual media, and the install report returns a report token. See [Install report](#install-report). - **Commissioning ([#185][commissioning-pr]):** commissioning gains a delivery - phase, and `Available` gains two conditions. + phase, burn-in boots with any qualified method instead of only network boot, + and `Available` gains two conditions. - **PXE installation ([#59][pxe-pr]):** its customer Redfish gateway already refuses virtual media. That stays true. @@ -181,12 +183,18 @@ hold is settled: - a wipe hold, by a `Retry` and then a later wipe that succeeds; and - a commissioning hold, by a later commissioning that succeeds. -Each method proves release only for itself. So a settling installation, wipe, -or commissioning uses the method that the held operation used. The requester -reads it from the hold. Admission skips the site, class, and qualification -checks for a settling operation, because the held operation passed them and -its delivery must be proven closed with the same method. A settling operation -that records another method is refused with `DeliveryMethodMismatch`. +Each method proves release only for itself. So the hold records each method +that the held operation prepared, and a settling operation must prove release +for every one of them: + +- An installation or a wipe prepares one method, so its settling operation + uses that method. The requester reads it from the hold. Admission skips the + site, class, and qualification checks for it, because the held operation + passed them. A settling installation or wipe that records another method is + refused with `DeliveryMethodMismatch`. +- A commissioning exercises every method its operation lists. A settling + commissioning must list every method in the hold, or it is refused with + `DeliveryMethodMismatch`. Other operations wait or are refused exactly as custody defines today. @@ -266,7 +274,9 @@ sequenceDiagram media, reads back each device's URL, sets a one-time boot from media, reads it back, and powers the server on. - **Verify.** The worker reads the install report from the serial console. - The report token exists only inside this operation's config medium. + The report token exists only inside this operation's config medium. A boot + medium qualified for virtual media brings up no network interface during the + install. - **Release.** The worker closes every window of the Device and ejects every virtual media device. It then reads back two independent sources: - the BMC: every device reports no media, and no boot override is set; and @@ -279,8 +289,8 @@ unproven. Release relies on the BMC's own report of its media, as network boot relies on DHCP's report of its reservations. A BMC that reports empty devices while it -still holds media is not detected. Closed windows limit that BMC to media it -already fetched, and the cleared override keeps it from booting them. +still holds media is not detected. Closed windows stop it from fetching more, +and the cleared override keeps it from booting what it holds. The site deletes the rendered config medium when the operation ends or a higher fence stops the worker, as [#184][images-pr] requires for every copy of @@ -291,7 +301,7 @@ attachment claim, provisioning address, relay, or DHCP. #### Serial console -The installer under virtual media uses no network. It writes its report to the +The installer under virtual media brings up no network. It writes its report to the serial console, and the worker reads it through the BMC's serial console service. [#185][commissioning-pr] burn-in reports on the console too, but no proposal yet defines how a worker reads it. This enhancement needs that @@ -337,6 +347,10 @@ site's order that the class allows and the server's latest commissioning qualified. Staff operations have no class, so the class rule does not apply to them. +A commissioning is the exception, because it qualifies methods. It lists every +method the site offers, in the site's order, and admission checks only that +the site offers each one. + Admission checks the recorded method again under the custody update, and refuses an operation whose method: @@ -411,10 +425,12 @@ how the OS gets those addresses at first boot: Either way IPAM is the one source of the addresses. Fleet copies them and never chooses one. -The installer uses no network, so it does not matter when NSO programs the -Machine's interfaces. Under virtual media, NSO programs them as it does for a -dedicated boot NIC in [#186][server-networking-pr], with no boot attachment. -A wipe and a burn-in hold no Machine and run with no network. +The installer brings up no network, so the install does not wait for NSO to +program the Machine's interfaces. NSO programs them as it does for a dedicated +boot NIC in [#186][server-networking-pr], with no boot attachment. The +Machine reports `NetworkReady=False` until they are programmed, and in Data +network mode the OS gets no address until then. A wipe and a burn-in hold no +Machine and run with no network. ### Isolation and security @@ -439,7 +455,8 @@ A wipe and a burn-in hold no Machine and run with no network. | Failure | Outcome | | --- | --- | -| The media service cannot open a window | Nothing was sent to the server, so the operation fails. | +| The media service refuses to open a window | Nothing was sent, so the operation fails. | +| The open times out, so a window may exist | The operation ends `OutcomeUnknown`. The worker tries to close the window. | | The BMC accepts an insert but never reports the media inserted | The operation ends `OutcomeUnknown`. The worker tries to eject. | | The BMC reports media after an eject | Release is unproven. The operation ends `OutcomeUnknown`. | | The BMC ignores the one-time boot and boots from disk | No report arrives. The operation ends `OutcomeUnknown` at its deadline. | @@ -471,6 +488,13 @@ These tests are required and not implemented: and settles the hold. - A delayed worker tries to open a window or insert media after a newer operation is admitted. The media service and the site journal refuse it. +- A fence rise closes every window of the Device. +- The BMC reports every device empty while the media service reports an open + window, and release stays unproven. +- A settling install that records another method is refused with + `DeliveryMethodMismatch`. +- A commissioning held during a virtual media probe is settled only by a + commissioning that lists virtual media. - A window reaches its deadline, and its URLs stop serving without a worker. - A server whose BMC failed the virtual media qualification is never allocated to a class that requires virtual media. From a3e3f22f383a61a17cc2d86f37b34f758cc90f8d Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Thu, 26 Nov 2026 15:38:59 -0600 Subject: [PATCH 04/12] docs: Record boot delivery product decisions Record the six product decisions and move them out of open questions: - BMCs that do not verify the media certificate get no bootstrap data and install in a fallback mode, where the installed OS fetches the sealed payload with a single-use token bound to its IPAM address. - The media service runs centrally, and BMC and data network routes to it are site prerequisites. - The installed OS posts a first-boot report over HTTPS. Console output is diagnostics only. - Installers may download only artifacts pinned by digest. - Virtual media installs have a 45-minute phased deadline. - Sites whose DHCP is configured outside Fleet use virtual media. Reports from wipes and burn-ins under virtual media stay open. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 290 ++++++++++++++-------- 1 file changed, 185 insertions(+), 105 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index ec2fa179..173d3e67 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -19,6 +19,7 @@ stage: alpha - [Addresses](#addresses) - [Isolation and security](#isolation-and-security) - [Failure modes](#failure-modes) + - [Decisions](#decisions) - [Acceptance tests](#acceptance-tests) - [Production readiness review questionnaire](#production-readiness-review-questionnaire) - [Implementation history](#implementation-history) @@ -57,10 +58,10 @@ provisioning VLAN at the site, relays on the site's routers, a central DHCP service, and a WAN link between them. A site without those cannot install any server, including the servers that would run the site's own infrastructure. -Many BMCs can mount boot media from a URL. That needs only the BMC network, -which a site has before anything else. A separate install path for virtual -media would duplicate custody, fencing, and recovery, so it must fit the same -contract as network boot. +Many BMCs can mount boot media from a URL. That needs the BMC network and a +route from it to Fleet, with no provisioning VLAN or relay. A separate install +path for virtual media would duplicate custody, fencing, and recovery, so it +must fit the same contract as network boot. ### Goals @@ -96,7 +97,7 @@ and evidence handling are the same for every method. - An operator brings up a new site. Before its provisioning network and relays exist, Fleet installs the site's own infrastructure servers over virtual - media, using only the BMC network. + media. - A provider sells many identical servers at a site with network boot. Fleet installs them in parallel over the host NICs, with no traffic through the BMCs. @@ -124,14 +125,18 @@ and evidence handling are the same for every method. offer more than one method, and the boot override is read back after release. - **Central DHCP ([#197][central-dhcp-pr]):** its proof that every declared Kea - instance dropped a reservation is the network boot release step. + instance dropped a reservation is the network boot release step. The media + service and the first-boot service run in the same central cluster. - **OS images and bootstrap data ([#184][images-pr]):** unchanged for the - customer. Two additions: an image needs a boot medium artifact to be offered - on virtual media, and the install report returns a report token. See [Install - report](#install-report). + customer. Three additions: + - an image needs a boot medium artifact to be offered on virtual media; + - under virtual media, the installed OS posts a first-boot report; and + - a BMC that does not verify the media certificate gets the bootstrap data + through the installed OS instead of on its media. - **Commissioning ([#185][commissioning-pr]):** commissioning gains a delivery phase, burn-in boots with any qualified method instead of only network boot, - and `Available` gains two conditions. + and under virtual media burn-in reports the same way as an install. + `Available` gains two conditions. - **PXE installation ([#59][pxe-pr]):** its customer Redfish gateway already refuses virtual media. That stays true. @@ -145,9 +150,10 @@ Every delivery method meets all of these rules. A method that cannot meet one is not allowed. 1. **Exact inputs first.** The operation records its method, image digest, - bootstrap digest, and host network configuration before any effect. A - method adds its own inputs, such as a provisioning address, and never reads - a mutable source after admission. + bootstrap digest, host network configuration, and the digest of every + artifact the installer downloads, before any effect. A method adds its own + inputs, such as a provisioning address, and never reads a mutable source + after admission. 2. **Prepare under the fence.** Every prepare step, on the server or on a Fleet delivery service, runs only while the operation holds the Device's stored fence. The journal records each step before it is sent. @@ -165,13 +171,14 @@ On every path into `OutcomeUnknown`, the worker also tries to undo delivery: it closes what it opened and ejects what it inserted. That attempt is never release proof. -#### Install report +#### Downloads during install -The installer reads the bootstrap payload back from the target disk, as -[#184][images-pr] requires, and reports the report token, the image digest, -and the salted bootstrap digest. The worker accepts the report only if all -three match the operation. A wipe or a burn-in reports the token and its own -result. +An installer may download artifacts during the install, such as an installer +container image, only if each one is pinned by digest in the operation's +recorded inputs. The installer refuses an artifact whose digest does not +match. Fleet refuses an image whose installer downloads anything that the +operation cannot pin, with `ImageIncompatible`. The network the installer uses +must reach the artifact source or a mirror. #### Settling a hold @@ -212,16 +219,14 @@ Network boot is the method in [#87][boot-network-pr] and a DHCP report that serves it. The worker sets the UEFI HTTP boot target and a one-time boot, then powers the server on. - **Verify.** The boot service serves the boot script, with the report token, - only to that NIC while the boot admission is open. + only to that NIC while the boot admission is open. The installer returns the + token over the provisioning network with the digests that [#184][images-pr] + defines. - **Release.** Every declared DHCP instance reports a feed, issued after the reservation was published, that serves no address the site ever published for the Device. The worker then reads back that no boot override is set. The requester deletes the claims under the rules in [#186][server-networking-pr]. -Release proof needs DHCP reports, so network boot needs synchronized DHCP. A -site whose DHCP is configured outside Fleet, the static mode in -[#87][boot-network-pr], cannot prove release and does not offer network boot. - ### Virtual media Virtual media mounts two media on the server's BMC: @@ -229,15 +234,16 @@ Virtual media mounts two media on the server's BMC: - **Boot medium.** A bootable image built by the provider's image pipeline and listed in the image's artifact manifest by digest. It holds the installer and the image, and nothing specific to a customer or an operation. Any BMC - at the site may fetch it. -- **Config medium.** A small medium the worker renders for one operation. It - holds the rendered bootstrap payload, the host network configuration, and - the report token, in the format the image reads, such as a NoCloud volume. + may fetch it. +- **Config medium.** A small medium the worker renders for one operation, in + the format the image reads, such as a NoCloud volume. It holds the host + network configuration and the report token. In the default mode it also + holds the rendered bootstrap payload. Admission refuses an image with no boot medium with `ImageIncompatible`. -The **media service** serves media to BMCs, at the endpoint that the site's -enrollment names. It serves only through windows. A window belongs to one +The **media service** serves media to BMCs. It runs centrally, with the DHCP +and boot services. It serves only through windows. A window belongs to one operation and holds two URLs: - the boot medium's URL, derived from its digest; and @@ -255,6 +261,7 @@ deadline, which is never later than the operation's deadline. sequenceDiagram participant W as Site worker participant S as Media service + participant F as First-boot service participant B as BMC participant H as Server W->>S: open the operation's window @@ -263,8 +270,9 @@ sequenceDiagram W->>B: read back both URLs, set one-time boot, power on B->>S: fetch media over HTTPS H->>H: install, read the payload back from disk - H-->>W: install report on the serial console - W->>S: close the window + W->>S: close the window at the end of the media phase + H->>F: first boot posts the report over HTTPS + F-->>W: report accepted W->>B: eject every device, read back empty, override cleared W->>S: read back no window open and no transfer for the Device ``` @@ -273,18 +281,21 @@ sequenceDiagram the server and reads back that every device is empty. Then it inserts both media, reads back each device's URL, sets a one-time boot from media, reads it back, and powers the server on. -- **Verify.** The worker reads the install report from the serial console. - The report token exists only inside this operation's config medium. A boot - medium qualified for virtual media brings up no network interface during the - install. +- **Verify.** The first-boot service accepts the operation's + [first-boot report](#first-boot-report). The report token exists only inside + this operation's config medium, or in the fallback mode inside its sealed + payload. - **Release.** The worker closes every window of the Device and ejects every - virtual media device. It then reads back two independent sources: + virtual media device. It then reads back independent sources: - the BMC: every device reports no media, and no boot override is set; and - the media service: no window of the Device is open, and no transfer to its BMC is in progress. -Both sources cover the whole Device, so release also covers media that an -earlier, held operation inserted. If either source cannot be read, release is + In the fallback mode the worker also reads back that the first-boot service + holds no open fetch token for the Device. + +All sources cover the whole Device, so release also covers media that an +earlier, held operation inserted. If any source cannot be read, release is unproven. Release relies on the BMC's own report of its media, as network boot relies on @@ -296,22 +307,66 @@ The site deletes the rendered config medium when the operation ends or a higher fence stops the worker, as [#184][images-pr] requires for every copy of a bootstrap payload. -Virtual media needs only the BMC network. It needs no provisioning VLAN, boot -attachment claim, provisioning address, relay, or DHCP. +Virtual media needs no provisioning VLAN, boot attachment claim, provisioning +address, relay, or DHCP. + +#### First-boot report + +Under virtual media, the installed OS proves the install with a **first-boot +report**. At first boot it posts the report over HTTPS, which it verifies, to +Fleet's first-boot service. The first-boot service runs centrally, with the +media service. The report carries: + +- the report token; +- the image digest; +- the salted bootstrap digest of the payload the OS applied, as + [#184][images-pr] defines it; and +- the digest of every artifact the installer downloaded. + +The service accepts the report only from one of the Machine's IPAM addresses, +and only if every value matches the operation. An accepted report also proves +that the OS came up with its IPAM addresses. A wipe or a burn-in posts the +token and its own result the same way, from its own address. See [Open +questions](#open-questions). + +Console output is optional diagnostics. It is never proof. + +#### Deadlines + +A virtual media install has a 45-minute deadline in two phases: + +| Phase | Default | Ends when | +| --- | --- | --- | +| Media | 15 minutes from power-on | The media window closes. The installer must have read everything it needs from the media. | +| First boot | 30 minutes after the media phase | The first-boot report is accepted. | -#### Serial console +A site can override both. The defaults are tuned from lab and site +measurements. -The installer under virtual media brings up no network. It writes its report to the -serial console, and the worker reads it through the BMC's serial console -service. [#185][commissioning-pr] burn-in reports on the console too, but no -proposal yet defines how a worker reads it. This enhancement needs that -reader, and commissioning checks for it. +#### BMCs that do not verify the media certificate + +By default, a BMC that does not verify the media service's certificate gets no +bootstrap data. Such a BMC can still install in a fallback mode: + +- The BMC mounts only the public boot medium and a config medium that holds no + secret. The config medium carries a single-use fetch token instead of the + bootstrap payload and the report token. +- At first boot, the installed OS fetches the sealed bootstrap payload from + the first-boot service over HTTPS that it verifies. The report token comes + with the payload. +- The fetch token is bound to the Machine's IPAM address and expires within + the first-boot phase. +- A second use of the fetch token ends the operation `OutcomeUnknown` and + places a recovery hold, because someone else may hold the token. + +Commissioning records whether the BMC verifies the certificate. The requester +records the mode in the operation's inputs. #### BMCs with one media device A BMC that can mount only one medium gets one medium per operation that -combines boot and config. It carries bootstrap data, so the media service -serves it only under the rules for config media. +combines boot and config. The media service serves it only under the rules for +config media. ### Choosing a method @@ -325,13 +380,17 @@ site: site-example-1 deliveryMethods: - method: NetworkBoot - method: VirtualMedia - mediaEndpoint: https://media.site-example-1.example.net addresses: Static # Static | DataNetwork + deadlines: {media: 15m, firstBoot: 30m} ``` Adding a method takes effect for new operations. Removing a method is refused while an operation that used it has not ended or still holds the Device. +Network boot needs synchronized DHCP, because its release proof needs DHCP +reports. A site whose DHCP is configured outside Fleet, the static mode in +[#87][boot-network-pr], cannot offer network boot and uses virtual media. + #### Machine class A provider machine class definition can list the methods its servers may use. @@ -374,9 +433,8 @@ records: - the media types each device accepts, and how many media it can mount at once; - whether the BMC offers the insert and eject actions; - the transfer protocols it accepts, including HTTPS; -- whether it verifies the media service's certificate; -- whether it allows a one-time boot from each media type; and -- whether its serial console service can be read. +- whether it verifies the media service's certificate; and +- whether it allows a one-time boot from each media type. For network boot, the worker records whether the BMC accepts a UEFI HTTP boot target and a one-time network boot. @@ -384,7 +442,7 @@ target and a one-time network boot. Reading capabilities is not enough to qualify a method. The server must boot with it. Burn-in boots with the first method whose capabilities pass. For each other method that passes, the worker boots the site's probe image with that -method, reads the probe's report token, and proves release. The probe image is +method, accepts the probe's report, and proves release. The probe image is small and holds no data. Commissioning evidence records each method as qualified or not, with the first @@ -412,9 +470,8 @@ needs one only for network boot. [Server networking][server-networking-pr] already pins the host network configuration into the installation by digest, with each interface's MAC, -addresses, gateway, and MTU. The installation waits for interfaces to be -`Allocated`, not `Programmed`. Under virtual media the site's enrollment picks -how the OS gets those addresses at first boot: +addresses, gateway, and MTU. Under virtual media the site's enrollment picks +how the OS gets those addresses: - **Data network.** The network owner's DHCP on the customer's network serves the Machine's addresses. The config medium carries none. @@ -425,12 +482,14 @@ how the OS gets those addresses at first boot: Either way IPAM is the one source of the addresses. Fleet copies them and never chooses one. -The installer brings up no network, so the install does not wait for NSO to -program the Machine's interfaces. NSO programs them as it does for a dedicated -boot NIC in [#186][server-networking-pr], with no boot attachment. The -Machine reports `NetworkReady=False` until they are programmed, and in Data -network mode the OS gets no address until then. A wipe and a burn-in hold no -Machine and run with no network. +The first-boot report and any download during a virtual media install need +the Machine's network. Under virtual media there is no boot attachment, so NSO +programs the Machine's interfaces as it does for a dedicated boot NIC in +[#186][server-networking-pr]. A virtual media install powers on only after +every interface is `Programmed`. + +A wipe and a burn-in hold no Machine. How they reach the first-boot service +under virtual media is an [open question](#open-questions). ### Isolation and security @@ -439,17 +498,23 @@ Machine and run with no network. - **One BMC, its own media.** Only the worker that holds the Device's fence inserts media, and only at the BMC endpoint in the operation's Device snapshot. No customer-facing session can insert media. -- **Reachability.** The media endpoint must be reachable from the site's BMC - network. It accepts requests only from that network's addresses. It serves a - config URL only to the Device's BMC address from the snapshot. +- **Site network paths.** These are site network prerequisites: + - a route from the site's BMC network to the central media service; and + - a route from the Machine's data network to the first-boot service and to + the source or mirror of every artifact the installer downloads. +- **Media service access.** The media service accepts requests only from BMC + network addresses, and serves a config URL only to the Device's BMC address + from the snapshot. - **Public boot media.** A boot medium holds no customer or operation data. -- **Scoped config media.** A config medium is served only over HTTPS that the - BMC verifies, at its capability URL, while its window is open. A BMC that - does not verify the media service's certificate gets virtual media only for - operations with no bootstrap data, such as a wipe or a burn-in. +- **Scoped config media.** A config medium with bootstrap data is served only + over HTTPS that the BMC verifies, at its capability URL, while its window is + open. A BMC that does not verify gets the [fallback + mode](#bmcs-that-do-not-verify-the-media-certificate). +- **First-boot service access.** It accepts a report or a fetch only from one + of the Machine's IPAM addresses, with a token for an open operation. - **No secrets in records.** Journals, evidence, and logs record a digest of each URL and compare readbacks by digest. They never record a capability, a - report token, or a config URL. + token, or a config URL. ### Failure modes @@ -460,29 +525,44 @@ Machine and run with no network. | The BMC accepts an insert but never reports the media inserted | The operation ends `OutcomeUnknown`. The worker tries to eject. | | The BMC reports media after an eject | Release is unproven. The operation ends `OutcomeUnknown`. | | The BMC ignores the one-time boot and boots from disk | No report arrives. The operation ends `OutcomeUnknown` at its deadline. | -| The transfer through the BMC is slow | Virtual media deadlines are set per site. An image too large for the deadline is not offered there. | -| Many installs at once | Every BMC streams its media from the media service, over the BMC network. Network boot uses the host NICs instead. | -| A WAN outage between a site and the central cluster | Network boot stops at that site. Virtual media keeps working if the media service runs at the site with local media. | +| The transfer through the BMC is slow | The media phase ends first. The operation ends `OutcomeUnknown`. | +| The fetch token is used twice | The operation ends `OutcomeUnknown` with a hold. | +| Many installs at once | Every BMC streams its media from the media service. Network boot uses the host NICs instead. | +| A WAN outage between a site and the central cluster | Both methods stop at that site. A site-local media cache is a later option, only for a site that cannot have a route to the central media service. | #### Choosing a method as an operator | Need | Better method | | --- | --- | | Install a site's own servers before its provisioning network exists | Virtual media | -| A site with no relay or WAN path to the central DHCP service | Virtual media | +| A site whose DHCP is configured outside Fleet | Virtual media | | Many identical servers installed in parallel | Network boot | | Large images, or installs that must finish quickly | Network boot | | Delegated customer PXE | Network boot | | BMCs whose virtual media is unreliable | Network boot | +### Decisions + +The product owner decided these on 2026-11-26: + +| Question | Decision | +| --- | --- | +| BMCs that do not verify the media certificate | No bootstrap data through them. They install in the fallback mode. | +| Where the media service runs | Centrally, with the DHCP and boot services. A route from the BMC network is a site prerequisite. | +| How an install reports | The installed OS posts a first-boot report over HTTPS. Console output is diagnostics only. | +| Installers that download during install | Allowed only for artifacts pinned by digest in the operation's inputs. | +| Virtual media deadline | 45 minutes: 15 for media, 30 for first boot, overridable per site. | +| Sites whose DHCP is configured outside Fleet | No network boot, with no exception. They use virtual media. | + ### Acceptance tests These tests are required and not implemented: - A virtual media install succeeds. Afterwards the BMC reports every device empty and no override, and the media service reports no open window. -- The console report carries another operation's token, and the operation does - not succeed. +- A first-boot report carries another operation's token, comes from an address + that is not the Machine's, or names a download digest not in the inputs, and + the operation does not succeed. - An eject cannot be proven, and the install ends `OutcomeUnknown`. A settling install uses virtual media even after the site's preferred method changed, and settles the hold. @@ -500,8 +580,10 @@ These tests are required and not implemented: to a class that requires virtual media. - An operation records a method that the site does not offer, and admission refuses it without sending anything. -- A BMC that does not verify the media certificate is refused an install with - bootstrap data over virtual media. +- A BMC that does not verify the media certificate installs in the fallback + mode, and no bootstrap data reaches its media. +- A fallback fetch token is used a second time, and the operation ends + `OutcomeUnknown` with a hold. - A fetch from another address, or after the window closes, gets nothing. - The network boot tests in [#87][boot-network-pr] and [#197][central-dhcp-pr] still pass through the shared contract. @@ -522,23 +604,26 @@ describes. ### What must operators monitor? Holds with unproven release, per method. Servers reporting `MediaInserted` or -`NoDeliveryMethod`. Media service errors, open windows, and requests from -unexpected addresses. Virtual media installs near their deadline. +`NoDeliveryMethod`. Media and first-boot service errors, open windows, reused +fetch tokens, and requests from unexpected addresses. Virtual media installs +near either phase deadline. ### What does the feature depend on? -Redfish virtual media and a readable serial console on each BMC, a media -service reachable from the BMC network, and boot media in the image catalog. +Redfish virtual media on each BMC, the central media and first-boot services, +the site network routes listed above, and boot media in the image catalog. ### Does the feature add API types or calls? No new kinds. Operations gain a delivery method input. Site enrollment and the provider machine class definition gain a method list. Each virtual media -install adds a few Redfish calls and two media fetches. +install adds a few Redfish calls, two media fetches, and one first-boot +report. ## Implementation history - 2026-11-26: Proposed. +- 2026-11-26: Product decisions recorded. ## Drawbacks @@ -546,7 +631,7 @@ install adds a few Redfish calls and two media fetches. - BMC virtual media is slower and less consistent across vendors than network boot. - Every image offered on virtual media needs a boot medium artifact. -- The media service is a new service on the BMC network. +- Both methods depend on the WAN link to the central cluster. - A hold can only be settled with its own method, so one method's outage can keep a server out of use while the other method works. @@ -556,37 +641,32 @@ install adds a few Redfish calls and two media fetches. image would sit behind a per-operation URL and could not be cached. Kept only for BMCs with one media device. - **Bootstrap data on the boot medium.** Rejected. One customer's data would - sit on media that any BMC at the site may fetch. + sit on media that any BMC may fetch. - **A separate install path for virtual media.** Rejected. It would duplicate custody, fencing, and recovery. -- **A network report channel for virtual media.** Rejected for now. It would - put the installer on the customer's network with a path to a provider - endpoint. +- **A serial console report.** Rejected as proof. It needs a console reader on + every BMC, and it does not show that the OS came up on its addresses. +- **A media service at each site.** Survives a WAN outage, but adds a service + per site. Kept as a later option for sites that cannot route to the central + service. - **Network boot with static addresses and no DHCP.** Firmware support is limited, and it still needs a provisioning network. ## Open questions -- **Certificate verification.** Whether a BMC that fetches over HTTPS without - verifying the certificate may receive bootstrap data on an isolated BMC - network. -- **Where the media service runs.** At each site, which survives a WAN outage, - or centrally, which serves BMCs over the management WAN and needs each site's - fences. -- **Images that fetch during install.** Some installers download the image - over the network. Whether those can be offered on virtual media. -- **Console reader.** How the worker reads the serial console on each qualified - BMC. -- **Deadlines.** The default virtual media deadline, and whether it depends on - image size. +- **Reports from wipes and burn-ins under virtual media.** They hold no + Machine, so they have no IPAM address to post from. The proposed answer is + that the requester claims a provider address from IPAM and NSO attaches the + port to a provider network for the operation, released like a boot + attachment claim. This needs a decision before virtual media handles wipes. ## Infrastructure needed Testing needs a site with both methods, BMC emulators whose virtual media can -fail to mount, report stale state, and refuse to eject, a serial console the -worker can read, and a media service on an emulated BMC network. Hardware -qualification needs servers from each BMC vendor the provider plans to -support. +fail to mount, report stale state, and refuse to eject, BMCs that do and do not +verify certificates, and central media and first-boot services reachable from +an emulated BMC network and data network. Hardware qualification needs servers +from each BMC vendor the provider plans to support. [boot-network-pr]: https://github.com/datum-cloud/fleet/pull/87 [server-networking-pr]: https://github.com/datum-cloud/fleet/pull/186 From e4a284db2576c4910786ded69646a6571da690b7 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Thu, 26 Nov 2026 15:41:20 -0600 Subject: [PATCH 05/12] docs: Reconcile first-boot reports with images State that the first-boot report trusts the provider image's first-boot step, which the images proposal must allow, and that it is accepted only once. Say how the fallback mode computes the bootstrap digest, when the media window closes, and that network boot reports download digests and burn-in results over the provisioning network. Widen the open question to wipes, burn-ins, and probes under virtual media, which gate qualification, and note the route prerequisites for a new site. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 52 ++++++++++++++++------- 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index 173d3e67..b2d2032f 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -97,7 +97,9 @@ and evidence handling are the same for every method. - An operator brings up a new site. Before its provisioning network and relays exist, Fleet installs the site's own infrastructure servers over virtual - media. + media. The site's BMC network and those servers' data network uplinks + already route to the central cluster, through equipment that does not + depend on the servers being installed. - A provider sells many identical servers at a site with network boot. Fleet installs them in parallel over the host NICs, with no traffic through the BMCs. @@ -130,13 +132,15 @@ and evidence handling are the same for every method. - **OS images and bootstrap data ([#184][images-pr]):** unchanged for the customer. Three additions: - an image needs a boot medium artifact to be offered on virtual media; - - under virtual media, the installed OS posts a first-boot report; and + - under virtual media, the installed OS posts a first-boot report, so Fleet + trusts the provider image's first-boot step, which #184 does not yet; and - a BMC that does not verify the media certificate gets the bootstrap data through the installed OS instead of on its media. - **Commissioning ([#185][commissioning-pr]):** commissioning gains a delivery phase, burn-in boots with any qualified method instead of only network boot, - and under virtual media burn-in reports the same way as an install. - `Available` gains two conditions. + and burn-in reports over the network instead of the console. `Available` + gains two conditions. Virtual media burn-in and probes wait on an [open + question](#open-questions). - **PXE installation ([#59][pxe-pr]):** its customer Redfish gateway already refuses virtual media. That stays true. @@ -221,7 +225,8 @@ Network boot is the method in [#87][boot-network-pr] and - **Verify.** The boot service serves the boot script, with the report token, only to that NIC while the boot admission is open. The installer returns the token over the provisioning network with the digests that [#184][images-pr] - defines. + defines and the digest of every artifact it downloaded. A burn-in or a probe + returns its token and result the same way. - **Release.** Every declared DHCP instance reports a feed, issued after the reservation was published, that serves no address the site ever published for the Device. The worker then reads back that no boot override is set. The @@ -269,7 +274,7 @@ sequenceDiagram W->>B: insert boot medium and config medium W->>B: read back both URLs, set one-time boot, power on B->>S: fetch media over HTTPS - H->>H: install, read the payload back from disk + H->>H: install the image W->>S: close the window at the end of the media phase H->>F: first boot posts the report over HTTPS F-->>W: report accepted @@ -323,11 +328,19 @@ media service. The report carries: [#184][images-pr] defines it; and - the digest of every artifact the installer downloaded. +In the default mode the installer reads the payload back from the target disk +before reboot, as [#184][images-pr] requires. In the fallback mode the payload +first arrives at first boot, so the OS computes the digest of the payload it +fetched and applied. + The service accepts the report only from one of the Machine's IPAM addresses, and only if every value matches the operation. An accepted report also proves -that the OS came up with its IPAM addresses. A wipe or a burn-in posts the -token and its own result the same way, from its own address. See [Open -questions](#open-questions). +that the OS came up with its IPAM addresses. + +The report comes from the provider-built image's first-boot step, before the +customer's bootstrap runs, and the service accepts it only once. That trusts +the provider image after install, which [#184][images-pr] does not do today, +so that proposal must allow this proof for virtual media. Console output is optional diagnostics. It is never proof. @@ -337,9 +350,14 @@ A virtual media install has a 45-minute deadline in two phases: | Phase | Default | Ends when | | --- | --- | --- | -| Media | 15 minutes from power-on | The media window closes. The installer must have read everything it needs from the media. | +| Media | 15 minutes from power-on | The media window closes, always at that time. | | First boot | 30 minutes after the media phase | The first-boot report is accepted. | +A qualified boot medium reads everything it needs from the media within the +media phase. An installer that is still reading when the window closes cannot +finish, and the operation ends `OutcomeUnknown` at the end of the first-boot +phase if no report arrives. + A site can override both. The defaults are tuned from lab and site measurements. @@ -488,7 +506,7 @@ programs the Machine's interfaces as it does for a dedicated boot NIC in [#186][server-networking-pr]. A virtual media install powers on only after every interface is `Programmed`. -A wipe and a burn-in hold no Machine. How they reach the first-boot service +A wipe, a burn-in, and a commissioning probe hold no Machine. How they report under virtual media is an [open question](#open-questions). ### Isolation and security @@ -654,11 +672,13 @@ report. ## Open questions -- **Reports from wipes and burn-ins under virtual media.** They hold no - Machine, so they have no IPAM address to post from. The proposed answer is - that the requester claims a provider address from IPAM and NSO attaches the - port to a provider network for the operation, released like a boot - attachment claim. This needs a decision before virtual media handles wipes. +- **Reports from wipes, burn-ins, and probes under virtual media.** They hold + no Machine, so they have no IPAM address to post from. The proposed answer + is that the requester claims a provider address from IPAM and NSO attaches + the port to a provider network for the operation, released like a boot + attachment claim. Until this is decided, virtual media cannot qualify a + server, wipe one, or burn one in, and the virtual media qualification and + wipe acceptance tests cannot run. ## Infrastructure needed From f41cab8983bf0fd5e4608f8d3dfa4ab2523450b7 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Thu, 26 Nov 2026 15:59:21 -0600 Subject: [PATCH 06/12] docs: Give Machine-less operations a provider network Record the decision for wipes, burn-ins, and commissioning probes under virtual media. Each claims a provider address from IPAM and an NSO attachment to a provider network for one operation, and release proves the port detached and the claim released. A virtual media site needs that provider network. Add acceptance tests for a virtual media wipe, a detach that cannot be proven, a second first-boot report, the fallback digest check, and an installer still reading at window close. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 91 ++++++++++++++++------- 1 file changed, 64 insertions(+), 27 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index b2d2032f..e5221c6c 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -25,7 +25,6 @@ stage: alpha - [Implementation history](#implementation-history) - [Drawbacks](#drawbacks) - [Alternatives](#alternatives) -- [Open questions](#open-questions) - [Infrastructure needed](#infrastructure-needed) ## Summary @@ -125,7 +124,9 @@ and evidence handling are the same for every method. ([#186][server-networking-pr]):** become the network boot method. Their evidence gates are its verify and release steps. Two changes: a site can offer more than one method, and the boot override is read back after - release. + release. Virtual media also uses NSO to attach a port to a provider network + for one operation. See [Operations with no + Machine](#operations-with-no-machine). - **Central DHCP ([#197][central-dhcp-pr]):** its proof that every declared Kea instance dropped a reservation is the network boot release step. The media service and the first-boot service run in the same central cluster. @@ -139,8 +140,7 @@ and evidence handling are the same for every method. - **Commissioning ([#185][commissioning-pr]):** commissioning gains a delivery phase, burn-in boots with any qualified method instead of only network boot, and burn-in reports over the network instead of the console. `Available` - gains two conditions. Virtual media burn-in and probes wait on an [open - question](#open-questions). + gains two conditions. - **PXE installation ([#59][pxe-pr]):** its customer Redfish gateway already refuses virtual media. That stays true. @@ -156,8 +156,8 @@ is not allowed. 1. **Exact inputs first.** The operation records its method, image digest, bootstrap digest, host network configuration, and the digest of every artifact the installer downloads, before any effect. A method adds its own - inputs, such as a provisioning address, and never reads a mutable source - after admission. + inputs, such as a provisioning or provider address, and never reads a + mutable source after admission. 2. **Prepare under the fence.** Every prepare step, on the server or on a Fleet delivery service, runs only while the operation holds the Device's stored fence. The journal records each step before it is sent. @@ -335,7 +335,9 @@ fetched and applied. The service accepts the report only from one of the Machine's IPAM addresses, and only if every value matches the operation. An accepted report also proves -that the OS came up with its IPAM addresses. +that the OS came up with its IPAM addresses. A wipe, a burn-in, or a probe +posts its token and result from its provider address instead. See [Operations +with no Machine](#operations-with-no-machine). The report comes from the provider-built image's first-boot step, before the customer's bootstrap runs, and the service accepts it only once. That trusts @@ -506,8 +508,33 @@ programs the Machine's interfaces as it does for a dedicated boot NIC in [#186][server-networking-pr]. A virtual media install powers on only after every interface is `Programmed`. -A wipe, a burn-in, and a commissioning probe hold no Machine. How they report -under virtual media is an [open question](#open-questions). +#### Operations with no Machine + +A wipe, a burn-in, and a commissioning probe hold no Machine, so under virtual +media each gets a provider network attachment for that one operation: + +1. Before it creates the operation, the requester creates an NSO attachment + claim for the Device's port on the site's provider network, named from the + operation, and waits until NSO reports it `Programmed`. +2. The requester then claims one provider address from IPAM, also named from + the operation, and records typed references to both claims and the address + in the operation's inputs. +3. The worker writes the address onto the config medium as static + configuration. The image posts its report from that address. +4. When the report is accepted, the operation moves to `Verifying`, and the + requester deletes both claims. + +Release for these operations adds two proofs to the media proofs: NSO reports +that the attachment claim is gone and the port is off the provider network, +and IPAM reports the address claim released. The proof covers every provider +attachment for the Device, so it also covers one a held operation left. If +either proof is missing at the deadline, the operation ends `OutcomeUnknown` +with a hold, and the port stays where it is until a settling operation proves +it detached. + +A wipe at release runs after the Machine's interface claims are gone, as +[#186][server-networking-pr] requires, so the port is already off the +customer's networks. ### Isolation and security @@ -517,9 +544,13 @@ under virtual media is an [open question](#open-questions). inserts media, and only at the BMC endpoint in the operation's Device snapshot. No customer-facing session can insert media. - **Site network paths.** These are site network prerequisites: - - a route from the site's BMC network to the central media service; and + - a route from the site's BMC network to the central media service; - a route from the Machine's data network to the first-boot service and to - the source or mirror of every artifact the installer downloads. + the source or mirror of every artifact the installer downloads; and + - a provider network that NSO can attach the site's ports to, with an IPAM + pool for provider addresses and a route to the first-boot service. NSO + keeps ports on it isolated from each other, and no customer network + reaches it. - **Media service access.** The media service accepts requests only from BMC network addresses, and serves a config URL only to the Device's BMC address from the snapshot. @@ -528,8 +559,9 @@ under virtual media is an [open question](#open-questions). over HTTPS that the BMC verifies, at its capability URL, while its window is open. A BMC that does not verify gets the [fallback mode](#bmcs-that-do-not-verify-the-media-certificate). -- **First-boot service access.** It accepts a report or a fetch only from one - of the Machine's IPAM addresses, with a token for an open operation. +- **First-boot service access.** It accepts a report or a fetch only from the + operation's own address, a Machine's IPAM address or a provider address, + with a token for an open operation. - **No secrets in records.** Journals, evidence, and logs record a digest of each URL and compare readbacks by digest. They never record a capability, a token, or a config URL. @@ -571,6 +603,7 @@ The product owner decided these on 2026-11-26: | Installers that download during install | Allowed only for artifacts pinned by digest in the operation's inputs. | | Virtual media deadline | 45 minutes: 15 for media, 30 for first boot, overridable per site. | | Sites whose DHCP is configured outside Fleet | No network boot, with no exception. They use virtual media. | +| Wipes, burn-ins, and probes under virtual media | A provider address from IPAM and an NSO attachment to a provider network, for one operation, proven detached on release. | ### Acceptance tests @@ -603,6 +636,17 @@ These tests are required and not implemented: - A fallback fetch token is used a second time, and the operation ends `OutcomeUnknown` with a hold. - A fetch from another address, or after the window closes, gets nothing. +- A wipe under virtual media succeeds. Its report comes from its provider + address, and release proves the media gone, the port off the provider + network, and the address claim released. +- NSO cannot prove a wipe's port detached by the deadline, and the wipe ends + `OutcomeUnknown` with a hold. +- A second first-boot report for the same operation is refused, and the first + result stands. +- A fallback-mode report whose bootstrap digest does not match the payload the + first-boot service served does not succeed. +- An installer still reading the media when the window closes sends no report, + and the operation ends `OutcomeUnknown` at the end of the first-boot phase. - The network boot tests in [#87][boot-network-pr] and [#197][central-dhcp-pr] still pass through the shared contract. @@ -629,7 +673,8 @@ near either phase deadline. ### What does the feature depend on? Redfish virtual media on each BMC, the central media and first-boot services, -the site network routes listed above, and boot media in the image catalog. +the site network paths listed above, NSO attachment to the provider network, +and boot media in the image catalog. ### Does the feature add API types or calls? @@ -641,7 +686,8 @@ report. ## Implementation history - 2026-11-26: Proposed. -- 2026-11-26: Product decisions recorded. +- 2026-11-26: Product decisions recorded, including operations with no + Machine. ## Drawbacks @@ -670,22 +716,13 @@ report. - **Network boot with static addresses and no DHCP.** Firmware support is limited, and it still needs a provisioning network. -## Open questions - -- **Reports from wipes, burn-ins, and probes under virtual media.** They hold - no Machine, so they have no IPAM address to post from. The proposed answer - is that the requester claims a provider address from IPAM and NSO attaches - the port to a provider network for the operation, released like a boot - attachment claim. Until this is decided, virtual media cannot qualify a - server, wipe one, or burn one in, and the virtual media qualification and - wipe acceptance tests cannot run. - ## Infrastructure needed Testing needs a site with both methods, BMC emulators whose virtual media can fail to mount, report stale state, and refuse to eject, BMCs that do and do not -verify certificates, and central media and first-boot services reachable from -an emulated BMC network and data network. Hardware qualification needs servers +verify certificates, central media and first-boot services reachable from an +emulated BMC network and data network, and a provider network that NSO can +attach ports to. Hardware qualification needs servers from each BMC vendor the provider plans to support. [boot-network-pr]: https://github.com/datum-cloud/fleet/pull/87 From d2fee670ef49b44ea6cd25b7a28e594bb9ec4782 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Thu, 26 Nov 2026 16:01:36 -0600 Subject: [PATCH 07/12] docs: Define provider claim lifecycle on every path Order release so the requester deletes the attachment claim after the report is accepted, and deletes the address claim only once the port is proven detached. Delete claims on failure, for never-created operations, after a settling operation is admitted, on Retry, and on retirement, so a held operation's claims cannot block its settlement. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 40 ++++++++++++++++++----- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index e5221c6c..cb0a3b0a 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -521,16 +521,34 @@ media each gets a provider network attachment for that one operation: in the operation's inputs. 3. The worker writes the address onto the config medium as static configuration. The image posts its report from that address. -4. When the report is accepted, the operation moves to `Verifying`, and the - requester deletes both claims. -Release for these operations adds two proofs to the media proofs: NSO reports -that the attachment claim is gone and the port is off the provider network, -and IPAM reports the address claim released. The proof covers every provider -attachment for the Device, so it also covers one a held operation left. If -either proof is missing at the deadline, the operation ends `OutcomeUnknown` -with a hold, and the port stays where it is until a settling operation proves -it detached. +Release adds two proofs to the media proofs, in this order: + +1. The first-boot service accepts the report, which spends the token, and the + operation moves to `Verifying`. The requester deletes the attachment claim, + and the worker waits until NSO reports every provider attachment for the + Device gone and the port off the provider network. +2. With the port detached and the token spent, nothing can use the address. + The requester deletes the address claim, and the worker waits until IPAM + reports it released. + +If either proof is missing at the deadline, the operation ends +`OutcomeUnknown` with a hold. + +The requester deletes an operation's claims in every other case too, as +[#186][server-networking-pr] does for boot claims: + +- **Failed or cancelled.** Nothing was sent, so both claims are deleted. +- **Never created.** A claim pair whose operation was never created is deleted + by its requester, which finds it by the operation's name. +- **Held.** The held claims stay, and the port stays on the provider network, + until a settling operation is admitted. Admission raises the fence and stops + the held worker, so the requester then deletes the held claims. The settling + operation's own release proof covers every provider attachment for the + Device, including the held one. +- **Retry.** A custody `Retry` creates a new operation with a new name, so it + gets a new claim pair. +- **Retired.** Retiring the Device deletes any claims left. A wipe at release runs after the Machine's interface claims are gone, as [#186][server-networking-pr] requires, so the port is already off the @@ -641,6 +659,10 @@ These tests are required and not implemented: network, and the address claim released. - NSO cannot prove a wipe's port detached by the deadline, and the wipe ends `OutcomeUnknown` with a hold. +- A wipe sends no report and ends `OutcomeUnknown`. When a settling wipe is + admitted, the held claims are deleted, and the settling wipe succeeds only + after both its own and the held attachments are proven gone. +- A wipe that fails before sending anything leaves no claims behind. - A second first-boot report for the same operation is refused, and the first result stands. - A fallback-mode report whose bootstrap digest does not match the payload the From 923ca953e5463fdfc9eef9aaaa20e5b151f9e4cf Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Thu, 26 Nov 2026 16:03:03 -0600 Subject: [PATCH 08/12] docs: Order held claim release and claim cleanup Delete a held address claim only after the settling operation proves the port detached, keep the port attached while any claim remains, and refuse reports from a superseded fence. Fix the operation name before any claim, clean up orphaned claims after five minutes, and have admission refuse an operation whose claims are gone. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 41 ++++++++++++++++------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index cb0a3b0a..c26d78fb 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -513,21 +513,29 @@ every interface is `Programmed`. A wipe, a burn-in, and a commissioning probe hold no Machine, so under virtual media each gets a provider network attachment for that one operation: -1. Before it creates the operation, the requester creates an NSO attachment - claim for the Device's port on the site's provider network, named from the +1. The requester fixes the operation's name first, either derived or + generated and recorded. It then creates an NSO attachment claim for the + Device's port on the site's provider network, named and labeled from the operation, and waits until NSO reports it `Programmed`. 2. The requester then claims one provider address from IPAM, also named from the operation, and records typed references to both claims and the address in the operation's inputs. -3. The worker writes the address onto the config medium as static +3. Admission checks that both claims exist and are the operation's own, as + [#186][server-networking-pr] does for boot claims. Otherwise it refuses the + operation, and nothing is sent. +4. The worker writes the address onto the config medium as static configuration. The image posts its report from that address. +NSO keeps a port on the provider network while any attachment claim for it +remains. The first-boot service refuses a report or a fetch from an operation +whose fence is below the Device's stored fence. + Release adds two proofs to the media proofs, in this order: 1. The first-boot service accepts the report, which spends the token, and the operation moves to `Verifying`. The requester deletes the attachment claim, - and the worker waits until NSO reports every provider attachment for the - Device gone and the port off the provider network. + and the worker waits until NSO reports no attachment claim left for the + Device and the port off the provider network. 2. With the port detached and the token spent, nothing can use the address. The requester deletes the address claim, and the worker waits until IPAM reports it released. @@ -539,13 +547,18 @@ The requester deletes an operation's claims in every other case too, as [#186][server-networking-pr] does for boot claims: - **Failed or cancelled.** Nothing was sent, so both claims are deleted. -- **Never created.** A claim pair whose operation was never created is deleted - by its requester, which finds it by the operation's name. +- **Never created.** The requester deletes every claim, one or two, labeled + with an operation that still does not exist five minutes after the first + claim was created. A slow requester whose claims were deleted is refused at + admission, so the cleanup never races an effect. - **Held.** The held claims stay, and the port stays on the provider network, - until a settling operation is admitted. Admission raises the fence and stops - the held worker, so the requester then deletes the held claims. The settling - operation's own release proof covers every provider attachment for the - Device, including the held one. + until a settling operation is admitted. Admission raises the fence, so the + held worker stops and the first-boot service refuses the held operation. + The settling worker powers the server off and ejects every medium before it + prepares its own delivery, and the requester then deletes the held + attachment claim. The port stays attached under the settling operation's + own claim. The held address claim is deleted with the settling operation's + own, only after its release proves no attachment claim left. - **Retry.** A custody `Retry` creates a new operation with a new name, so it gets a new claim pair. - **Retired.** Retiring the Device deletes any claims left. @@ -660,8 +673,10 @@ These tests are required and not implemented: - NSO cannot prove a wipe's port detached by the deadline, and the wipe ends `OutcomeUnknown` with a hold. - A wipe sends no report and ends `OutcomeUnknown`. When a settling wipe is - admitted, the held claims are deleted, and the settling wipe succeeds only - after both its own and the held attachments are proven gone. + admitted, the held operation's late report is refused, and the held address + claim is deleted only after the settling wipe proves the port detached. +- A requester creates one claim and crashes. The claim is deleted after five + minutes, and an operation created later is refused at admission. - A wipe that fails before sending anything leaves no claims behind. - A second first-boot report for the same operation is refused, and the first result stands. From 1909c892d4b2c92d01e32007820a43fe7215c32b Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Thu, 26 Nov 2026 16:04:05 -0600 Subject: [PATCH 09/12] docs: Name the actor for provider claim cleanup A requester creates an operation only within five minutes of its first claim and sweeps orphaned claims when it starts and periodically, so a crashed requester cleans up after restart without racing a creation. The settling operation's requester deletes the held attachment claim. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 27 ++++++++++++++--------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index c26d78fb..4cf41f4f 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -547,18 +547,24 @@ The requester deletes an operation's claims in every other case too, as [#186][server-networking-pr] does for boot claims: - **Failed or cancelled.** Nothing was sent, so both claims are deleted. -- **Never created.** The requester deletes every claim, one or two, labeled - with an operation that still does not exist five minutes after the first - claim was created. A slow requester whose claims were deleted is refused at - admission, so the cleanup never races an effect. +- **Never created.** A requester creates an operation only within five + minutes of its first claim. Past that it abandons the name and starts again + under a new one. The requester also sweeps when it starts and then + periodically: it deletes every claim, one or two, labeled with an operation + that still does not exist five minutes after the first claim. A requester + that crashed therefore cleans up after itself when it restarts. Because no + requester creates an operation after five minutes, the sweep cannot delete + claims under an operation that is about to be admitted. If claims are + missing anyway, admission refuses the operation and nothing is sent. - **Held.** The held claims stay, and the port stays on the provider network, until a settling operation is admitted. Admission raises the fence, so the held worker stops and the first-boot service refuses the held operation. The settling worker powers the server off and ejects every medium before it - prepares its own delivery, and the requester then deletes the held - attachment claim. The port stays attached under the settling operation's - own claim. The held address claim is deleted with the settling operation's - own, only after its release proves no attachment claim left. + prepares its own delivery. The settling operation's requester then deletes + the held attachment claim, which it finds through the hold. The port stays + attached under the settling operation's own claim. The held address claim + is deleted with the settling operation's own, only after its release proves + no attachment claim left. - **Retry.** A custody `Retry` creates a new operation with a new name, so it gets a new claim pair. - **Retired.** Retiring the Device deletes any claims left. @@ -675,8 +681,9 @@ These tests are required and not implemented: - A wipe sends no report and ends `OutcomeUnknown`. When a settling wipe is admitted, the held operation's late report is refused, and the held address claim is deleted only after the settling wipe proves the port detached. -- A requester creates one claim and crashes. The claim is deleted after five - minutes, and an operation created later is refused at admission. +- A requester creates one claim and crashes. After it restarts, its sweep + deletes the claim once five minutes have passed, and it never creates that + operation. - A wipe that fails before sending anything leaves no claims behind. - A second first-boot report for the same operation is refused, and the first result stands. From 21a2dbf7e50d3bafd607a59f496b676c0e884ee9 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Fri, 27 Nov 2026 09:55:29 -0600 Subject: [PATCH 10/12] docs: Record boot delivery prototype decisions Record the decisions from the first prototype: - workers authenticate to the media service with client certificates; - the coordinator reads each site's methods from its enrollment; - a refused window open fails only before anything reaches the BMC; - the report carries the boot medium digest the image digest pins; - a hold on a method the site stopped offering waits, with a reason; - the media service sweeps expired config media in the background; and - the BMC address restriction is verified on a real site network before production. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 67 +++++++++++++++++++---- 1 file changed, 56 insertions(+), 11 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index 4cf41f4f..12a59612 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -200,9 +200,9 @@ for every one of them: - An installation or a wipe prepares one method, so its settling operation uses that method. The requester reads it from the hold. Admission skips the - site, class, and qualification checks for it, because the held operation - passed them. A settling installation or wipe that records another method is - refused with `DeliveryMethodMismatch`. + class and qualification checks for it, because the held operation passed + them. A settling installation or wipe that records another method is refused + with `DeliveryMethodMismatch`. - A commissioning exercises every method its operation lists. A settling commissioning must list every method in the hold, or it is refused with `DeliveryMethodMismatch`. @@ -210,7 +210,10 @@ for every one of them: Other operations wait or are refused exactly as custody defines today. A hold therefore waits for its own method. A network boot hold at a site whose -WAN link is down stays until the link returns. +WAN link is down stays until the link returns. A hold whose method the site +stopped offering waits until the site offers it again. The coordinator admits +no settling operation for it until then, and staff see the hold with the +reason `HeldMethodNotOffered`. ### Network boot @@ -257,11 +260,19 @@ operation and holds two URLs: The URL capability and the report token are different values. A BMC learns the capability. Only the config medium's contents carry the report token. +Workers authenticate to the media service with client certificates. The +service refuses any window operation from a client that presents no +certificate, or one whose identity is not the worker for that Device's site. + The media service follows the site's stored fence for each Device. It opens a window only for the operation that holds the Device's stored fence. It closes every window of a Device when the fence rises, and closes each window at its deadline, which is never later than the operation's deadline. +The media service also sweeps in the background. It deletes each config medium +and its capability once the report deadline passes or custody moves past the +operation, whether or not anyone reads it again. + ```mermaid sequenceDiagram participant W as Site worker @@ -323,7 +334,8 @@ Fleet's first-boot service. The first-boot service runs centrally, with the media service. The report carries: - the report token; -- the image digest; +- the boot medium's content digest, which the operation's recorded image + digest pins through the image's artifact manifest; - the salted bootstrap digest of the payload the OS applied, as [#184][images-pr] defines it; and - the digest of every artifact the installer downloaded. @@ -404,8 +416,13 @@ deliveryMethods: deadlines: {media: 15m, firstBoot: 30m} ``` -Adding a method takes effect for new operations. Removing a method is refused -while an operation that used it has not ended or still holds the Device. +The site's enrollment is the only place a site declares its methods. The +coordinator reads the declaration from the enrollment, at admission and when +it evaluates a hold. + +Adding a method takes effect for new operations. Removing a method stops new +operations from selecting it. A running operation finishes with its method, +and a held one waits as [Settling a hold](#settling-a-hold) describes. Network boot needs synchronized DHCP, because its release proof needs DHCP reports. A site whose DHCP is configured outside Fleet, the static mode in @@ -588,9 +605,12 @@ customer's networks. pool for provider addresses and a route to the first-boot service. NSO keeps ports on it isolated from each other, and no customer network reaches it. -- **Media service access.** The media service accepts requests only from BMC - network addresses, and serves a config URL only to the Device's BMC address - from the snapshot. +- **Media service access.** The media service accepts media requests only + from BMC network addresses, and window operations only from workers with a + valid client certificate. It serves a config URL only to the Device's BMC + address from the snapshot. That address restriction must be verified on a + real site network before production, because address translation on the + path would defeat it. - **Public boot media.** A boot medium holds no customer or operation data. - **Scoped config media.** A config medium with bootstrap data is served only over HTTPS that the BMC verifies, at its capability URL, while its window is @@ -607,7 +627,7 @@ customer's networks. | Failure | Outcome | | --- | --- | -| The media service refuses to open a window | Nothing was sent, so the operation fails. | +| The media service refuses to open a window | `Failed` if nothing was sent to the BMC yet. `OutcomeUnknown` otherwise. | | The open times out, so a window may exist | The operation ends `OutcomeUnknown`. The worker tries to close the window. | | The BMC accepts an insert but never reports the media inserted | The operation ends `OutcomeUnknown`. The worker tries to eject. | | The BMC reports media after an eject | Release is unproven. The operation ends `OutcomeUnknown`. | @@ -642,12 +662,36 @@ The product owner decided these on 2026-11-26: | Sites whose DHCP is configured outside Fleet | No network boot, with no exception. They use virtual media. | | Wipes, burn-ins, and probes under virtual media | A provider address from IPAM and an NSO attachment to a provider network, for one operation, proven detached on release. | +The product owner decided these on 2026-11-27, from the first prototype: + +| Question | Decision | +| --- | --- | +| How workers reach the media service | With client certificates. The service refuses window operations from any other client. | +| Where a site declares its methods | Its enrollment. The coordinator reads the declaration from there. | +| A refused window open | `Failed` before anything reaches the BMC, `OutcomeUnknown` after. | +| What the report proves about the image | It carries the boot medium's content digest, which the recorded image digest pins. | +| A hold whose method the site stopped offering | It waits until the site offers the method again, and staff see why. | +| Expired config media | The media service sweeps them and their capabilities in the background. | +| Restricting a config medium to the BMC address | Verified on a real site network before production. | + ### Acceptance tests These tests are required and not implemented: - A virtual media install succeeds. Afterwards the BMC reports every device empty and no override, and the media service reports no open window. +- A client with no certificate, or with another site's certificate, tries to + open or close a window, and the media service refuses it. +- The media service refuses a window before anything reaches the BMC, and the + operation ends `Failed`. It refuses one after the worker has sent a step to + the BMC, and the operation ends `OutcomeUnknown`. +- A report whose boot medium digest does not match the one the image digest + pins does not succeed. +- The site stops offering a held operation's method. No settling operation is + admitted, staff see `HeldMethodNotOffered`, and settlement resumes once the + site offers the method again. +- A config medium passes its report deadline with no further reads, and the + sweep deletes it and its capability. - A first-boot report carries another operation's token, comes from an address that is not the Machine's, or names a download digest not in the inputs, and the operation does not succeed. @@ -732,6 +776,7 @@ report. - 2026-11-26: Proposed. - 2026-11-26: Product decisions recorded, including operations with no Machine. +- 2026-11-27: Decisions from the first prototype recorded. ## Drawbacks From 3af0c31943ef8c70221ff56a0a85560a35e7e890 Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Fri, 27 Nov 2026 20:20:57 -0600 Subject: [PATCH 11/12] docs: Align boot delivery with the images proposal List the first-boot service as a scoped reader of sealed payloads among the changes to #184, state that both proposals run the boot service centrally with per-site certificates, and drop the stale text saying #184 does not yet allow the first-boot report. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index 12a59612..6bba53e3 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -131,12 +131,17 @@ and evidence handling are the same for every method. instance dropped a reservation is the network boot release step. The media service and the first-boot service run in the same central cluster. - **OS images and bootstrap data ([#184][images-pr]):** unchanged for the - customer. Three additions: + customer. Four additions, which #184 now carries: - an image needs a boot medium artifact to be offered on virtual media; - - under virtual media, the installed OS posts a first-boot report, so Fleet - trusts the provider image's first-boot step, which #184 does not yet; and + - under virtual media, success also depends on one first-boot report from + the provider image's first-boot step; - a BMC that does not verify the media certificate gets the bootstrap data - through the installed OS instead of on its media. + through the installed OS instead of on its media; and + - the first-boot service becomes a reader of sealed payloads, scoped as + [described below](#bmcs-that-do-not-verify-the-media-certificate). + + Both proposals run the boot service centrally, with a certificate and + authorization for each site. - **Commissioning ([#185][commissioning-pr]):** commissioning gains a delivery phase, burn-in boots with any qualified method instead of only network boot, and burn-in reports over the network instead of the console. `Available` @@ -352,9 +357,9 @@ posts its token and result from its provider address instead. See [Operations with no Machine](#operations-with-no-machine). The report comes from the provider-built image's first-boot step, before the -customer's bootstrap runs, and the service accepts it only once. That trusts -the provider image after install, which [#184][images-pr] does not do today, -so that proposal must allow this proof for virtual media. +customer's bootstrap runs, and the service accepts it only once. +[#184][images-pr] allows this one exception to its rule that success never +depends on the installed OS. Console output is optional diagnostics. It is never proof. @@ -388,6 +393,10 @@ bootstrap data. Such a BMC can still install in a fallback mode: with the payload. - The fetch token is bound to the Machine's IPAM address and expires within the first-boot phase. +- The first-boot service reads the operation's sealed payload by name only + after a fetch presents a matching token from that address, and only while + the first-boot phase is open. It cannot list, watch, or write payloads, and + keeps no copy after answering the fetch. - A second use of the fetch token ends the operation `OutcomeUnknown` and places a recovery hold, because someone else may hold the token. From 5a67c973ebd80fafb00642aedcffcf34f219b80c Mon Sep 17 00:00:00 2001 From: Scot Wells Date: Fri, 27 Nov 2026 20:37:47 -0600 Subject: [PATCH 12/12] docs: State which image changes #184 carries The merged images proposal allows the first-boot report and the first-boot service as a payload reader. The boot medium requirement and the fallback delivery remain this proposal's additions. Co-Authored-By: Claude Opus 5.5 --- docs/enhancements/boot-delivery/README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/enhancements/boot-delivery/README.md b/docs/enhancements/boot-delivery/README.md index 6bba53e3..eac775eb 100644 --- a/docs/enhancements/boot-delivery/README.md +++ b/docs/enhancements/boot-delivery/README.md @@ -131,15 +131,17 @@ and evidence handling are the same for every method. instance dropped a reservation is the network boot release step. The media service and the first-boot service run in the same central cluster. - **OS images and bootstrap data ([#184][images-pr]):** unchanged for the - customer. Four additions, which #184 now carries: - - an image needs a boot medium artifact to be offered on virtual media; + customer. #184 already allows two of this proposal's needs: - under virtual media, success also depends on one first-boot report from - the provider image's first-boot step; - - a BMC that does not verify the media certificate gets the bootstrap data - through the installed OS instead of on its media; and - - the first-boot service becomes a reader of sealed payloads, scoped as + the provider image's first-boot step; and + - the first-boot service is a reader of sealed payloads, scoped as [described below](#bmcs-that-do-not-verify-the-media-certificate). + This proposal adds two more to the image contract: + - an image needs a boot medium artifact to be offered on virtual media; and + - a BMC that does not verify the media certificate gets the bootstrap data + through the installed OS instead of on its media. + Both proposals run the boot service centrally, with a certificate and authorization for each site. - **Commissioning ([#185][commissioning-pr]):** commissioning gains a delivery