Skip to content

Latest commit

 

History

History
89 lines (60 loc) · 2.85 KB

File metadata and controls

89 lines (60 loc) · 2.85 KB

BaremetalHost Provisioning States

The following diagram shows the possible Provisioning State transitions for the BaremetalHost object:

BaremetalHost ProvisioningState transitions

Created

Newly created hosts move immediately to Discovered or Registering. No host stays in the Created state while the operator is working properly.

Unmanaged

An Unmanaged host is missing both the BMC address and credentials secret name, and does not have any information to access the BMC for registration.

Externally Provisioned

An Externally Provisioned host was deployed using another tool and then a host object was created with the externallyProvisioned flag set. Hosts in this state are monitored, and only their power status is managed.

The externallyProvisioned field can also be set to true after inspection is completed (when the host is in Available state). This workflow allows collecting hardware information via BMO's inspection process before handing off provisioning to an external tool (e.g., Image-based Installer for O-RAN deployments).

Using with Cluster API Provider Metal3 (CAPM3)

When using externallyProvisioned hosts in environments with CAPM3, ensure that these hosts are labeled appropriately so that CAPM3's host selector can distinguish them from hosts managed by CAPM3. This prevents CAPM3 from attempting to claim hosts that are managed by external provisioners.

Registering

The host will stay in the Registering state while the BMC access details are being validated.

Inspecting

After the host is registered, an agent image will be booted on it using a ramdisk. The agent collects information about the available hardware components, and this process is called "inspection." The host will stay in the Inspecting state until this process is completed.

Preparing

When setting up RAID, BIOS and other similar configurations, the host will be in Preparing state. For ironic provisioner, we build and set up manual clean steps in Preparing state.

Available

A host in the Available state is available to be provisioned. In older versions of the baremetal-operator, this state was called Ready.

Provisioning

While an image is being copied to the host and it is being configured to run the image the host will be in the Provisioning state.

Provisioned

After an image is copied to the host and the host is running the image, it will be in the Provisioned state.

Deprovisioning

When the previously provisioned image is being removed from the host, it will be in the Deprovisioning state.

Error

If an error occurs during one of the processing states (Registering, Inspecting, Provisioning, Deprovisioning) the host will enter the Error state.

Deleting

When the host is marked to be deleted, it will move from its current state to Deleting, at which point the resource record is deleted from kubernetes.