Skip to content

Create Local Repositories

Overview

Repository Manager creates the local HTTPS Pulp service used by Omnia image-building and provisioning workflows. It reads three customer inputs:

Input Purpose
Catalog JSON from CATALOG_FILE_PATH Selects functional layers, groups, packages, OS versions, and sources
repo_manager_config.yml Maps catalog RPM sources and private registries to reachable upstream endpoints
repo_manager_endpoint_config.yml Sets the host-facing Pulp IP and HTTPS port

Repository Manager processes one or more RHEL 10.x minor versions selected by the active catalog. A catalog can select one minor version or multiple minor versions together. Repository Manager creates one execution context for each selected version and processes the contexts in ascending minor-version order. In each context, an RPM source is matched by OS version and reponame, while an image source is matched by registry. The examples on this page show RHEL 10.0 and RHEL 10.2 in single-version mode and together in multi-version mode. If a selected catalog later provides another supported RHEL 10.x minor version, such as RHEL 10.4, use the same version-qualified structure. This processing capability does not by itself establish that a selected RHEL version is validated for the complete Omnia deployment.

Prerequisites

  • Complete the prerequisites on the Repository Manager page.
  • Select or update the catalog, and set CATALOG_FILE_PATH to the selected JSON file. Each functional layer must reference exactly one group with type: "base_os", and every group and package reference must resolve. A single-version catalog contains one base OS group for the selected version. A multi-version catalog contains one base OS group for each selected version, and each functional layer references the group for its intended OS version.
  • Ensure all selected source URLs are reachable from the OIM.
  • For every OS version selected by the catalog, provide the required repository mapping, usable RHEL subscription content, or an explicit upstream URL.
  • CRI-O repository URL is unreachable from OIM.
  • EPEL Repository Unavailable/Unstable/Too Slow.
  • Have credentials available for the Pulp administrator and for any private registries that use basic authentication. Docker Hub credentials are optional for anonymous public pulls.
  • If custom Pulp storage paths are configured in the source variables, create each directory and make it writable before running prepare; Repository Manager does not create filesystems or mount storage.

Procedure

1. Load the environment

Run on: OIM host
cd <OMNIA_SOURCE_PATH>
./src/main/omnia.sh --setup-venv
source /opt/omnia/venv/bin/activate
set -a
source /etc/omnia/omnia.env
set +a

At minimum, the environment must contain:

SYSTEM_ADMIN_NIC_IPV4=<OIM-admin-network-IPv4>
CATALOG_FILE_PATH=/absolute/path/to/catalog_rhel.json

For catalog choices and the persistent environment configuration, follow Select or update the catalog. CATALOG_FILE_PATH can point to a catalog containing one or more RHEL 10.x minor versions. A multi-version catalog contains the base OS group and package sources for every selected version in the same JSON file.

OMNIA_DATA_PATH defaults to /opt/omnia, and OMNIA_PROJECT_NAME defaults to project_default. Repository Manager uses ${OMNIA_DATA_PATH}/repo_manager as its runtime root (default /opt/omnia/repo_manager).

2. Configure RPM repositories

Edit the staged runtime input $OMNIA_DATA_PATH/repo_manager/input/$OMNIA_PROJECT_NAME/repo_manager_config.yml (default /opt/omnia/repo_manager/input/project_default/repo_manager_config.yml). If the file does not exist, run domain-init.sh to stage the source templates from src/repo_manager/input/. Choose the configuration that matches the OS versions in the active catalog. The architecture level shown in these examples is required by the repo_manager_config.yml schema. The following tabs show two single-version examples and one multi-version example. For another catalog-selected RHEL 10.x minor version, use that version as the repositories key and provide its matching repository configuration. For example, a future supported RHEL 10.4 catalog would use "10.4".

repo_config: partial
caching_policy: true
standard: false

registries:

repositories:
  "10.0":
    x86_64:
      baseos: {}
      appstream: {}
      epel:
        url: "https://mirror.example/rhel/10/epel/x86_64/"
        gpgkey: "https://mirror.example/keys/RPM-GPG-KEY-EPEL-10"
        policy: partial
        caching: true
        priority: 99
