Redfish/CLI/SNMP/Webrest interface mapping configurations for rackmount server
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 9 days ago | ||
| 4 months ago | ||
| 23 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 6 days ago | ||
| 11 days ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 24 days ago | ||
| 5 days ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 4 days ago | ||
| 9 months ago | ||
| 9 days ago | ||
| 4 months ago | ||
| 6 days ago | ||
| 6 days ago | ||
| 2 months ago | ||
| 4 months ago |
rackmount
Verification Notice: This document serves as the reference guide for building and testing the rackmount component. It is recommended to use Ubuntu 24.04 LTS; other operating systems (such as openEuler, CentOS, and Debian) have not yet been verified. Development environment initialization must follow the openUBMC Build Guide; see Environment Dependencies.
To accommodate differentiated handling across production chassis models and enable partner open scenarios, system configurations are structured by management model, with each form factor maintained in its own repository. This repository describes the base configuration for the rackmount form factor. It provides northbound interface mapping configurations for Redfish, web_backend, CLI, and SNMP, alongside forward collection mapper configuration.
Contents
- Repository Address
- System Requirements
- Environment Dependencies
- Build
- Testing
- Project Structure
- License
Repository Address
https://gitcode.com/openUBMC/rackmount
System Requirements
| Item | Requirement |
|---|---|
| OS | Ubuntu 24.04 LTS (exclusive) |
| Architecture | x86-64 (amd64) |
| Python | >= 3.10 (required by init.py) |
Build tools such as bingo and Conan are automatically installed by
init.py— no manual preparation needed. It is recommended to use a Docker container for building. You can quickly start the development environment with the following image:docker pull swr.cn-north-4.myhuaweicloud.com/openubmc/ubuntu:24.04.2Image tag note: The
:24.04.2tag is mutable and may be updated or overwritten in the image repository; formal builds should use a fixed digest (e.g.swr.cn-north-4.myhuaweicloud.com/openubmc/ubuntu@sha256:<digest>, obtainable viadocker images --digests) to reduce supply-chain and reproducibility risks.
Environment Dependencies
Before building rackmount, initialize the openUBMC development environment (install bingo, Conan, Node.js, configure Conan remote repositories, etc.). For complete initialization steps and troubleshooting, see openUBMC Build Guide. That guide covers all operations including container setup, init.py execution, and Conan login authentication.
Do NOT manually install bingo and Conan: Manually installing them (e.g., via
pip install conan) will cause Conan remote repository authentication to fail, preventingbingo buildfrom pulling dependency packages. All build tools must be installed via the manifest repository'sinit.pyflow.
Build
Get Component Source Code
Prerequisite: The
init.pyinitialization flow from Environment Dependencies has been completed, and thebingoandconancommands are available.
cd /home/workspace
git clone https://gitcode.com/openUBMC/rackmount.git
Component-Level Build
Navigate to the rackmount component directory and use bingo to build:
cd /home/workspace/rackmount
# dev-stage build (default)
bingo build --stage=dev
# stable-stage build
bingo build --stage=stable
# dev-stage + release-type build
bingo build --stage=dev -bt release
Build Parameters
bingo build [-h] [-bt BUILD_TYPE] [--stage STAGE] [-u] [-r REMOTE] [--conan2] [-nc] [-o OPTIONS] [--user USER] [-wb] [--ccache]
| Parameter | Description | Default |
|---|---|---|
-bt / --build_type |
Build type: debug or release |
debug |
--stage |
Package release stage: dev, pre, rc, stable |
dev |
-u / --upload |
Upload the component package to the Conan repository | — |
-r / --remote |
Conan repository alias | — |
--conan2 |
Force use of Conan2 to build the component | — |
-nc / --no_cache |
Force update of Conan cache dependencies | — |
-o / --options |
Define component option values | — |
--user |
Specify the user field of the Conan package | openubmc |
-wb / --without_build |
Skip forced source build of the component itself | — |
--ccache |
Use ccache to accelerate C/C++ compilation | — |
Testing
Use bingo test to run unit tests. The -jit parameter is required; otherwise, tests will fail:
# Run unit tests
bingo test -ut -jit
# Run unit tests with a filter
bingo test -ut -jit -f <filter>
# Run unit tests with ASAN enabled
bingo test -ut -jit -as
Common test parameters:
| Parameter | Description |
|---|---|
-ut |
Enable unit tests |
-f |
Test filter |
-jit |
Must include this parameter; otherwise, tests will fail |
-as |
Enable AddressSanitizer |
Project Structure
rackmount/
├ .pre-commit-config.yaml # Git pre-commit hook configuration
├ CHANGELOG.md # Changelog
├ CMakeLists.txt # CMake build configuration
├ CONTRIBUTING.md # Contribution guide
├ LICENSE # License
├ README.md # Project description
├ README_EN.md # English documentation
├ conanfile.py # Conan package configuration
├ custom/ # Product-level customization configuration
├ doc/ # Design documentation
├ interface_config/ # Northbound interface mapping configuration
├ mds/ # MDS data model definitions
├ oem/ # OEM extension implementations
├ permissions.ini # Permission configuration
├ test/ # Test cases
└ tools/ # Helper tools
License
This project is open-sourced under the Mulan PSL v2 license. For details, see the LICENSE file in the project root directory.
Introduction
Redfish/CLI/SNMP/Webrest interface mapping configurations for rackmount server
Customize your domain