Build LDMS Producer RPM Repository¶
Build an OVIS Lightweight Distributed Metric Service (LDMS) producer RPM for HPC monitoring, publish it through an HTTP repository, and make the repository available to Omnia.
Overview¶
The build_rpm.sh script in the
omnia-containers repository
clones the OVIS repository and builds an LDMS producer RPM in a Rocky Linux 10
container. The workflow supports x86_64 and aarch64; run it on the same
architecture as the nodes that will use the RPM.
The current script invokes Podman directly. Docker is not an alternative for this RPM build workflow.
Prerequisites¶
- A build host with internet access and the target node architecture.
- EPEL and AppStream repository access.
gitand Podman installed and operational.- An
omnia-containerscheckout. Run the commands from the repository root so thatRpmFile/ldms/build/can be found. - If LDMS must collect Slurm metrics, a reachable Slurm RPM repository URL and repository name.
-
Install the required Python development packages:
Run on: LDMS build hostsudo dnf install -y python3-devel python3-Cython
To obtain the build repository:
git clone https://github.com/dell/omnia-containers.git
cd omnia-containers
Warning
The build script removes and recreates $HOME/ovis-code/ovis before
checking out the requested OVIS tag. Preserve any unrelated work stored at
that path before running the script.
Input Contract¶
The command syntax is:
./build_rpm.sh -v <LDMS_VERSION> -u <SLURM_REPO_URL> -n <SLURM_REPO_NAME>
The Slurm repository URL and name can also be supplied as positional arguments:
./build_rpm.sh <SLURM_REPO_URL> <SLURM_REPO_NAME>
| Parameter | Description |
|---|---|
-v, --version <version> |
LDMS version to build. The default is 4.5.2. |
-u, --url <url> |
Slurm repository URL used to resolve dependencies required for Slurm metrics. |
-n, --name <name> |
Slurm repository name used inside the build container. |
-h, --help |
Display command usage. |
The Slurm repository parameters are optional. If they are omitted, the build continues with a warning, but the resulting package might not provide Slurm metrics.
Procedure¶
Run one of the following commands from the omnia-containers repository root.
Build LDMS version 4.5.2 using the default:
./build_rpm.sh
Build a specific LDMS version:
./build_rpm.sh -v 4.5.2
Build with Slurm repository support:
./build_rpm.sh \
-v 4.5.2 \
-u http://<REPO_SERVER_IP>/slurm_custom/ \
-n x86_64_slurm_custom
Alternatively, supply the Slurm repository URL and name as positional arguments:
./build_rpm.sh \
http://<REPO_SERVER_IP>/slurm_custom/ \
x86_64_slurm_custom
The script performs the following operations:
- Clones
https://github.com/ovis-hpc/ovis.gitat the requested version tag. - Sets
LDMS_REPOto$HOME/ovis-code/ovis. - Detects the build-host architecture.
- Starts a Rocky Linux 10 Podman container.
- Runs
start_build_container.rockylinux10.bashand builds the RPM in the bind-mounted OVIS checkout.
Verification¶
The built RPM is available under $HOME/ovis-code/ovis. Verify it before
publishing:
find "$HOME/ovis-code/ovis" -maxdepth 1 -name 'ovis-ldms-*.rpm' -print
rpm -qpi "$HOME"/ovis-code/ovis/ovis-ldms-*.rpm
The RPM filename includes the LDMS version and build-host architecture.
Host the LDMS Repository¶
The following example publishes the RPM through Apache. Run it on the LDMS build host, or copy the RPM to a separate repository server first.
-
Install and start the repository services:
Run on: repository serverdnf install -y httpd createrepo systemctl enable --now httpd -
If
firewalldis enabled, allow HTTP traffic:Run on: repository serverfirewall-cmd --permanent --add-service=http firewall-cmd --reload -
Create the repository and generate its metadata:
Run on: repository servermkdir -p /var/www/html/ldms cp "$HOME"/ovis-code/ovis/ovis-ldms-*.rpm /var/www/html/ldms/ cd /var/www/html/ldms createrepo .Keep packages built for different RHEL minor releases or architectures in separate repository directories.
-
Verify the metadata locally and from the OIM:
Run on: repository serverls -l /var/www/html/ldms/repodata curl http://localhost/ldms/repodata/repomd.xmlRun on: OIM hostcurl http://<REPO_SERVER_IP>/ldms/repodata/repomd.xml -
Configure the hosted URL as the
ldmsuser repository for every required RHEL version and architecture. See Add an RPM Repository and Packages. -
Run Repository Manager synchronization and verify that the required LDMS repository reports success before building cluster images.
Update Build-Project Python Packages¶
This task is only for contributors who are changing Python dependencies in the
omnia-containers project. It is not required for a normal LDMS RPM build.
-
Install
uv:Run on: development hostpython3 -m pip install uv -
Update
pyproject.tomlin the applicable container directory. -
From the same directory, update the lock file:
Run on: development hostuv lock
Next Steps¶
- Configure LDMS Telemetry
- Build Cluster Images
- Refer to the upstream Building LDMS Producer RPM Package section for the corresponding build-project information.