BuildStreaM¶
Overview¶
BuildStreaM provides the customer-facing GitLab CI/CD workflow for catalog-driven HPC image creation and deployment. The deployment creates the following components:
- A PostgreSQL container for BuildStreaM state.
- The BuildStreaM Manager (BSM) FastAPI container and the
playbook-watcher.serviceon the Omnia Infrastructure Manager (OIM). - GitLab CE on the configured GitLab host.
- A GitLab project containing the BuildStreaM build, deploy, cadence, and cleanup pipelines.
The parent .gitlab-ci.yml routes requests to one of four child pipelines:
| Workflow | Automatic trigger | Manual PIPELINE_TYPE |
Purpose |
|---|---|---|---|
| Build | Change catalog_rhel.json |
build |
Synchronize content and build images without deploying them. |
| Deploy | Change input/orchestrator/pxe_mapping_file.csv |
deploy |
Select and deploy an existing image, restart nodes, and validate the deployment. |
| Cadence | Change cadence_catalog_rhel.json after periodic reconciliation |
cadence |
Build and deploy the cadence catalog in one pipeline. |
| Cleanup | None | cleanup |
Remove a selected image group and its associated artifacts. |
The infrastructure deployment described on this page prepares these workflows. Cadence is optional and disabled by default; the build-only and deploy-only pipelines remain independently available.
BuildStreaM also provides an automated cleanup feature that periodically evaluates image groups based on age-based retention policies and automatically deletes eligible artifacts. This feature is configured in the retention group of build_stream_config.yml and runs as an in-process scheduler within the BSM API container. See Cleanup Operations for details on both manual and automated cleanup.
Omnia also provides optional AI-assisted skills for catalog generation, single-catalog editing, bulk editing, impact analysis, compatibility analysis, and catalog comparison. See Use AI-Assisted Catalog Authoring Skills to learn what each skill does and how to invoke it through an approved AI assistant.
Prerequisites¶
- For the documented validated RC1 baseline, run BuildStreaM on a RHEL 10.0 OIM with Python 3.12 or later, Ansible Core 2.20 or later, and Podman 5.0 or later. See the Operating Systems Matrix.
- Ensure the GitLab host can ping
build_stream_host_ipand that the OIM can reach the GitLab host. - Ensure the selected GitLab HTTPS port is unused. The role enables
firewalldand opens the configured HTTPS port and TCP port 22. - Allow the GitLab host to reach
packages.gitlab.com,docker.io, andregistry.gitlab.com. These locations provide GitLab CE and the runner, helper, and default CI images used by the deployment. - Meet or exceed the configurable GitLab-host minimums. The supplied configuration checks for 4 GB RAM, 2 CPU cores, and 20 GB free space on
/.
Note
The BuildStreaM validator warns when build_stream_host_ip and gitlab_host are the same. Use a separate GitLab host unless you have deliberately designed and validated a shared-host deployment.
Input contract¶
The current entry playbook reads the following fixed runtime file:
/opt/omnia/build_stream/input/project_default/build_stream_config.yml
If OMNIA_DATA_PATH is changed, replace /opt/omnia with that value. Use OMNIA_PROJECT_NAME=project_default when initializing this module so that staged inputs and the entry playbook use the same project directory.
build_stream_config.yml is the single consolidated BuildStreaM and GitLab configuration file. Do not create a separate gitlab_config.yml, and do not remove parameters from the supplied file.
| Parameter | Required value or default | Purpose |
|---|---|---|
enable_build_stream |
Set to true |
Enables validation and deployment. |
build_stream_host_ip |
Required | IP address of the OIM host that serves the BSM API. |
build_stream_port |
8010; valid range 1–65535 |
BSM HTTPS port. |
gitlab_host |
Required | IP address of the target GitLab host. |
gitlab_project_name |
omnia-catalog |
Project created and managed by Omnia. |
gitlab_project_visibility |
private |
Accepted values are private, internal, and public. |
gitlab_default_branch |
main |
Branch used for repository and API operations. |
gitlab_https_port |
443; valid range 1–65535 |
GitLab HTTPS port. |
gitlab_min_storage_gb |
20 |
Minimum free space checked on the GitLab host root file system. |
gitlab_min_memory_gb |
4 |
Minimum GitLab-host memory. |
gitlab_min_cpu_cores |
2 |
Minimum GitLab-host CPU count. |
gitlab_puma_workers |
2 |
GitLab Puma worker count. |
gitlab_sidekiq_concurrency |
10 |
GitLab Sidekiq concurrency. |
cadence.enabled |
false |
Enables the optional periodic RPM reconciliation and unified pipeline. |
cadence.interval_seconds |
86400; minimum 3600 |
Delay between cadence reconciliation cycles. |
cadence.gitlab_repo_path |
Required when cadence is enabled | Writable local clone of the managed GitLab project on the OIM. |
BuildStreaM creates and manages the following encrypted credential inputs during the credential phase:
/opt/omnia/build_stream/input/project_default/build_stream_credentials.yml
/opt/omnia/build_stream/input/project_default/.build_stream_credentials_key
Provide each requested value when prompted:
| Credential | Purpose |
|---|---|
gitlab_root_password |
Password assigned to the GitLab root account. |
gitlab_ssh_password |
Current root SSH password for the GitLab host. |
build_stream_auth_username |
Username used by GitLab pipelines to register with the BSM API. |
build_stream_auth_password |
BSM registration password; it must contain at least eight characters. |
postgres_user |
PostgreSQL user for BuildStreaM; the source credential rules do not permit root. |
postgres_password |
PostgreSQL password for BuildStreaM. |
The credential utility encrypts the file with Ansible Vault and assigns mode 0600 to the credential and key files. Do not place credential values in build_stream_config.yml.
During GitLab project creation, the role copies the following module inputs when they exist under <OMNIA_DATA_PATH>/<domain>/input/<OMNIA_PROJECT_NAME>/:
repo_manager/repo_manager_config.ymlrepo_manager/repo_manager_endpoint_config.ymlimage_build_manager/image_build_config.ymlimage_build_manager/package_groups.ymlorchestrator/omnia_config.ymlorchestrator/orchestrator_config.ymlorchestrator/network_spec.ymlorchestrator/security_config.ymlorchestrator/storage_config.ymlorchestrator/high_availability_config.ymlorchestrator/additional_cloud_init.ymlorchestrator/pxe_mapping_file.csvorchestrator/set_pxe_boot_config.yml
Configure the repo-manager and image-build-manager inputs before starting an image build. The build pipeline refreshes these files from the GitLab branch and uploads them, together with catalog_rhel.json and omnia.env, to the BSM API.
Procedure¶
-
Configure the staged input files for the three base domains. The files are located under
$OMNIA_DATA_PATH/<domain>/input/$OMNIA_PROJECT_NAME/.Domain Configuration references Repository Manager Repository configuration and Pulp endpoint configuration Image Build Manager Image-build configuration and, when functional_groups_source: configis selected, package groupsOrchestrator Review the complete Orchestrator input summary and configure the files required for the selected deployment. -
From the Main source directory, prepare the base infrastructure:
Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --prepare-baseThe command validates, collects credentials for, and prepares Repository Manager, Image Build Manager, and Orchestrator in dependency order. It stops if any domain or phase fails. For command behavior, options, and verification, see Prepare base infrastructure.
-
Edit the staged BuildStreaM configuration:
Run on: OIM hostvi /opt/omnia/build_stream/input/project_default/build_stream_config.ymlAt minimum, set
enable_build_stream: true,build_stream_host_ip, andgitlab_host. Confirm thatbuild_stream_portandgitlab_https_portare available. -
Deploy the complete BuildStreaM stack:
Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run build_streamRun on: OIM hostsource /opt/omnia/activate-omnia.sh cd <OMNIA_SOURCE_PATH>/src/build_stream/playbooks ansible-playbook build_stream.ymlEnter the six BuildStreaM credentials listed in the input contract when prompted. The default BuildStreaM flow validates the configuration, collects credentials, prepares PostgreSQL, the BSM API, and the playbook watcher, and then configures GitLab and the CI/CD project.
-
Retrieve
/root/gitlab-certs/ca.crtfrom the GitLab host and import it into the client browser trust store if the browser must trust the self-signed Omnia CA.
Verification¶
-
Output contract: On the OIM, inspect the status file produced by the
preparephase:Run on: OIM hostcat /opt/omnia/build_stream/output/project_default/build_stream_status.ymlA successful prepare operation produces this structure with values from
build_stream_config.yml:--- overall_status: "prepared" build_stream_host: "<build_stream_host_ip>" build_stream_port: 8010 gitlab_host: "<gitlab_host>" gitlab_https_port: 443 gitlab_url: "https://<gitlab_host>:443" bsm_api_url: "https://<build_stream_host_ip>:8010"overall_status: "prepared"is the value written by the current implementation; GitLab deployment does not change this field. -
Verify that the OIM services required by the GitLab phase are active:
Run on: OIM hostsystemctl is-active omnia_postgres.service systemctl is-active omnia_build_stream.service systemctl is-active playbook-watcher.service -
Verify the BSM health endpoint with its generated certificate:
Run on: OIM hostcurl --cacert /opt/omnia/build_stream_ssl/ssl/bs_cert.pem \ https://<build_stream_host_ip>:<build_stream_port>/health -
On the GitLab host, verify GitLab and its Quadlet runner service:
Run on: GitLab hostgitlab-ctl status systemctl is-active gitlab-runner.service -
Sign in as
rootand open the project:https://<gitlab_host>/root/<gitlab_project_name>For a non-default HTTPS port, use
https://<gitlab_host>:<gitlab_https_port>/root/<gitlab_project_name>. -
Confirm that the project contains
catalog_rhel.json,cadence_catalog_rhel.json,omnia.env, theinput/directory, and these CI/CD files:.gitlab-ci.yml .gitlab-ci-build.yml .gitlab-ci-deploy.yml .gitlab-ci-cadence.yml .gitlab-ci-deploy-child-template.yml .gitlab-ci-cleanup.yml .gitlab-ci-cleanup-child-template.yml -
In the GitLab project, open Settings > CI/CD, expand Runners, and confirm that Omnia Hosted Runner is online. The deployment itself fails if it cannot detect an online project runner.
Next steps¶
- AI-Assisted Catalog Authoring to select and invoke a catalog-authoring skill.
- Execute Build Pipeline to update
catalog_rhel.jsonand create HPC OS images. - Execute Deploy Pipeline to select and deploy a built image.
- Automate Build and Deployment with Cadence to reconcile catalog RPMs and run build and deployment together.
- Cleanup Operations to remove selected build jobs and image groups through the cleanup pipeline.
Troubleshooting¶
- The project input directory does not exist: Export
OMNIA_DATA_PATH=/opt/omniaandOMNIA_PROJECT_NAME=project_default, then runsrc/build_stream/domain-init.sh. The current entry playbook requires/opt/omnia/build_stream/input/project_default. - The precheck reports missing containers or credentials: Ensure
pulp,minio-server, andregistryare running and that the repo-manager and image-build-manager credential files listed in the input contract exist. The precheck directs the operator to runomnia.sh --prepare-basewhen these dependencies are absent. - Configuration validation fails: Use the consolidated
build_stream_config.yml, setenable_build_streamtotrue, provide both host values, and keep both ports in the range1–65535. The configuration schema does not allow unsupported extra keys. sshpassor another package cannot be installed: Rundnf makecacheand correct the BaseOS/AppStream repository configuration on the affected host before retrying.- The GitLab HTTPS port is in use: Choose an unused
gitlab_https_portinbuild_stream_config.ymlbefore deployment. - GitLab-host validation fails: Disable SELinux, provide at least the configured CPU, memory, and free-space minimums, and verify that the GitLab host can ping
build_stream_host_ip. - The GitLab phase reports an inactive OIM service or a missing BSM certificate: Run the
preparephase and verifyomnia_postgres.service,omnia_build_stream.service, andplaybook-watcher.service. The required certificate is/opt/omnia/build_stream_ssl/ssl/bs_cert.pemwhenOMNIA_DATA_PATH=/opt/omnia. - The GitLab API is unreachable: Verify the configured host and HTTPS port, firewall access, and the generated TLS files under
/root/gitlab-certson the GitLab host. - Runner image deployment fails: Verify outbound access to Docker Hub and the GitLab registry, available disk space, and any applicable registry pull limits. The source retries each image pull five times.
- The runner is not online: Check
gitlab-runner.service, the Podman socket, and the runner configuration under/srv/gitlab-runner/config. Changes to the GitLab port or project identity can invalidate the existing runner registration. - Cadence does not start: Confirm that the
cadencemapping is valid,gitlab_repo_pathidentifies a writable local Git clone, and the watcher was restarted after enabling cadence. - A GitLab port or project-name reconfiguration is required: The source requires cleanup before redeployment. The supported
cleanuptag removes the complete BuildStreaM deployment, including GitLab, BSM, PostgreSQL, credentials, and runtime data; back up required data before using it.