taikun.cloud

Documentation

Using Mojo with Taikun OCP

Available Bundles

The following OS Bundles are available from Metify. Input the values from this table into the ./mojo-manage --os-image command. OS Bundles are organized by name and version. The combination of these two fields is unique within the Mojo Platform.

nameversionarchitecture
ubuntu22.04.03x64
rhel8.8-netx64
rhel9.2-netx64

Redfish API Overview

Overview

RackHD is designed to provide a REST (Representational state transfer) architecture to provide a RESTful API. RackHD currently has two RESTful interfaces: a Redfish API and native REST API 2.0.

The Redfish API is compliant with the Redfish specification as an additional REST API. It provides a common data model for representing bare metal hardware, as an aggregate for multiple backend servers and systems.

The REST API 2.0 provides unique features that are not provided in the Redfish API.

Redfish API Example

Redfish API – Chassis

List the Chassis that is managed by RackHD (equivalent to the enclosure node in REST API 2.0), by running the following command.curl 127.0.0.1:9090/redfish/v1/Chassis| jq ‘.’

../_images/redfish_chasis.png

Redfish API – System

  1. In the rackhd-server, list the System that is managed by RackHD (equivalent to compute node in API 2.0), by running the following command

curl 127.0.0.1:9090/redfish/v1/Systems| jq ‘.’

  1. Use the mouse to select the System-ID as below example, then the ID will be in your clipboard. This ID will be used in the following steps.

../_images/redfish_sys.png

Redfish API – SEL Logcurl 127.0.0.1:9090/redfish/v1/systems/<System-ID>/LogServices/Sel| jq ‘.’

../_images/redfish_sel.png

Redfish API – CPU infocurl 127.0.0.1:9090/redfish/v1/Systems/<System-ID>/Processors/0| jq ‘.’

../_images/redfish_cpu.png

Redfish API – Helper

Show the list of RackHD Redfish APIs’ by running below command:curl 127.0.0.1:9090/redfish/v1| jq ‘.’

../_images/redfish_helper.png

Full RedFish API documentation is available here.

Was this article helpful?