repo_config: partial
caching_policy: true
standard: false

registries:

repositories:
  "10.2":
    x86_64:
      baseos: {}
      appstream: {}
      epel:
        url: "https://mirror.example/rhel/10/epel/x86_64/"
        gpgkey: "https://mirror.example/keys/RPM-GPG-KEY-EPEL-10"
        policy: partial
        caching: true
        priority: 99
repo_config: partial
caching_policy: true
standard: false

registries:

repositories:
  "10.0":
    x86_64:
      baseos: {}
      appstream: {}
      epel:
        url: "https://mirror.example/rhel/10/epel/x86_64/"
        gpgkey: "https://mirror.example/keys/RPM-GPG-KEY-EPEL-10"
        policy: partial
        caching: true
        priority: 99
  "10.2":
    x86_64:
      baseos: {}
      appstream: {}
      epel:
        url: "https://mirror.example/rhel/10/epel/x86_64/"
        gpgkey: "https://mirror.example/keys/RPM-GPG-KEY-EPEL-10"
        policy: partial
        caching: true
        priority: 99

Repository Manager output for each OS selection

Repository Manager writes only the OS-version sections selected by the active catalog. The following table illustrates the three example configurations:

Example catalog selection execution_contexts overall_status_by_version keys OS-version keys eligible for versioned content maps
Single-version example: RHEL 10.0 One RHEL 10.0 context 10.0 10.0
Single-version example: RHEL 10.2 One RHEL 10.2 context 10.2 10.2
Multi-version (hybrid) example: RHEL 10.0 and RHEL 10.2 RHEL 10.0 followed by RHEL 10.2 10.0 and 10.2 10.0 and 10.2

The versioned content maps are repositories, file_repos, and base_urls. Each map contains entries only for the corresponding content selected by the catalog and available from a ready Pulp distribution. See the Repository Manager output contract for the complete field definitions and a combined-version example.

Use the catalog source values to build the lookup path. For example, this source:

{
  "architecture": "x86_64",
  "name": "rhel",
  "version": ["10.0"],
  "reponame": "epel"
}

requires repositories."10.0".x86_64.epel.

The exact keys baseos, appstream, and codeready-builder may be empty when the OIM has usable subscription content. An explicit URL always takes precedence. Otherwise, a repository-level standard value overrides the top-level value. With standard: false, Repository Manager first checks the matching EUS-form subscription repository ID and then checks the standard repository ID. With standard: true, it uses only the standard form. This selection behavior does not assert that an EUS channel exists or is supported for every RHEL minor version. Without usable subscription access, every catalog-referenced repository requires a non-empty URL.

Repository entries accept url, gpgkey, policy, caching, priority, standard, sslcacert, sslclientkey, and sslclientcert. priority must be from 1 through 100.

3. Choose the RPM content policy

Repository Manager combines two independent settings to decide what Pulp mirrors and what dnf does on the OIM:

  • repo_config and caching_policy are the global defaults that apply to every repository.
  • A repository entry under repositories.<version>.<arch>.<repo_name> can override them with policy and caching.

Each combination maps to a Pulp download policy (immediate, on_demand, or streamed) that controls what Pulp synchronizes. dnf always operates on the catalog-selected packages; it either downloads them with dependencies into the Repository Manager RPM directory or validates them against Pulp, based on the resolved Pulp policy.

Global repo_config + caching_policy

repo_config caching_policy Pulp policy What Repository Manager does per catalog-selected package Use when
always false immediate Runs dnf download <pkg> and its dependencies from the local Pulp copy into the Repository Manager RPM directory. Air-gapped or fully offline deployments requiring a complete local mirror.
partial true on_demand Runs dnf download <pkg> and its dependencies; Pulp fetches and retains the RPMs. Selective sync with retention.
partial false streamed Runs dnf info <pkg> to validate metadata against the Pulp mirror; no RPMs are downloaded. Validation only; upstream must remain reachable at install time.

