diff --git a/README.md b/README.md index 778018b3..4376c228 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,10 @@ today. Then choose a topic: | [Operations](docs/operations/README.md) | Local validation, deployment packaging, and acceptance | | [Troubleshooting](docs/troubleshooting/README.md) | Expected limitations, diagnostic entry points, and safe recovery boundaries | +The [Fleet management enhancement](docs/enhancements/fleet-management/README.md) +proposes physical inventory APIs, project ownership, and management/federation +control-plane responsibilities. + The [Bare Metal CLI enhancement](docs/enhancements/metal-cli/README.md) proposes `datumctl metal` discovery, machine management, and safe recovery workflows. diff --git a/docs/architecture/design.md b/docs/architecture/design.md index 125d7209..a893e2d5 100644 --- a/docs/architecture/design.md +++ b/docs/architecture/design.md @@ -5,6 +5,11 @@ Reviewed on 2026-10-27. This is a synthesis for implementation planning, not a replacement for the source proposals or a claim that their APIs exist. +Design alignment on 2026-11-14: the current enhancements refine the historical +source vocabulary below without rewriting its provenance. New contracts remain +proposed; no backwards-compatibility bridge or migration from illustrative APIs +is required. + ## Source proposals | Source | Reviewed revision | Contribution | @@ -32,12 +37,17 @@ and coordinated changes above that shared service. ## Subsystem boundaries +The [Fleet management enhancement](../enhancements/fleet-management/README.md) scopes +the operator service and proposes how provider projects, consumer projects, the +Fleet control plane, and the Federation Control Plane share responsibilities. +Its inventory placement and delivery milestones remain proposed. + All names below describe proposed resources, not implemented schemas. | Subsystem | Responsibilities and principal resources | | --- | --- | | Inventory | `Facility`, `Rack`, `DeviceClaim`, `Device`, `Cable`, and `PowerFeed`: approved installation plans, actual assets, physical reservations, and verification evidence. | -| Capacity publication | Provider `MachineClass` definitions and consumer-local references; discovery and safe summaries through service enablement and IAM. Publication does not reserve capacity or grant source-use permission. | +| Capacity publication | Provider `MachineOffering` product policy (including installation modes and management capabilities), `MachineOfferingAssignment` acquisition audience/profile restrictions, and one-hop consumer `MachineClass` published views. `MachineProfile` is immutable hardware requirements. Publication does not reserve capacity or independently grant acquisition permission. | | Machine allocation | Provider `MachineCapacity`, customer `Machine`, and private `MachineAllocation`: exclusive reservation, admission of consumer operations, activation, and release across provider and consumer projects. | | Bare-metal provisioning | Typed provider resources and adapters: execute admitted preparation, installation, power, console, and cleanup operations against exact assets. Backend workflows remain private. | | OS configuration | `MachineImage`, `InterfaceClass`, `Installation`, and `OSConfigPolicy`: approved artifacts, immutable installation requests, configuration composition, and one selected executor per incarnation. | @@ -45,6 +55,10 @@ All names below describe proposed resources, not implemented schemas. | Node services | `NodeService`: per-region service intent, stable slots on managed NodeClaims, placement, rolling updates, and readiness reporting. | The Bare Metal service uses `metal.datumapis.com` for allocation and installation. +Provider product/access policy uses `provider.metal.datumapis.com`. Metal is the +public service; Fleet is optional fulfillment. Supply selectors and provider +execution configuration are private, not part of a published offering. Public +BMC `MachineManagementSession` resources remain in the Metal group. Physical inventory uses `fleet.datumapis.com`; the intended internal location handoff uses `coordination.fleet.datumapis.com`. The [API architecture](README.md) records implemented resources, proposed contracts, control-plane placement, and @@ -72,15 +86,22 @@ their owning services. Fleet consumes these contracts and their evidence. 3. **Use one allocator.** Standalone consumers and managed clusters compete through the same durable reservation protocol. Create one immutable, terminal MachineAllocation between the customer Machine and provider MachineCapacity; - retain current authorization, quota holds, class revisions, and local source - object identity as private admission evidence. Names, not cross-control-plane + retain acquisition authorization, quota holds, exact offering/assignment and + profile identities/revisions, accepted offering contract content/digest and + installation/management capabilities as private admission evidence. Names, + not cross-control-plane Kubernetes UIDs, are authored references. Overlapping classes must not duplicate supply. 4. **Separate discovery from authorization.** Consumer MachineClasses reference a - provider definition in one hop. Check current source-use permission, + provider MachineOffering in one hop. Check current acquisition permission, entitlement, quota, and placement feasibility at allocation commit. A copied reference, cached status, namespace, or privileged controller identity is not proof of consumer access. + Offering or assignment withdrawal blocks new allocations. Existing bindings + use retained capabilities plus current action/input permissions, not a new + acquisition check. Offering edits cannot silently mutate their contract. + Explicit suspension/emergency restrictions are separate and attributable; + they never discard custody or prevent authorized cleanup. 5. **Persist exact inputs before effects.** Retain admitted plans, artifacts, digests, target identities, predecessor preconditions, execution authority, and operation correlation. Timeouts mean unknown outcomes; recover the existing @@ -97,6 +118,28 @@ their owning services. Fleet consumes these contracts and their evidence. compare generated outputs, then transfer one output's ownership at a time. Adoption cannot briefly expose an active machine as free or reprovision it. +## Federation and shared acceptance + +Management writes admitted intent and exact targeting policy on the hub. The +selected cell writes execution status only on its LOCAL copy; Karmada reflects +that status onto the hub copy. Management validates operation revision, retained +asset/allocation/Installation and cell incarnations, fencing epoch, freshness, +and evidence before projecting public status. Locations hold no direct hub or +project API credentials. Missing or hostile-member evidence remains unknown. + +The [Fleet scope/writer table](../enhancements/fleet-management/README.md#project-and-control-plane-responsibilities) +defines intentional differences between inventory, consumer, protected hub and +cell namespaces. Namespace equality is not project identity or authority. Its +[authority records](../enhancements/fleet-management/README.md#retained-authority-records) +separate allocation acceptance, operation admission, execution attempts and +cleanup custody. The [shared A1–A7 scenarios](../enhancements/fleet-management/README.md#shared-design-acceptance-scenarios) +cover acquisition races, withdrawal versus runtime permission, installation +modes, federated status, cleanup and non-Fleet fulfillment. They align with +[offerings/access #58](https://github.com/datum-cloud/fleet/pull/58), +[BMC #41](https://github.com/datum-cloud/fleet/pull/41) and +[PXE #59](https://github.com/datum-cloud/fleet/pull/59); their runtime verification +is future work, not a result of this documentation change. + ## Node services and consumer pools The extension makes Compute a consumer of Fleet-managed pools. A named consumer diff --git a/docs/enhancements/fleet-management/README.md b/docs/enhancements/fleet-management/README.md new file mode 100644 index 00000000..2d1ae666 --- /dev/null +++ b/docs/enhancements/fleet-management/README.md @@ -0,0 +1,831 @@ +--- +status: provisional +stage: alpha +--- + +# Fleet management service + +- [Summary](#summary) +- [Motivation](#motivation) +- [Proposal](#proposal) + - [User stories](#user-stories) + - [Managing facilities and physical capacity](#managing-facilities-and-physical-capacity) + - [Planning installations and registering equipment](#planning-installations-and-registering-equipment) + - [Operating and maintaining infrastructure](#operating-and-maintaining-infrastructure) + - [Providing capacity to consumers](#providing-capacity-to-consumers) +- [Design details](#design-details) + - [API design](#api-design) + - [References, identity, and scope](#references-identity-and-scope) + - [Status contract](#status-contract) + - [Project and control-plane responsibilities](#project-and-control-plane-responsibilities) + - [Components and authoritative writers](#components-and-authoritative-writers) + - [End-to-end lifecycle](#end-to-end-lifecycle) + - [Platform integration](#platform-integration) + - [Recovery and project lifecycle](#recovery-and-project-lifecycle) + - [Acceptance tests](#acceptance-tests) +- [Production readiness review questionnaire](#production-readiness-review-questionnaire) +- [Drawbacks](#drawbacks) +- [Alternatives](#alternatives) +- [Open design questions](#open-design-questions) +- [Infrastructure needed](#infrastructure-needed) + +## Summary + +Fleet will let infrastructure operators plan installations, register equipment, +verify physical dependencies, and make eligible capacity available to consumers. +Six resources define its physical inventory contract: `Facility`, `Rack`, +`DeviceClaim`, `Device`, `Cable`, and `PowerFeed`. They share the +`fleet.datumapis.com` API group while retaining separate identities and lifecycles. + +Service Provider Projects own infrastructure and supply. Consumer Projects own +requests for that supply. The Fleet control plane reconciles these contracts and +retains operation authority; the Federation Control Plane delivers admitted work +to selected location control planes. These are distinct ownership, coordination, +and execution boundaries, not four interchangeable stores of the same objects. + +This enhancement scopes the service and proposes its project and control-plane +placement. It builds on the [design context](../../architecture/design.md), the +[API architecture](../../architecture/README.md), and the imported +[source proposal](../../proposals/fleet-management/README.md), whose reviewed +revisions are recorded in the [migration record](../../proposals/fleet-management/MIGRATION.md). +The detailed [inventory contract](../../proposals/fleet-management/inventory.md) +and [machine lifecycle enhancement](../machine-lifecycle/README.md) remain the +contracts for their respective lifecycles; this document does not replace them. + +### Implementation status + +The repository contains six alpha Metal CRDs, a lifecycle library, synthetic +provider and staging fixtures, and partially wired management components. +Physical inventory CRDs, the federation handoff CRD, and real provider execution +are not implemented. Production authority integrations remain incomplete. See +[implementation status](../../development/README.md) for the actual supported paths. + +Every new API, control-plane assignment, workflow, and acceptance criterion below +is proposed, not a claim of deployed behavior. This document adds no CRDs, +service-catalog registration, or production deployment. + +## Motivation + +The [Fleet proposal](../../proposals/fleet-management/README.md) describes a broad +infrastructure platform. This enhancement defines the operator experience, +physical inventory API, and control-plane responsibilities that support it. +The [machine lifecycle enhancement](../machine-lifecycle/README.md) defines the +shared allocation and installation contract above that inventory. + +Fleet deployments need more than a geographic label on a server. Operators need +to know which premises and racks are available, what is reserved or installed, +which power and network paths support equipment, and which facts have actually +been verified. Consumers need usable capacity without access to those private +physical and management details. + +Keeping this information in unrelated configuration files makes it difficult to +distinguish a plan from a completed installation, prevent conflicting physical +reservations, diagnose shared dependencies, or adopt existing equipment safely. +Combining all of it into a Device would instead couple facility lifetime to an +individual asset and duplicate shared infrastructure facts. + +### Goals + +- Establish a coherent facility, rack, device, cabling, and power inventory. +- Separate approved plans, physical reservations, actual assets, and evidence. +- Make project ownership and each control plane's authority explicit. +- Integrate verified supply with the existing shared Metal allocator. +- Support owned infrastructure and the facts actually disclosed for rented supply. +- Preserve recoverable operation authority across failures and project deletion. +- Give operators actionable progress without exposing privileged data to consumers. + +### Non-goals + +- A second allocator or a replacement for the Metal consumer API. +- A full building-management, procurement, lease, billing, or warehouse system. +- Owning geographic Location, IPAM, logical networks, routing, or service policy. +- Selecting a provisioning backend, database, or new federation technology. +- Implementing managed clusters, node services, or automatic procurement in the + first delivery; those remain later consumers and extensions. +- Making facility registration, discovery, or inventory import authorize effects. + +## Proposal + +Fleet will let authorized operators manage infrastructure in Service Provider +Projects while consumers request capacity through Metal in their own projects. +Operators retain ownership of physical assets throughout preparation, allocation, +release, and reuse. The service reports plans, observed facts, and outstanding +work separately so neither a declaration nor a successful API write implies that +an installation is complete. + +### User stories + +- An infrastructure operator registers a facility and plans rack, power, and + cabling capacity before equipment arrives. +- A technician registers delivered equipment against an accepted installation + plan and records evidence without gaining permission to provision it. +- A provider publishes verified, prepared supply without exposing management + endpoints or private topology to consumers. +- A consumer requests a machine in its project without managing physical + inventory or requiring a managed cluster. +- A service operator identifies affected assets during maintenance and recovers + interrupted work without losing reservations or cleanup obligations. + +### Managing facilities and physical capacity + +Operators register physical premises independently of their provider codes and +commercial relationships. A Facility references a geographic Location; a Rack +belongs to a Facility. Optional rooms, suites, and cages can be added when a +qualified installation requires them rather than imposing a universal hierarchy. + +Fleet records mounting constraints, power supply dependencies, and known physical +connectivity. It distinguishes planned, reserved, installed, and verified usable +capacity. Free rack units alone do not establish that another server can be +installed. Power accounting must consider shared upstream limits and the required +redundancy scenario rather than adding nameplate ratings or double-counting feeds. +Cooling limits may be recorded as operator-supplied constraints; sensor integration +and automatic cooling control are outside the first delivery. + +Facility identity is not a provider account, a region, or a failure-domain label. +Multiple suppliers at the same premises should reference one authorized canonical +Facility when that relationship is established, rather than create competing +authorities merely because their provider codes differ. + +### Planning installations and registering equipment + +An operator creates a DeviceClaim describing expected equipment, placement, and +required connections. Acceptance reserves conflicting rack space, terminations, +and required power capacity durably before equipment arrives. Registration binds +one actual Device to the accepted claim through a trusted registrar. Verification +compares independent observations or authorized technician evidence with the plan. + +Servers, switches, routers, PDUs, console servers, and passive panels can all be +Devices; only appropriate supply becomes MachineCapacity. Ports and components +have stable IDs within their Device. Cables exclusively own expected connection +mappings; Devices do not maintain a second editable peer map. + +Rack-mounted placement references a Rack, from which Facility membership is +derived. Facility-only placement is allowed when rack placement is unavailable. +Neither path implies more verification than the evidence supports. Rented supply +with no disclosed physical identity must not acquire a fabricated Device or Rack. + +### Operating and maintaining infrastructure + +Operators can inspect discrepancies, identify assets affected by a physical +dependency, and plan installation, repair, movement, and retirement. Planned work +and completion evidence remain separate. The initial workflow can reference an +external work ticket and authorized manual evidence; a general-purpose work-order +API is not required to introduce Fleet. + +Maintenance policy can block new reservations or admission of affected work. +It cannot by itself authorize tenant eviction, power-off, reinstall, or wiping. +Effects on active allocations require their lifecycle authority and applicable +disruption gates. Moving equipment preserves Device identity, but requires an +approved placement transition and re-verification; replacing hardware creates a +new Device. Deleting a record does not prove physical removal or free capacity. + +### Providing capacity to consumers + +Once registration, verification, provider management policy, and preparation +requirements permit it, provider-owned MachineCapacity can offer a Device through +Metal. Inventory readiness is a prerequisite, not allocation or execution authority. +MachineClass publication exposes approved offerings and sanitized summaries to +eligible Consumer Projects, not raw physical inventory. + +Metal is the public machine service; Fleet is an optional fulfillment +implementation, not a prerequisite for every provider. The +[provider offerings/access proposal](https://github.com/datum-cloud/fleet/pull/58) +defines `MachineOffering` in `provider.metal.datumapis.com` as canonical product +policy, including installation modes and management capabilities. +`MachineOfferingAssignment` restricts acquisition audiences and permitted +profiles. A consumer `MachineClass` is a one-hop published view of that offering, +not another provider definition. `MachineProfile` is immutable hardware +requirements, not installation or management policy. Supply selectors and +provider execution configuration remain private to fulfillment. + +Allocation retains the accepted offering contract and exact identities and +capabilities. Offering edits never silently change active allocations. Offering +or assignment withdrawal blocks new allocations, not runtime actions on existing +bindings: those use retained capabilities and current action/input permissions. +Explicit suspension and emergency restrictions are separate, attributable policy +decisions; they cannot discard custody or prevent authorized cleanup. + +The shared allocator handles both standalone customers and internal managed +platforms. Provider adapters execute admitted preparation, installation, power, +console, and cleanup operations. Backend-specific capabilities stay behind those +contracts. Managed clusters and node services later add their own policy above +allocation without taking over physical identity or creating a second allocator. + +### Notes, constraints, and caveats + +API shapes remain provisional. The [inventory proposal](../../proposals/fleet-management/inventory.md) +provides the detailed physical reservation and verification contracts; the +[API architecture](../../architecture/README.md) defines group boundaries. +Examples use synthetic identities and scoped names. They do not carry credentials +or independently authorize hardware effects. + +### Risks and mitigations + +- **Conflicting installations:** reserve rack space, terminations, and power + capacity through one durable admission authority before accepting a plan. +- **False readiness:** evaluate attributable evidence against the approved + dependency revisions and expire it when its freshness bound is exceeded. +- **Cross-project privilege escalation:** separate publication from source-use + permission and preserve caller identity through admission. +- **Duplicate execution:** retain exact operation inputs before dispatch and + fence previous executors before takeover. +- **Lost cleanup obligations:** retain provider-side custody through consumer + deletion and block provider retirement until obligations settle or transfer. + +## Design details + +### API design + +#### API groups and service identity + +| Group | Contract | Intended audience | +| --- | --- | --- | +| `fleet.datumapis.com/v1alpha1` | Facility, Rack, DeviceClaim, Device, Cable, PowerFeed | Authorized infrastructure operators and Fleet components | +| `metal.datumapis.com/v1alpha1` | MachineClass, MachineProfile, MachineCapacity, Machine, MachineAllocation, Installation | Providers and consumers, with resource-specific access restrictions | +| `provider.metal.datumapis.com/v1alpha1` | MachineOffering, MachineOfferingAssignment | Provider product policy and acquisition access; no private execution configuration | +| `metal.datumapis.com/v1alpha1` | MachineManagementSession | Public allocation-scoped BMC session; credentials and internal coordination stay private | +| `coordination.fleet.datumapis.com/v1alpha1` | Candidate MachineAllocationHandoff for admitted location work | Fleet management, federation, and selected location executors only | + +One inventory group does not imply one controller, permission set, or process. +Facility and Device are independent resources because they have independent +lifetimes, but no separate facilities group is needed for this scope. + +Fleet is an operational service, not a new consumer entitlement in this proposal. +The existing catalog service remains `metal`, displayed as Bare Metal, with +`metal.datumapis.com` service identity. Inventory access uses explicit operator +authorization. Neither Fleet nor coordination receives an additional Service or +ServiceConfiguration merely because it has an API group. Any future independent +Fleet offering and catalog enrollment requires a separate decision. + +#### Resource relationships + +| Kind | Desired or registered facts | Controller-owned results | +| --- | --- | --- | +| Facility | Premises identity, display metadata, Location reference, provider aliases | Validation and attributable operational summaries | +| Rack | Facility reference, mounting geometry and constraints | Reserved/occupied capacity and validated constraints | +| DeviceClaim | Expected identity, planned placement, ports, required Cable references and verification policy | Acceptance, physical reservation, committed Device binding, verification conditions | +| Device | Canonical physical asset identity and registered components, written by the registrar | Observations and verified placement tied to an accepted installation | +| Cable | Typed endpoints and termination mappings; the authoritative connection plan | Reservation and physical path verification | +| PowerFeed | Supply termination, rated/usable limits, known upstream dependencies | Verified dependency evidence and capacity accounting | + +Admission and narrowly scoped writers separate operator intent, registrar-owned +identity, and verifier-owned observations. Status is controller-owned; operators +cannot mark equipment ready or capacity free by editing a condition. + +The resource diagram separates physical inventory from the Metal capacity it +supports. Arrows are labeled relationships, not cascading deletion ownership. + +![Physical inventory resources and their relationship to provider-owned Metal capacity](diagrams/inventory-resources.svg) + +#### Facility and Rack + +A Facility identifies physical premises and references its geographic Location. +Provider aliases describe the premises but do not define its identity. A Rack +references the Facility and declares mounting geometry. The following records +establish a location for installation planning; they reserve no equipment slots: + +```yaml +apiVersion: fleet.datumapis.com/v1alpha1 +kind: Facility +metadata: + name: example-facility + namespace: infra-ops +spec: + displayName: Example Facility + locationRef: + name: example-location +--- +apiVersion: fleet.datumapis.com/v1alpha1 +kind: Rack +metadata: + name: example-rack + namespace: infra-ops +spec: + facilityRef: + name: example-facility + heightUnits: 42 +``` + +`infra-ops` is an illustrative namespace within the owning project API surface, +not a project identity or an authorization boundary by itself. + +Changing a display name does not change physical identity. Moving a Rack to +another Facility requires a placement transition that accounts for every dependent +reservation and installed Device; a reference edit cannot move equipment. +Reducing mounting capacity must reject conflicts with retained reservations. +Deleting either record must retain dependent placement and cleanup obligations. + +#### DeviceClaim + +A DeviceClaim describes one expected physical installation, not a consumer +allocation. It selects rack placement or facility-only placement, declares expected +identity and ports, and names the Cable plans and verification checks it requires. + +```yaml +apiVersion: fleet.datumapis.com/v1alpha1 +kind: DeviceClaim +metadata: + name: example-server-installation + namespace: infra-ops +spec: + role: Server + expectedIdentity: + manufacturer: Example Manufacturer + model: Example Server + serialNumber: EXAMPLE-SERVER-001 + placement: + rackRef: {name: example-rack} + position: 20 + heightUnits: 1 + face: Front + fullDepth: true + verification: + requiredChecks: [Identity, RackPlacement, NetworkPaths, PowerPaths] + ports: + - {id: data1, type: EthernetPort, role: Data, physicalLabel: DATA1} + - {id: psu1, type: PowerInlet, physicalLabel: PSU1} + cableRefs: + - {name: example-server-data} + - {name: example-server-power} +``` + +Acceptance validates the complete installation graph and retains its exact +dependencies before committing physical reservations. Concurrent claims for the +same rack space, exclusive termination, or unavailable power capacity cannot both +succeed. A partial reservation is not an accepted installation; recovery must +finish or safely unwind the same admission attempt. + +Accepted placement and connection changes require explicit readmission. They +cannot rewrite the retained plan underneath registration or verification. One +claim binds one Device for its installation incarnation. Claim deletion does not +prove that installed equipment or its connections have been removed. + +#### Device + +Only the trusted registrar creates a Device and commits its binding to an accepted +DeviceClaim. Enrollment must authenticate the channel and approved plan revision; +a matching serial number is a matching attribute, not authentication. Passive +equipment can use authorized technician evidence instead of a host agent. + +This registrar-created record identifies the actual equipment. It is not an +operator-authored request to create or move a physical asset: + +```yaml +apiVersion: fleet.datumapis.com/v1alpha1 +kind: Device +metadata: + name: example-server-001 + namespace: infra-ops +spec: + claimRef: {name: example-server-installation} + identity: + manufacturer: Example Manufacturer + model: Example Server + serialNumber: EXAMPLE-SERVER-001 +status: + components: + - {id: data-port-1, type: EthernetPort, physicalLabel: DATA1} + - {id: power-supply-1, type: PowerInlet, physicalLabel: PSU1} +``` + +The registrar retains one reciprocal binding and prevents duplicate enrollment +of an asset. A lost response must recover that binding rather than register another +Device. Component IDs identify physical components independently of OS interface +names. The verifier maps claim ports to components using qualified hardware facts; +it cannot swap the mapping to conceal a wiring discrepancy. + +A Device can be registered while placement or wiring remains unverified. A move +preserves its asset identity and establishes a new approved placement authority; +replacement hardware receives a new identity. Neither transition bypasses active +allocation or physical reservation obligations. + +#### Cable and PowerFeed + +Cable is the sole writer of expected physical connections. Its typed endpoints +can reference an accepted claim port, a registered Device component, or a +PowerFeed termination. The example connects a planned server port to a component +on an already registered switch: + +```yaml +apiVersion: fleet.datumapis.com/v1alpha1 +kind: Cable +metadata: + name: example-server-data + namespace: infra-ops +spec: + medium: CopperEthernet + a: [{deviceClaimRef: {name: example-server-installation}, portID: data1}] + b: [{deviceRef: {name: example-switch}, componentID: port20}] +``` + +The referenced switch, power connection, and supporting paths must be registered +or planned and verified as required; this data Cable alone cannot make the claim +ready. Endpoint admission checks type compatibility and exclusive termination +occupancy. Patch panels and breakout cables require explicit pass-through or lane +mappings. Unsupported topology remains unverified rather than being treated as a +direct link. Editing a cable plan does not certify that a technician moved it. + +PowerFeed records supply limits and upstream dependencies. A PDU is a Device whose +components map outlets to their supplying inputs. Reservation accounting follows +the whole power path and the required failure scenario. Two feeds with different +names do not prove independent upstream supply. Missing upstream evidence cannot +be replaced with a failure-domain label or interpreted as unlimited capacity. + +### References, identity, and scope + +Inventory objects are proposed as project-scoped operator resources, canonically +stored in an infrastructure-owning Service Provider Project. Local references use +names. Cross-project references must also identify the owning project and resource +kind and be authorized at both ends; their exact public encoding remains open. +The service resolves and privately retains exact project and object incarnations +and approved revisions before reservations or effects. Kubernetes UIDs are +API-server-local evidence, not portable authored cross-control-plane references. + +The first delivery keeps a physical installation graph in one provider project. +Shared facilities across provider projects require an explicit canonical owner, +authorized reference resolution, and coordinated reservation authority before +enablement. Mirrored views must be read-only, carry provenance, and never become +alternative reservation authorities. An external duplicate asset record must not +create additional supply; enforce enrolled asset uniqueness across provider +projects before enabling multi-provider allocation. + +Facility, Device, MachineCapacity, Machine, MachineAllocation, Installation, and managed +NodeClaim identities remain distinct. A relationship does not imply cascading +garbage collection or ownership transfer. Recreating a same-named object cannot +inherit the predecessor's reservations, evidence, or execution authority. + +### Status contract + +Use `True`, `False`, and `Unknown` conditions with observed generation, reason, +message, and transition time. The inventory contract separates `Accepted`, +`Registered`, identity/placement/path verification, and `Ready`. A summary must +identify its evaluated scope: verified Facility presence is not verified rack +position. Missing or stale evidence is unknown, not successful or not applicable. + +Fleet privately retains observation time, evidence provenance, dependency +revisions, and freshness bounds, and reevaluates affected gates when evidence +expires. Conditions alone do not authorize effects. Facility-level summaries +must not replace per-asset and per-operation checks. + +Consumers receive permitted location, capabilities, allocation progress, and +their own operation results. Serial numbers, BMC endpoints, physical topology, +provider credentials, evidence internals, and other tenants' usage remain private +unless a separately authorized contract explicitly exposes a safe subset. + +### Project and control-plane responsibilities + +| Boundary | Canonical state and responsibilities | Must not do | +| --- | --- | --- | +| Service Provider Project | Infrastructure inventory, provider offerings and capacity, protected allocation/operation custody under service-only permissions | Transfer Device ownership to consumers or let providers edit allocator-owned bindings | +| Consumer Project | Local published offering references, permitted profiles, Machine and Installation requests, consumer-owned network intent | Edit source inventory, self-authorize source use, or inspect other allocations | +| Fleet control plane | Independently recoverable controllers, admission coordination, registry/verifier, publication integration, lifecycle orchestration, private evidence and operation services | Treat its deployment cluster as the implicit canonical store for project objects or federation intent | +| Federation Control Plane | Canonical admitted handoff objects and explicit targeting policy for delivery to selected location/cell control planes | Allocate capacity, grant consumer authority, broadcast privileged work, or change admitted inputs | +| Location/cell control plane | Delivered work and local execution/evidence adapters; integration with networking and qualified provider executors | Select another asset, expand permitted effects, or release global reservations independently | + +The following scope/writer contract is intentional. Project scope is a tenancy +boundary; Kubernetes namespaces are local storage scopes, not portable project +identities. `infra-ops` in inventory examples need not equal a Metal request's +namespace, a protected hub namespace, or a cell namespace. Translation retains +the authenticated project incarnation and exact source/local object identities; +namespace equality grants no authority. Concrete namespace names remain deployment +choices, but the writer and tenancy boundaries below do not. + +| Surface | Canonical scope | Intent writer | Status/evidence writer | +| --- | --- | --- | --- | +| Physical inventory | Provider project, operator namespace (for example `infra-ops`) | Authorized operator for plans; trusted registrar for Device identity | Inventory verifier for attributed observations and conditions | +| MachineOffering / MachineOfferingAssignment | Provider project-wide, without Kubernetes namespaces | Authorized provider product/access administrator | Metal validation/publication controller | +| MachineProfile / MachineClass | Metal project-wide, without Kubernetes namespaces; immutable profile and consumer-local published view | Authorized profile author; publisher alone owns class source/provenance | Metal profile validation/publication controller | +| Machine / Installation / MachineManagementSession | Consumer project Metal namespace | Authorized consumer or managed consumer controller | Management status projector after authority/evidence validation | +| MachineCapacity / MachineAllocation and operation custody | Provider project protected service namespace/storage | Qualified supply controller for capacity; shared allocator/coordinator alone for bindings and admitted operations | Coordinator records verified results; providers cannot rewrite bindings | +| Coordination handoff spec and exact-target policy | Protected hub namespace | Management handoff controller | Karmada alone reflects selected-cell status on hub copy | +| Delivered coordination copy | Selected cell's local namespace | Federation propagates admitted spec; cell cannot expand it | Selected executor writes LOCAL execution status only | + +The [BMC companion](https://github.com/datum-cloud/fleet/pull/41) and +[PXE companion](https://github.com/datum-cloud/fleet/pull/59) specialize the same +admission and status path; neither moves public sessions to the coordination +group or gives a location direct project/hub credentials. These are proposed +contracts, not migration or backwards-compatibility requirements for earlier +illustrative APIs. Imported source provenance remains historical. + +A project is a tenancy and authorization boundary, not necessarily a dedicated +physical cluster. A single organization can operate provider and consumer projects; +Datum's managed platforms use Consumer Projects like other customers. Service +Provider Projects are not automatically federation members, and Consumer Projects +are not execution cells. + +The Fleet control plane is the service's management runtime and trust boundary. +It accesses project APIs through authenticated, scoped clients. Provider-project +allocation custody remains canonical under the existing lifecycle contract; +private evidence and journals need a documented durable placement and retention +policy. Runtime caches and indexes are rebuildable views, never new allocation +authorities. This proposal does not move all provider inventory into one global +Fleet API server. + +The Federation Control Plane is the intended Karmada hub described in the API +architecture. Coordination CRDs must exist on the hub and participating cells. +Fleet writes admitted intent to the hub, federation delivers only to the selected +cell, and that cell writes execution status only to its LOCAL copy. Karmada +reflects selected-cell status to the hub copy; management validates it before +projecting public status. Federation must not overwrite local executor status +with a stale hub copy. Location executors receive no direct hub or project API +credentials. No wholesale replication of provider or consumer +projects is required, and privileged credentials do not travel in handoff objects. + +### Components and authoritative writers + +The control-plane diagram distinguishes canonical project state from the Fleet +runtime and federation delivery. Returned evidence cannot grant additional +execution authority. + +![Provider and consumer project ownership, Fleet management, federation delivery, and selected cell execution](diagrams/control-planes.svg) + +- **Inventory admission and registrar:** validate plans and reserve physical + resources; the trusted registrar establishes actual asset identity and binding. +- **Collectors and verifier:** accept attributable observations and evaluate the + exact approved dependency graph without modifying operator intent. +- **Publication integration:** deliver provider-owned offering references and safe + summaries through Milo service enablement; publication does not grant source use. +- **Shared lifecycle coordinator:** preserve caller identity, check IAM, + entitlement, quota and current prerequisites, and retain exclusive allocation + and exact authorized operation inputs before execution. +- **Handoff controller:** publish retained operation intent to the federation hub + and validate returned evidence against the selected asset, cell, and operation. +- **Location adapters and provider executors:** execute only admitted effects, + journal attempts before effects, and return evidence without granting new work. +- **Status projectors:** expose audience-appropriate progress without becoming + writers of intent, reservations, or source-use grants. + +These are logical responsibilities, not a requirement for a separate deployment +per component. Admission, privileged execution, and consumer access nevertheless +require enforced trust boundaries even when components share infrastructure. + +#### Retained authority records + +These logical records must be durable before effects; this design does not choose +a storage backend or require one public CRD per record. + +| Record / authoritative writer | Exact retained contents | +| --- | --- | +| Allocation acceptance / shared allocator | Authenticated consumer and provider project incarnations; Machine, MachineCapacity and Device identities; MachineAllocation identity; resolved MachineClass provenance; offering identity/revision plus accepted contract content/digest; assignment identity/revision and acquisition decision; immutable profile identities/digests; accepted installation modes and management capabilities; quota/reservation evidence | +| Operation admission / lifecycle coordinator | Actor and current action/input authorization decision with policy revision/time; allocation and Installation/session identity; exact source mode, artifact digest or delegated endpoint identity, network/input revisions and immutable recipe digest; target asset and selected cell incarnation; operation ID/revision, predecessor preconditions, executor fencing epoch, bounded validity and explicit suspension/emergency decision | +| Execution attempt / selected executor | Admitted operation ID/revision and digest, allocation/asset/cell identities, fencing epoch, attempt identity, journal-before-effect marker, observation time and attributable result/evidence; uncertain outcomes remain unknown | +| Cleanup custody / lifecycle coordinator | Original binding and in-flight operations, sessions and capabilities to revoke, network fencing/detachment and provider cleaning obligations, required evidence, custody owner and any explicitly authorized transfer | + +Names are authored references, never sufficient retained identity. Recreation of +a project, offering, cell, Machine, or Installation cannot inherit authority. +The handoff carries only the bounded admitted projection, not credentials or a +new grant. Management rejects wrong-cell, wrong-incarnation, stale-revision, +expired or regressive status, even if federation delivered it. Missing selected +member evidence is unknown; neither an old Ready nor another member's status can +fill the gap. Keep the handoff until terminal/cleanup evidence is reflected and +retained; deleting delivery objects does not prove cleanup. + +### End-to-end lifecycle + +1. **Plan and verify:** an operator in a Service Provider Project registers a + Facility and Rack, submits installation claims and connections, and obtains + physical reservations. Trusted registration and evidence establish actual + equipment and verified prerequisites without powering or provisioning it. +2. **Prepare and publish:** separately authorized provider work prepares eligible + equipment. Private supply stays in that project; MachineOffering defines + product policy and MachineOfferingAssignment restricts acquisition. Publication + places one-hop MachineClass views in eligible Consumer Projects. +3. **Request and admit:** a consumer creates a Machine and, when needed, an + Installation. Fleet validates the authenticated caller's source-use authority, + project state, entitlement, quota, location eligibility, and current provider + evidence. It retains an exclusive allocation and exact operation plan before + submitting any executable handoff. +4. **Dispatch and execute:** Fleet publishes the admitted location work to the + Federation Control Plane. Targeting chooses exactly the authorized cell, whose + adapters request networking work from its owner and invoke only the permitted + provider effects. The retained recipe defines ordering and prerequisites; + delivery is not permission to run every operation concurrently. +5. **Verify and report:** the cell writes attributable results locally; Karmada + reflects them onto the hub copy. Fleet + checks target identity, operation revision, freshness, and required evidence + before projecting readiness into the Consumer Project. Successful replication + or a running controller is not successful execution. +6. **Release and recover:** release blocks new consumer effects, accounts for + in-flight work, revokes sessions and capabilities, and verifies location network + cleanup or fencing before required provider cleanup and quota settlement. + Capacity returns to supply only after all release obligations are proven. + +The durable admission-to-handoff protocol must recover a crash between reservation +and publication without reserving twice or losing cleanup ownership. An unpublished +admission remains reserved and recoverable; replay of a published handoff retains +the original operation identity. Storage and commit mechanisms remain an +implementation decision, not an assumed cross-API-server transaction. + +The sequence below expands admission and execution. Checks precede retained +authority; handoff publication follows it. Evidence must be verified before the +consumer receives readiness, regardless of delivery or controller health. + +![Durable admission, exact-target federation delivery, and verified results before consumer readiness](diagrams/admitted-work.svg) + +See [diagram maintenance](diagrams/README.md) for editable sources and local +rendering instructions. + +### Platform integration + +- **Milo:** project identity, IAM, protected resources, service enablement, quota, + and project lifecycle. Broad controller credentials do not stand in for caller + authorization; a project name or delivered class reference is not a grant. +- **Location:** geographic identity and permitted location availability. A + Facility references geography; a future Site expresses placement policy over + eligible Facilities rather than being another premises identity. +- **Networking/IPAM:** logical attachments, address allocation, switch + configuration, and their cleanup evidence. Fleet supplies authorized physical + prerequisites and consumes results, not a second network configuration writer. +- **Galactic and other services:** fabric/routing intent, DNS, certificates, and + service addresses remain with their owners. +- **Provider backends:** hardware operations and observations through qualified + adapters. Exact management endpoints and credentials remain private to execution. + +### Recovery and project lifecycle + +Unknown execution, verification, or cleanup retains reservations or quarantines +capacity. Recovery queries the retained operation and evidence before retrying. +Executor takeover requires fencing at the actual effect boundary; a controller +lease or federation retarget alone cannot exclude an old remote worker. + +If a project API, Fleet runtime, or federation hub becomes unavailable, new work +requiring that authority stops. Previously admitted work may proceed only within +its retained scope and fencing contract; disconnected cells cannot admit new +allocations or infer cleanup success. Buffered evidence must be attributable and +reconciled when connectivity returns. Running workloads must not be disrupted +merely because management is unavailable. + +Consumer project deletion does not remove provider-side cleanup obligations. +Provider project retirement must block while inventory reservations, allocations, +or cleanup custody remain, unless an explicit authorized custody transfer is +completed. Deleting a Facility cannot cascade into destroying devices. Restoring +old state must not resurrect released authority or replay work on a new consumer. + +Fleet management, provisioning, artifact delivery, credential custody, and recovery +storage must be independently recoverable from the workloads they manage. The +deployment design must identify their bootstrap dependencies and failure domains. +Federation is a delivery mechanism, not a substitute for that recovery design. + +### Acceptance tests + +#### Shared design acceptance scenarios + +These scenario IDs are shared with #58 and are requirements for future tests, +not claims that runtime behavior has been implemented or verified here. + +| Scenario | Required result | +| --- | --- | +| A1: two consumers race for overlapping offerings | Exactly one allocation commits for a MachineCapacity/Device; retain accepted product, profile and acquisition evidence before effects; forged/stale classes grant nothing | +| A2: edit or withdraw offering/assignment after binding | New allocations fail current acquisition checks; existing allocations retain accepted modes/capabilities and can perform currently authorized actions without re-acquisition; edits do not silently upgrade or downgrade them | +| A3: revoke action/input permission or impose explicit emergency restriction | Reject new affected operation admissions even when the capability was retained; fence/revoke affected in-flight work through its explicit protocol, preserve unknown outcomes and permit service-owned cleanup | +| A4: golden-image versus delegated PXE request | Select exactly one supported source mode using retained offering policy, immutable hardware profile and current input permissions; retain exact artifacts/endpoint/network inputs; delegated handoff never proves guest OS readiness | +| A5: duplicate delivery, hostile member, partition or recreated identity | Execute only the exact retained asset/allocation/Installation/cell under fencing; write LOCAL status, reflect through Karmada and validate before projection; stale, absent or wrong-member evidence cannot become readiness | +| A6: project deletion, session teardown or uncertain cleanup | Preserve custody and reservations/quarantine through public object and offering removal; release only after required network fencing, BMC/session revocation and provider cleanup evidence; no cross-allocation replay | +| A7: non-Fleet provider and observational adoption | Fulfill the same Metal contracts without exposing Fleet inventory or backend selectors; imported occupied equipment stays unavailable and unchanged until explicit ownership transition | + +#### Physical inventory + +Finalize scopes, IAM and field writers for the six inventory kinds. Introduce +schemas and validation, durable physical reservations, trusted registration, and +verification for one qualified installation graph in one provider project. +Import occupied equipment observationally, preserving existing ownership and +unavailable capacity until explicit adoption is complete. + +Acceptance requires conflicting rack, port, power, and identity claims to be +rejected under concurrency; wrong-host and stale evidence must not become ready. +Imports and ordinary record creation must cause no power, boot, network, or +allocation effects. Facility-only placement must not claim rack verification. + +#### Provider and consumer integration + +Connect verified inventory prerequisites to Metal supply and its existing shared +allocator. Exercise one Service Provider Project and two Consumer Projects with +real project identity, source-use checks, entitlement, quota, and durable custody. + +Acceptance requires exactly one winner for competing allocations, no physical +data leakage, no grant through forged publication, and cleanup that survives +consumer project deletion. Namespace stand-ins alone do not establish this gate. + +#### Federation and execution + +Define the coordination schema, exact-target propagation policy, status writer, +credential boundaries, admission-to-handoff recovery, and executor fencing. +Qualify one location and disposable hardware/backend combination before expansion. + +Acceptance requires lost responses, duplicate delivery, stale status, hub/cell +outages, wrong-cell targeting, credential revocation, and stale executor takeover +to fail safely. No uncertain cleanup may expose reusable supply. Complete the +standalone lifecycle with a supported non-Talos OS and no managed-cluster or +ongoing guest-agent prerequisite. + +#### Maintenance and retirement + +Add qualified moves, maintenance, retirement, and authorized shared-facility +references, followed by additional providers and managed consumers. Evaluate +whether field work warrants a dedicated operation resource from actual use. + +Acceptance requires movement to preserve asset history without releasing old +physical reservations prematurely, replacement to create a new asset identity, +and maintenance to respect active allocation authority. Test backup restoration +and project retirement before expanding the ownership graph. + +## Production readiness review questionnaire + +### How is the feature enabled or disabled? + +Enable observation before reservation, and reservation before any provider +effects. Stop new admissions on rollback while keeping recovery and cleanup +available for retained operations; disabling controllers does not cancel remote +work or erase custody. Each output changes authoritative writer only through an +explicit transition after observational comparison. + +### What must operators monitor? + +Track reservation conflicts, verification age, blocked prerequisites, handoff +delivery/status lag, unknown operations, cleanup backlog, and quarantined supply. +Audit actor, project, admitted operation, exact target, and result without logging +credentials or rendered secrets. Service objectives and retention periods remain +to be selected from pilot evidence. + +### How are failures diagnosed and recovered? + +Operators correlate the accepted claim, retained dependency revisions, allocation, +operation, and location handoff. Diagnostics must identify the first unresolved +prerequisite and whether it is known false or unknown. Recovery resumes the retained +operation or follows its authorized cleanup path; it does not create a new request +to bypass occupied capacity or missing evidence. + +### What must restoration preserve? + +Recovery preserves canonical asset identities, physical reservations, active +bindings, exact admitted inputs, and cleanup obligations. A restored controller +must reconcile retained authority with executor evidence before allowing new +effects. Exercise stale handoff delivery and backup restoration against active +allocations. No compatibility bridge or migration from provisional APIs is required. + +### What bounds resource usage? + +Index claims by their referenced placement and connection dependencies so a change +reevaluates affected installations rather than scanning all inventory. Bound +observation payloads and retain large evidence privately. Set admission limits +for pending physical reservations and execution concurrency; neither queue growth +nor an exhausted evidence store may relax authorization or verification gates. + +## Drawbacks + +Separating plans, assets, connections, and provider capacity introduces more +resources and permissions than a flat device list. Operators must reconcile +discrepancies instead of treating discovery as authoritative completion. Strict +evidence and cleanup requirements can keep otherwise usable equipment unavailable +until an operator resolves uncertainty. + +The project and federation boundaries also require durable coordination across +independent APIs. They preserve ownership and limit execution authority, but add +recovery, monitoring, and deployment responsibilities. + +## Alternatives + +Keeping Facility data embedded in Device duplicates shared facts and loses its +independent lifecycle. A separate facilities API group is possible if facilities +become an independently owned product, but adds no useful boundary for this scope. +Putting all inventory on the federation hub would confuse delivery authority with +project ownership; putting all state in the Fleet deployment cluster would also +hide the canonical project contracts. Neither is proposed. + +## Open design questions + +Before implementation, decide: + +- Concrete namespace mappings, cross-project reference encoding, and IAM + permissions for operator intent, registration, evidence, and destructive work. +- Canonical Facility ownership and deduplication, and the shared reservation + protocol when multiple providers operate within one premises. +- Durable reservation, journal, and evidence storage; atomicity, restoration, + retention, and explicit project-retirement custody transfer. +- Qualified geometry, power/redundancy accounting, evidence sources and freshness, + and which technician attestations are accepted for the first facility. +- Coordination schema, federation targeting/status enforcement, transport identity, + and executor fencing; criteria for keeping any provider work management-local. +- Deployment topology and bootstrap dependencies for independent Fleet recovery. +- Whether maintenance and field work need public kinds after the initial pilot. + +Record these choices and their rationale before enabling the corresponding +workflow. Illustrative names do not select a storage backend or execution engine. + +## Infrastructure needed + +The integration environment needs an infrastructure-owning Service Provider +Project, two Consumer Projects, Milo IAM and quota, durable protected custody, +and independently recoverable Fleet management capacity. Federation tests need +a hub and a selected location control plane with separately scoped execution +credentials and networking-owner integration. + +Physical qualification needs disposable equipment, representative rack and power +paths, trusted enrollment, and attributable installation evidence. Test tooling +must inject conflicting reservations, lost responses, stale workers, control-plane +outages, and restored storage without targeting active customer infrastructure. + +Fleet owns service contracts and controller implementation in this repository. +Environment-specific deployment, credentials, and rollout configuration remain +in `infra`. Bootstrap and recovery dependencies must not rely exclusively on the +workload cluster being managed. diff --git a/docs/enhancements/fleet-management/diagrams/README.md b/docs/enhancements/fleet-management/diagrams/README.md new file mode 100644 index 00000000..50956389 --- /dev/null +++ b/docs/enhancements/fleet-management/diagrams/README.md @@ -0,0 +1,34 @@ +# Fleet enhancement diagrams + +These editable SVG sources follow the project boundaries, colors, typography, +and embedded-image approach used by the machine lifecycle enhancement. +They describe proposed contracts, not implemented topology. + +- [Inventory resources](inventory-resources.svg): physical identity, placement, + connection authority, and the separate Metal capacity contract. +- [Control planes](control-planes.svg): canonical project state, Fleet runtime, + federation delivery, and selected location execution. +- [Admitted work](admitted-work.svg): durable authority before dispatch and + evidence before readiness. + +Cells write execution status only on their local copies. Karmada owns reflection +to hub status; management validates that evidence before public projection. A +cell-to-hub dashed arrow denotes reflection, never direct cell credentials or a +cell write to the hub/project API. The diagrams show Fleet fulfillment, not a +requirement that every Metal provider implement Fleet. + +Edit SVGs directly and retain their accessible titles and descriptions. Keep the +images and the surrounding enhancement text consistent. Solid arrows describe +references or labeled actions; dashed arrows describe returned results, not new +authority. Placement, references, and execution are separate concepts. + +Render locally for visual review with `rsvg-convert` (librsvg), for example: + +```sh +rsvg-convert docs/enhancements/fleet-management/diagrams/control-planes.svg \ + -o /tmp/fleet-control-planes.png +``` + +Review labels, arrow directions, spacing, and clipping at the document's display +width. The SVG is both the source and the committed image; temporary PNG previews +do not need to be committed. No remote renderer is required. diff --git a/docs/enhancements/fleet-management/diagrams/admitted-work.svg b/docs/enhancements/fleet-management/diagrams/admitted-work.svg new file mode 100644 index 00000000..47cb9da5 --- /dev/null +++ b/docs/enhancements/fleet-management/diagrams/admitted-work.svg @@ -0,0 +1,50 @@ + + Durable admission before federated execution + Fleet validates a consumer request, retains exclusive allocation, accepted offering contract and exact operation authority in the provider project, then publishes a handoff to federation. The selected cell executes only admitted work and writes LOCAL evidence. Karmada reflects local status to the hub; the arrow is not a cell API write to the hub. Fleet verifies that evidence before projecting readiness. Unknown outcomes retain custody; release requires verified location and provider cleanup before reuse. + + + + + ConsumerProject API + + FleetCoordinator + + ProviderProtected custody + + FederationHub API + + Selected cellExecution adapters + + Observe request + + + Validate caller, source use, entitlement, quota, and current prerequisites + Retain allocation, offering + exact operation + + Durable authority + + Publish admitted handoff; recover with same operation identity + + Deliver to exact target + + + Journal before effects; execute only admitted work. + Fence takeover; write LOCAL execution status. + Karmada reflects status + + Read results; verify target, revision, freshness, and required gates + + Project verified status + + + Unknown outcomes keep reservations or quarantine capacity. + Release verifies location cleanup, then required provider cleanup and quota settlement before reuse. + Proposed sequence · delivery is not execution success · dashed arrows carry results + diff --git a/docs/enhancements/fleet-management/diagrams/control-planes.svg b/docs/enhancements/fleet-management/diagrams/control-planes.svg new file mode 100644 index 00000000..cdc6d00e --- /dev/null +++ b/docs/enhancements/fleet-management/diagrams/control-planes.svg @@ -0,0 +1,53 @@ + + Project ownership and Fleet control-plane boundaries + Provider and consumer projects retain canonical resources. Fleet reads intent, retains provider-side authority, and projects validated status. Fleet submits admitted handoffs to the federation hub, which delivers only to the selected location. The cell writes LOCAL execution status; Karmada reflects it to the hub. Locations have no direct hub or project credentials. Project APIs are not execution cells, and federation grants no allocation authority. + + + + + Service Provider Project + Inventory, offerings, supply + Protected allocation and operation custody + Provider intent / service-owned bindings + + Consumer Project + Published references, permitted profiles + Machine and Installation requests + Consumer-owned network intent + + Fleet control plane + Inventory verification · publication · shared lifecycle coordinator + Check caller, IAM, entitlement, quota, and evidence before admission. + Independent management runtime; project authority stays in project APIs. + + Retain + authority + + Read inventory + + Read intent + + Project + status + + Federation Control Plane · Karmada hub + Canonical coordination handoff + explicit target policy; not an allocator + + Admitted intent + + Validate reflected results + + Selected location / cell control plane + Writes LOCAL status only · no direct hub or project credentials + + Targeted delivery + + Karmada reflects local status + Proposed topology · dashed arrows carry results, never new effect authority + diff --git a/docs/enhancements/fleet-management/diagrams/inventory-resources.svg b/docs/enhancements/fleet-management/diagrams/inventory-resources.svg new file mode 100644 index 00000000..7b82037b --- /dev/null +++ b/docs/enhancements/fleet-management/diagrams/inventory-resources.svg @@ -0,0 +1,55 @@ + + Physical inventory and offered capacity + In the Service Provider Project, Rack references Facility, which references geographic Location. DeviceClaim reserves planned placement and binds one registered Device. Cable owns expected physical connections and PowerFeed describes supply dependencies. Verified inventory is a prerequisite for separate provider preparation and Metal capacity eligibility, not permission to allocate or execute effects. + + + + + Service Provider Project + Canonical physical inventory · fleet.datumapis.com · proposed + + Rack + Mounting constraints + + Facility + Physical premises + + Location reference + Geography owner + + + + DeviceClaim + Approved installation + + Reserves + placement + + Device + Actual asset + ports + + Binds one + + Cable + Typed endpoint plan + + PowerFeed + Supply + dependencies + + + Feed termination + + MachineCapacity · metal.datumapis.com + Owned supply retains an immutable Device reference. + Verification, preparation, and allocation eligibility are separate gates. + + deviceRef + Facility-only placement is allowed; unknown racks are not fabricated. + Cable endpoints may reference claim ports, Device components, or a typed PowerFeed. +