BOS API

Overview

The BOS API is the point of contact for the user and all other services that want to query or update BOS data. This includes the sub-services of BOS.

Server

The BOS API server does not do any of the actual core BOS work – that is, it does not boot or reboot any nodes, it does not coordinate the progress of sessions, and so on. Its essential purpose is to act as a front-end for the BOS database, allowing callers to safely create, read, modify, and delete entries in the database. All of the core BOS work is done by the BOS operators and the BOS reporter.

Other than the API server, there are only two parts of BOS that ever directly access the BOS databases. See BOS database access for details.

Kubernetes deployment

(ncn-mw#) The BOS API server is a Kubernetes deployment in the services namespace:

kubectl get deployments -n services -l app.kubernetes.io/name=cray-bos

Example output:

NAME       READY   UP-TO-DATE   AVAILABLE   AGE
cray-bos   2/2     2            2           11d

(ncn-mw#) The BOS API server runs in multiple Kubernetes pods in the services namespace.

kubectl get pods -n services -l app.kubernetes.io/name=cray-bos

Example output:

NAME                       READY   STATUS    RESTARTS   AGE
cray-bos-994fc7c59-298g8   2/2     Running   0          50d
cray-bos-994fc7c59-z2r2q   2/2     Running   0          50d

Options

Although many of the BOS Options do not impact the behavior of the API server, the following options do:

See Options for more information.

Migration job

When the cray-bos Kubernetes deployment is upgraded, the cray-bos-migration job runs in the services namespace. It checks data in the BOS databases and fixes some cases of invalid data (for example, session template names that are not legal under the API Specification.

The migration job pods first wait until all of the databases are accessible. In some cases, this will time out before the databases are ready, and the pod will exit in failure. The job migration automatically retries when the pod fails; in most cases, the databases are ready in time when the next migration job pod runs.

Specification

For a user-friendly summary of the BOS API specification, see Boot Orchestration Service API. For the full OpenAPI specification, see the Cray-HPE/bos open source GitHub repository.

Source

For the source for the BOS API server, including its Helm chart, see the Cray-HPE/bos open source GitHub repository.