Per-repository policy + caching

policy caching Pulp policy What Repository Manager does per catalog-selected package Use when
always false immediate Runs dnf download <pkg> and its dependencies from local Pulp. This repository must be fully self-contained offline.
partial true on_demand Runs dnf download <pkg> and its dependencies; Pulp fetches and retains the RPMs. Only catalog-selected packages from this repository are needed.
partial false streamed Runs dnf info <pkg> to validate metadata; no RPMs are downloaded. Selected packages are validated only; upstream reachable at install time.

A catalog item with packagetype: "rpm_repo" requires retained content and must not resolve to streamed. Container synchronization uses an independent policy and defaults to immediate.

4. Configure private registries when required

Known public registries can be used without a registries entry. For a private registry, add a mapping such as:

registries:
  private_registry:
    base_url: "https://<registry_host>"
    port: 443
    auth:
      type: basic
      credentials:
        vault_path: "registries/<registry_key>"
    tls:
      ca_path: "/path/to/<registry_ca>.crt"
      client_cert_path: ""
      client_key_path: ""
      insecure: false

  insecure_registry:
    base_url: "http://<registry_host>"
    port: <registry_port>
    auth:
      type: none
    tls:
      insecure: true

Replace <registry_host> with the registry IP address or FQDN, <registry_port> with the actual port, and <registry_ca>.crt with the path to the CA certificate. auth.type is none or basic; basic authentication requires a vault_path that Repository Manager collects during prepare and stores in an Ansible Vault file. Do not put credentials in the catalog or repository configuration.

The image's catalog source must use registry: "private_registry", while its package name must start with the actual configured host[:port], for example <registry_host>:<registry_port>/library/image.

5. Configure the Pulp endpoint

Edit the staged runtime input $OMNIA_DATA_PATH/repo_manager/input/$OMNIA_PROJECT_NAME/repo_manager_endpoint_config.yml (default /opt/omnia/repo_manager/input/project_default/repo_manager_endpoint_config.yml). If the file does not exist, run domain-init.sh to stage the source templates from src/repo_manager/input/.

pulp_server_port: 2225
# Optional; SYSTEM_ADMIN_NIC_IPV4 is used when omitted.
# pulp_server_ip: "192.0.2.10"

The selected host port maps to port 443 in the Pulp container. HTTPS is mandatory, and certificate paths are derived automatically.

6. Validate the inputs

Run on: OIM host
cd <OMNIA_SOURCE_PATH>/src/main
./omnia.sh --run repo_manager --tags precheck
Run on: OIM host
source /opt/omnia/activate-omnia.sh
cd <OMNIA_SOURCE_PATH>/src/repo_manager/playbooks
ansible-playbook repo_manager.yml --tags precheck

Run precheck against the staged runtime inputs, catalog, and subscription mappings. If the runtime inputs are missing, run ./domain-init.sh from src/repo_manager/ first to stage the source templates.

The validation must resolve every selected OS version across the catalog and repository configuration. The following table illustrates the three example configurations:

Example catalog selection Expected validation result
Single-version example: RHEL 10.0 One RHEL 10.0 execution context and a matching repositories."10.0" section
Single-version example: RHEL 10.2 One RHEL 10.2 execution context and a matching repositories."10.2" section
Multi-version (hybrid) example: RHEL 10.0 and RHEL 10.2 Two execution contexts and both repository sections; the contexts are ordered as RHEL 10.0 followed by RHEL 10.2

7. Deploy Pulp, synchronize content, and generate status

Run without tags

For a complete run, use the playbook without tags. An untagged run executes setup, environment precheck, credential collection, Pulp deployment, input validation, content download and synchronization, and repo_status.yml generation, in that order:

Run on: OIM host
cd <OMNIA_SOURCE_PATH>/src/main
./omnia.sh --run repo_manager
Run on: OIM host
source /opt/omnia/activate-omnia.sh
cd <OMNIA_SOURCE_PATH>/src/repo_manager/playbooks
ansible-playbook repo_manager.yml

