How dell/omnia works
1. What this repository is
Omnia is a monorepo for deploying and operating HPC-style Linux clusters. The architecture is split between a Python control plane and a large Ansible automation layer that provisions hosts, builds images, configures services, and manages upgrades.
2. Primary control-plane package: build_stream/
This is the main Python application. It contains the runtime entrypoint, HTTP API, domain logic, orchestration layer, and infrastructure adapters. The package is organized with a clean-architecture style: API routes call orchestrator use cases, which depend on core domain services and abstract repositories.
3. HTTP/API boundary
The build_stream/api/* modules expose endpoints for auth, catalog parsing, input-file generation, build-image requests, jobs, local repo management, and validation. Each API area has its own routes, schemas, and dependencies, which indicates a strict boundary between transport concerns and business logic.
4. Application/orchestration layer
build_stream/orchestrator/* contains command and use-case objects for the main workflows:
- parse catalogs
- generate input files
- create jobs
- create local repositories
- build images
- validate images
These use cases coordinate domain services, repositories, and result polling, rather than implementing the business rules directly in the API layer.
5. Domain model areas
The build_stream/core/* tree is divided by business capability:
- catalog: parse/generate/adapter logic for software catalogs and schemas
- build_image: entities, services, repositories, value objects for image creation
- jobs: job, stage, audit, and idempotency modeling
- localrepo: local package repository concepts and services
- validate: image validation concepts
- artifacts: shared artifact abstractions and value objects
This is the center of the application’s business rules.
6. Infrastructure and persistence
build_stream/infra/* provides the concrete adapters:
- database persistence with Alembic migrations, models, session, mappers, and repositories
- file-based and in-memory artifact stores
- NFS-backed repositories for input directories and playbook queue/request/result data
- ID generation and Vault client integration
This is where the app touches durable state and external storage.
7. Authentication and secrets
Auth is handled inside build_stream/api/auth/ with JWT and password handlers. The presence of a Vault client suggests secrets are not stored only in config files; the system can retrieve or manage credentials externally when preparing deployment inputs.
8. Ansible-based operational workflows
The repository’s runtime work is mostly executed through playbooks:
- prepare_oim/ boots the platform and deploys containers
- input_validation/ validates user-provided cluster input
- local_repo/ creates package mirrors and metadata
- build_image_x86_64/ and build_image_aarch64/ build OS images per architecture
- discovery/ configures discovered nodes and cluster services
- telemetry/ deploys and manages telemetry infrastructure
- upgrade/ performs migration/rollback flows
These playbooks are the execution plane behind the Python control plane.
9. Deployment/container stack in prepare_oim/
This area assembles the initial OIM environment by deploying containers for:
- authentication
- build_stream
- PostgreSQL
- Pulp
- OpenChami
It also installs supporting services like a watcher service and performs prerequisite, firewall, and networking setup. This is the bootstrap layer that makes the Python API and the rest of the system available.
10. Cluster configuration and discovery layer
discovery/ is where the system turns validated inputs and generated artifacts into node and service configuration. It contains roles for Slurm, OpenLDAP, passwordless SSH, telemetry, NFS client setup, and Kubernetes configuration. The outputs here are mostly rendered YAML, config files, and service definitions consumed by the target cluster.
11. Shared Ansible libraries and modules
The common/ and utils/ trees provide reusable Ansible module_utils, custom modules, templates, and helper playbooks. They cover input parsing, catalog generation, local repo operations, credential handling, functional group generation, cleanup, PXE boot setup, and Slurm backup/rollback utilities. This shared layer is the glue between higher-level playbooks.
12. Input/data flow
The repository treats input/ and examples/ as the source-of-truth for deployment parameters. Typical flow is:
user input files and catalog data → validation → generated input/config artifacts → orchestration/API requests → Ansible execution → cluster services, images, repos, and telemetry.
The build_stream app stores metadata and job state, while Ansible consumes rendered files to act on remote systems.
13. External systems and services
The architecture integrates with several external components that materially shape the design:
- PostgreSQL for job/artifact metadata
- NFS for playbook and input file exchange
- Pulp for package repository hosting
- Vault for secrets
- Slurm, Kubernetes/OpenChami, OpenLDAP, GitLab, and telemetry backends
- telemetry stack components such as Kafka and VictoriaMetrics/LDMS in the telemetry roles
These are not incidental dependencies; they are the environment the system configures and manages.
14. Quality gates and delivery
The repo has extensive unit, integration, and end-to-end tests for both the Python package and Ansible flows, plus CI workflows for linting. That suggests the architecture is intentionally modular, with strong boundary testing between API, orchestration, core logic, and infrastructure adapters.
Main entry points: catalog/use_cases Catalog use cases · core Domain core · api API layer · build_image/use_cases Build use cases
Components 34
Python control plane
build_stream API, orchestration, domain, and infrastructure adapters
- Main entry · Starts the build_stream application
build_stream/main.py - API layer · Route and schema layer for auth, catalog, jobs, image build, repo, and validation
build_stream/api - Orchestrator · Coordinates catalog, job, repo, build-image, and validation workflows
build_stream/orchestrator - Domain core · Catalog, build-image, jobs, localrepo, validate, and shared artifact rules
build_stream/core - Infrastructure · Database, NFS repositories, artifact stores, ID generation, and Vault integration
build_stream/infra - Auth · Authentication handlers and service boundary
build_stream/api/auth - Catalog API · Parse-catalog and catalog-role transport layer
build_stream/api/parse_catalog - Jobs API · Job transport layer and schemas
build_stream/api/jobs - Build-image API · Build-image request transport layer
build_stream/api/build_image - Catalog use cases · Parse catalog and generate input files workflows
build_stream/orchestrator/catalog/use_cases - Job use cases · Creates and coordinates jobs
build_stream/orchestrator/jobs/use_cases - Build use cases · Creates build-image workflows
build_stream/orchestrator/build_image/use_cases - Validate use cases · Runs image validation workflows
build_stream/orchestrator/validate/use_cases - Catalog core · Catalog parsing, adapter policy, and software config generation
build_stream/core/catalog - Build-image core · Image entities, services, repositories, and value objects
build_stream/core/build_image - Jobs core · Job, stage, audit, and idempotency model
build_stream/core/jobs - Localrepo core · Local package repository concepts and services
build_stream/core/localrepo - Validate core · Image validation concepts and services
build_stream/core/validate
Ansible workflows
Primary operational playbooks that bootstrap and manage the cluster
- Prepare OIM · Bootstraps containers and supporting services for the platform
prepare_oim/prepare_oim.yml - Discovery · Applies node, service, Slurm, LDAP, Kubernetes, and telemetry configuration
discovery/discovery.yml - Local repo · Builds package mirrors and metadata
local_repo/local_repo.yml - Input validation · Validates deployment inputs before orchestration
input_validation/validate_config.yml - Build image x86 · Builds x86_64 operating system images
build_image_x86_64/build_image_x86_64.yml - Build image arm · Builds aarch64 operating system images
build_image_aarch64/build_image_aarch64.yml - Telemetry · Deploys and manages telemetry stack and collection
telemetry/telemetry.yml - Upgrade · Performs OIM and cluster upgrade or rollback flows
upgrade/upgrade_omnia.yml
Shared Ansible layer
Reusable modules, tasks, and variables shared across playbooks
- Common libs · Reusable module_utils, modules, tasks, and variables shared by playbooks
common - Utils · Operational helper playbooks and roles for credentials, cleanup, PXE, and upgrades
utils - Examples · Canonical input, catalog, and config examples used as deployment starting points
examples
External systems
Stateful services and platforms integrated by the repository
- PostgreSQL · Stores build_stream job and artifact metadata
- NFS · Exchange point for inputs, playbooks, and results
- Pulp · Hosts local package repositories
- Vault · Supplies credentials and secrets during deployment
- Slurm · Cluster workload scheduler configured by the playbooks
Connections 43
- Main entry → API layer: serves · Application entry exposes the HTTP boundary
- API layer → Auth: auth · Authentication routes use JWT and password services
- API layer → Catalog use cases: catalog · Catalog-related endpoints call orchestration use cases
- API layer → Jobs API: jobs · Job endpoints expose job lifecycle operations
- API layer → Build-image API: build · Build-image requests enter here
- Orchestrator → Catalog use cases: contains · Catalog workflows are implemented as use cases
- Orchestrator → Job use cases: contains · Job workflows are implemented as use cases
- Orchestrator → Build use cases: contains · Build-image workflows are implemented as use cases
- Orchestrator → Validate use cases: contains · Validation workflows are implemented as use cases
- Catalog use cases → Catalog core: uses · Use cases depend on catalog parser/generator logic
- Catalog use cases → Infrastructure: stores · Generated artifacts and metadata are persisted through adapters
- Job use cases → Jobs core: uses · Use cases depend on job domain model and services
- Job use cases → PostgreSQL: persists · Job state is backed by database repositories
- Build use cases → Build-image core: uses · Build-image workflows depend on domain entities and services
- Build use cases → Pulp: publishes · Image workflows interact with package repository hosting
- Validate use cases → Validate core: uses · Validation use cases depend on validation domain rules
- Infrastructure → PostgreSQL: db · SQL persistence layer for metadata and jobs
- Infrastructure → NFS: nfs · NFS-backed repositories move inputs and playbook outputs
- Infrastructure → Vault: secrets · Vault client integration provides external secrets
- Domain core → Catalog core: includes · Catalog is a major domain area
- Domain core → Build-image core: includes · Build-image is a major domain area
- Domain core → Jobs core: includes · Jobs is a major domain area
- Domain core → Localrepo core: includes · Local repository is a major domain area
- Domain core → Validate core: includes · Validation is a major domain area
- Prepare OIM → PostgreSQL: deploys · Bootstrap creates the database service
- Prepare OIM → Pulp: deploys · Bootstrap creates the package repository service
- Prepare OIM → Vault: integrates · Bootstrap wiring expects external secret handling
- Prepare OIM → Main entry: bootstraps · Deploys the build_stream container and watcher
- Input validation → Common libs: uses · Validation playbooks reuse shared Ansible helpers
- Local repo → Common libs: uses · Local repo workflows reuse shared Ansible helpers
- Discovery → Common libs: uses · Cluster configuration reuses common tasks and modules
- Discovery → Slurm: configures · Discovery produces Slurm configuration and node setup
- Discovery → Telemetry: configures · Discovery also renders telemetry deployment artifacts
- Telemetry → Common libs: uses · Telemetry workflow reuses shared modules and tasks
- Upgrade → Utils: uses · Upgrade flows depend on operational utility playbooks
- Examples → Input validation: feeds · Example inputs are the starting point for validation
- Examples → Catalog use cases: feeds · Example catalogs are parsed into generated artifacts
- Input validation → Catalog use cases: enables · Validated inputs flow into catalog parsing and generation
- Catalog use cases → Prepare OIM: orchestrates · Generated artifacts and requests drive bootstrap execution
- Build use cases → Build image x86: dispatches · x86 build-image workflows are executed via Ansible
- Build use cases → Build image arm: dispatches · aarch64 build-image workflows are executed via Ansible
- Localrepo core → Local repo: drives · Localrepo domain concepts drive the repository workflow
- Validate core → Input validation: supports · Validation rules complement the Ansible validation flow