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.
The API is the point of contact for the user and all other services that want to query or update BOS data. This includes other BOS sub-services, such as the operators and the BOS reporter.
For more information, see BOS API.
Most BOS data is stored in a Redis database. Some BOS data is stored in an etcd database.
For more information, see BOS Database.
BOS operators are a feature of BOS v2 only.
BOS operators are always-running sub-services. They are each responsible for doing a single basic task, such as powering on nodes, discovering new nodes on the system, or initializing a new session.
For more information, see BOS Operators.
The BOS reporter is a feature of BOS v2 only.
The BOS reporter is a sub-service that must be installed on all nodes managed by BOS. It is responsible for reporting the actual state of the node to BOS.
For more information, see BOS Reporter.
BOA is a feature of BOS v1 only. It is a Kubernetes job that is responsible for tracking all of the nodes in a BOS session and taking actions against them.
For more information, see Boot Orchestration Agent (BOA).
The source for BOA is located in the
Cray-HPE/boa open source GitHub repository.
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:
The source code and Helm charts for BOS are 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. |