Cleanup and catalog operations are not included in the untagged run and must be selected explicitly with --tags.

For a multi-version catalog, the download flow completes each version context before starting the next one. A failed context stops later contexts. The aggregate status becomes success only after every selected version completes; otherwise the output retains the applicable failed or pending per-version state.

Run with tags

To control each phase individually, pass one or more tags. Tags can be combined in the order implemented by the entry playbook:

Run on: OIM host
cd <OMNIA_SOURCE_PATH>/src/main
./omnia.sh --run repo_manager \
  --tags "prepare,precheck,download,status"
Run on: OIM host
source /opt/omnia/activate-omnia.sh
cd <OMNIA_SOURCE_PATH>/src/repo_manager/playbooks
ansible-playbook repo_manager.yml \
  --tags "prepare,precheck,download,status"

The following table describes each supported tag:

Tag What it does
precheck Validates the system environment (SYSTEM_ADMIN_NIC_IPV4, CATALOG_FILE_PATH, network reachability) and validates repo_manager_config.yml syntax, catalog source mappings, RHEL subscription access, and repository URLs against the selected catalog contexts.
credentials Collects and encrypts Pulp administrator and private-registry credentials into an Ansible Vault file without deploying Pulp.
prepare Validates the Pulp endpoint configuration, collects or reuses credentials, configures SELinux and firewall rules, deploys or updates the Pulp HTTPS container and Quadlet service, configures the Pulp CLI for secure access, and verifies Pulp health.
download / execute Loads credentials, validates Pulp health, synchronizes catalog-required RPM repositories, downloads or validates catalog packages (per the resolved content policy), synchronizes container images, File artifacts, and Python packages, and generates a terminal repo_status.yml. Use -e "resync_repos=all" to force all RPM repositories to check upstream, or -e "resync_repos=<name>[,<name>]" to target specific repositories.
status Reads the current Pulp distributions and generates repo_status.yml from the synchronized content without downloading anything.
cleanup Removes the Pulp container, image, Quadlet service, runtime data directories, CLI configuration, and host trust anchor. Credentials are deleted by default; use -e "cleanup_credentials=false" to preserve them. Use -e "cleanup_logs=false" to preserve runtime logs.
cleanup_repos Selectively removes RPM repositories, container tags, or File/Python artifacts from Pulp. Requires one or more of -e "cleanup_repos=<name>", -e "cleanup_containers=<ref>", or -e "cleanup_files=<name>". Prompts for confirmation unless -e "force=true" is set. Use all to remove every artifact of that type.
catalog_generate Generates a catalog JSON file from a package definition file specified with -e "input_file=<path>".
catalog_add Adds or updates packages and groups in the active catalog from a definition file specified with -e "input_file=<path>".
catalog_delete Removes package references from the active catalog using a definition file specified with -e "input_file=<path>". A package object is removed only when no other group references it.
catalog_validate Validates the active catalog structure, group references, package sources, and functional-layer consistency without modifying it.

Adding custom container images to the catalog

Use catalog_add to add container images from private registries. User registries may be hosted on the OIM or on an external server, and both HTTP and HTTPS registries are supported. To set up a registry before adding images to the catalog:

The input-line format for a container image is:

key, image, <host>:<port>/image_path, registry_key, tag

The image name must start with the actual configured host:port. The registry_key must match a key under registries in repo_manager_config.yml. Each unique image-tag combination is a separate catalog entry.

The resulting catalog entries look like this:

{
  "<registry_host>:443/library/ubuntu-22.04": {
    "name": "<registry_host>:443/library/ubuntu",
    "packagetype": "image",
    "sources": [
      {
        "architecture": "x86_64",
        "name": "rhel",
        "version": ["10.0"],
        "registry": "harbor_registry"
      }
    ],
    "tag": "22.04"
  },
  "<registry_host>:443/library/ubuntu-24.04": {
    "name": "<registry_host>:443/library/ubuntu",
    "packagetype": "image",
    "sources": [
      {
        "architecture": "x86_64",
        "name": "rhel",
        "version": ["10.0"],
        "registry": "harbor_registry"
      }
    ],
    "tag": "24.04"
  },
  "<registry_host>:<registry_port>/library/nginx-1.25.2-alpine-slim": {
    "name": "<registry_host>:<registry_port>/library/nginx",
    "packagetype": "image",
    "sources": [
      {
        "architecture": "x86_64",
        "name": "rhel",
        "version": ["10.0"],
        "registry": "private_registry"
      }
    ],
    "tag": "1.25.2-alpine-slim"
  }
}

