The Boot Orchestration Service (BOS) is responsible for booting, configuring, and shutting down collections of nodes. This is accomplished using BOS session templates and sessions.
BOS users create a BOS session template, and then create a BOS session, which applies an action to the session template. The available actions are boot, reboot, shutdown, and configure. The session can be monitored to determine the status of the request.
The configure action is only available in BOS v1 sessions.
For more information, see BOS Workflows.
BOS is made up of a number of different sub-services that combine to provide its functionality. For details, see BOS Services.
The Cray CLI supports BOS commands, providing a more user friendly front-end for the BOS API.
The first CLI argument specifies the BOS version.
For ease of interactive CLI use, specifying the BOS version is optional; it defaults to v1.
However, explicitly specifying the version in scripts or documentation is highly recommended,
because the default BOS version for the CLI is subject to change.
For context-specific usage information, append --help to the CLI command. For example:
cray bos --helpcray bos v2 --helpcray bos session --helpcray bos v2 components list --help(ncn-mw#) API information, including the version, can be found with the following command:
cray bos list --format json
Example output:
{
"links": [
{
"href": "https://api-gw-service-nmn.local/apis/bos/",
"rel": "self"
},
{
"href": "https://api-gw-service-nmn.local/apis/bos/v1",
"rel": "versions"
}
],
"major": "2",
"minor": "0",
"patch": "0"
}
For more information, see BOS Commands Cheat Sheet.
There are currently two supported API versions for BOS – v1 and v2. While they appear superficially similar, they work very differently. For more detailed information than is found on this page, see BOS API Versions.
BOS v1 is deprecated in CSM 1.3 and removed in CSM 1.6. See BOS v1 removal for more information.
BOS v1 is strictly session based and uses a Boot Orchestration Agent (BOA) to fulfills boot requests. After a BOS v1 session is created, BOS will create a Kubernetes BOA job to apply an action. BOA coordinates with the underlying subsystems to complete the action requested.
BOS v2 takes a more flexible approach and relies on a number of permanent operators to guide components through state transitions in an independent manner. The BOS v2 session can be used to track progress of the operation, but there is no centralized Kubernetes pod in which the session resides.
BOS depends on each of the following services to complete its tasks:
| Service | Description |
|---|---|
| BOA | Handles any action type submitted to the BOS v1 API. BOA jobs are created and launched by BOS. |
| Boot Script Service (BSS) | Stores the configuration information that is used to boot each hardware component. Nodes consult BSS for their boot artifacts and boot parameters when they boot or reboot. |
| Configuration Framework Service (CFS) | BOS uses CFS to apply configuration to the nodes in its boot sets (node personalization). |
| Cray Advanced Platform Monitoring and Control (CAPMC) | Used to power on and off the nodes. |
| Hardware State Manager (HSM) | Tracks the state of each node, and the node membership of groups and roles. |
The source code for BOS is located in the following open source GitHub repositories:
| Repository | Contents |
|---|---|
Cray-HPE/bos |
BOS API server, API specification, database, operators, and bos-reporter RPM. |
Cray-HPE/boa |
BOA. |
Cray-HPE/craycli |
The Cray CLI, including the BOS subcommands. |
Cray-HPE/cms-tools |
Health checks and utilities for several CSM services, including BOS. |