To add these images, create an input file that references the matching registry keys configured in repo_manager_config.yml:

[defaults]
arch=x86_64, os=rhel, os_version=10.0

[custom_container_group | description=Custom container images]
ubuntu_22_04, image, <registry_host>:443/library/ubuntu, harbor_registry, 22.04
ubuntu_24_04, image, <registry_host>:443/library/ubuntu, harbor_registry, 24.04
nginx_alpine, image, <registry_host>:<registry_port>/library/nginx, private_registry, 1.25.2-alpine-slim

[slurm_control_node_rhel_10_0_x86_64 | type=functional_layer]
"custom_container_group"

The matching repo_manager_config.yml entries:

registries:
  harbor_registry:
    base_url: "https://<registry_host>"
    port: 443
    auth:
      type: basic
      credentials:
        vault_path: "registries/harbor_registry"
    tls:
      ca_path: "/data/cert/harbor.crt"
      client_cert_path: ""
      client_key_path: ""
      insecure: false

  private_registry:
    base_url: "http://<registry_host>"
    port: 3445
    auth:
      type: none
    tls:
      insecure: true

Catalog operations use the never tag and must be run separately with --tags before the main workflow. The following three-step sequence adds the images, validates the catalog, and then runs the full untagged workflow to prepare, precheck, download, and generate status:

Run on: OIM host
cd <OMNIA_SOURCE_PATH>/src/main

# Step 1: Add the container images to the catalog.
./omnia.sh --run repo_manager --tags catalog_add \
  -e "input_file=/absolute/path/to/container_additions.txt"

# Step 2: Validate the updated catalog.
./omnia.sh --run repo_manager --tags catalog_validate

# Step 3: Run the full workflow (prepare, precheck, download, status).
./omnia.sh --run repo_manager
Run on: OIM host
source /opt/omnia/activate-omnia.sh
cd <OMNIA_SOURCE_PATH>/src/repo_manager/playbooks

# Step 1: Add the container images to the catalog.
ansible-playbook repo_manager.yml --tags catalog_add \
  -e "input_file=/absolute/path/to/container_additions.txt"

# Step 2: Validate the updated catalog.
ansible-playbook repo_manager.yml --tags catalog_validate

# Step 3: Run the full workflow (prepare, precheck, download, status).
ansible-playbook repo_manager.yml

Credentials are stored in $OMNIA_DATA_PATH/repo_manager/input/<project>/repo_manager_config_credentials.yml with the matching .repo_manager_config_credentials_key. Both files are root-owned, mode 0600, and the credential YAML is encrypted with Ansible Vault.

Verification

1. Verify the output contract for image building

Repository Manager publishes the synchronized repository information for Image Build Manager and cluster provisioning workflows at:

$OMNIA_DATA_PATH/repo_manager/output/<project>/repo_status.yml

The default path is /opt/omnia/repo_manager/output/project_default/repo_status.yml. Inspect the file before starting an image build:

Run on: OIM host
cat /opt/omnia/repo_manager/output/project_default/repo_status.yml

The generated contract has this structure; versions, architectures, repository names, and URLs reflect the active catalog and the distributions available in Pulp:

overall_status: "success"
cluster_os_type: "rhel"
repo_config: "partial"
execution_contexts:
  - context_id: "rhel_10.0"
    os_type: "rhel"
    os_version: "10.0"
    architectures: ["x86_64"]
  - context_id: "rhel_10.2"
    os_type: "rhel"
    os_version: "10.2"
    architectures: ["x86_64"]
overall_status_by_version:
  "10.0": "success"
  "10.2": "success"
repo_manager:
  port: 2225
  certificates:
    server_crt: "/opt/omnia/repo_manager/pulp_config/settings/certs/pulp_webserver.crt"
    certs_dir: "/opt/omnia/repo_manager/pulp_config/settings/certs"
repositories:
  "10.0":
    x86_64:
      baseos:
        url: "https://192.0.2.10:2225/pulp/content/.../rhel/10.0/baseos/"
  "10.2":
    x86_64:
      baseos:
        url: "https://192.0.2.10:2225/pulp/content/.../rhel/10.2/baseos/"
file_repos:
  "10.0":
    x86_64:
      tarball:
        example-tool: "https://192.0.2.10:2225/pulp/content/.../rhel/10.0/tarball/example-tool/"
  "10.2":
    x86_64:
      tarball:
        example-tool: "https://192.0.2.10:2225/pulp/content/.../rhel/10.2/tarball/example-tool/"
base_urls:
  "10.0":
    x86_64:
      tarball: "https://192.0.2.10:2225/pulp/content/.../rhel/10.0/tarball/"
  "10.2":
    x86_64:
      tarball: "https://192.0.2.10:2225/pulp/content/.../rhel/10.2/tarball/"

Before proceeding to Image Build Manager, verify the following contract conditions:

Check Expected value
Aggregate readiness overall_status is success
Selected OS versions Every entry in overall_status_by_version is success
Catalog context execution_contexts contains the required OS version and architecture
RPM content repositories.<version>.<architecture> contains every catalog-required repository and its Pulp url
File and Python content When selected, file_repos.<version>.<architecture> and base_urls.<version>.<architecture> contain the expected version-qualified URLs
HTTPS access repo_manager.port, repo_manager.certificates.server_crt, and repo_manager.certificates.certs_dir identify the Pulp endpoint and trust certificate

Repository entries can also contain priority when it was explicitly configured. Depending on the selected catalog, the contract can contain version-qualified file_repos and base_urls sections and non-secret registries settings. The generated contract does not publish flat *_base_url or offline_*_path aliases.

Image Build Manager must trust the Pulp CA certificate and must not consume a contract whose overall_status is not success. If a catalog-required RPM distribution is missing, Repository Manager writes overall_status: failed, marks the affected version as failed, and leaves the corresponding repository maps without consumable URLs. Correct the synchronization failure and rerun the download,status tags before building the image.

When one version succeeds and another fails or remains pending, do not start Image Build Manager with the partial output. Correct the first failed context, rerun the synchronization, and verify that every value in overall_status_by_version and the aggregate overall_status is success.

2. Verify Pulp and synchronized content

Verify the service and inspect each Pulp content family used by the catalog:

Run on: OIM host
systemctl status pulp.service
pulp status
pulp rpm distribution list --limit 1000
pulp container distribution list --limit 1000
pulp file distribution list --limit 1000
pulp python distribution list --limit 1000

Next steps

Troubleshooting

  • Additional properties are not allowed: Remove unknown keys and use the implemented version → architecture → repository structure. Configuration keys are lowercase.
  • A referenced RPM repository is missing: Add the exact catalog reponame under the matching version and architecture. A mapping for one architecture does not satisfy another.
  • An empty subscription repository fails: Check the subscription with subscription-manager identity, subscription-manager status, and subscription-manager repos --list-enabled. If subscription content is unavailable, provide an explicit URL.
  • Private registry validation fails: Check the complete chain from catalog source.registry, through registries.<key> and vault_path, to the encrypted registry credential entry. Rerun prepare to collect credentials.
  • Pulp health validation fails: Inspect systemctl status pulp.service and podman logs --tail 200 pulp, correct storage or registry access, and rerun prepare.
  • Synchronization fails for one package: Inspect the package status and worker logs below $OMNIA_DATA_PATH/repo_manager/log/<os>/<version>/<architecture>/ and rerun download after fixing the source.