Skip to content

Image Build Manager Issues

Use this page to diagnose Image Build Manager input validation, repository, image-build, S3, and aarch64 host failures.

Input and playbook reference

Image Build Manager uses the following files. Replace <project> with OMNIA_PROJECT_NAME; the default project is project_default.

File Location and purpose
image_build_config.yml $OMNIA_DATA_PATH/image_build_manager/input/<project>/image_build_config.yml; required domain configuration.
package_groups.yml $OMNIA_DATA_PATH/image_build_manager/input/<project>/package_groups.yml; provides packages and functional groups when functional_groups_source: "config".
Catalog JSON Exact file selected by CATALOG_FILE_PATH; provides packages and functional layers when functional_groups_source: "catalog".
image_build_credentials.yml $OMNIA_DATA_PATH/image_build_manager/input/<project>/image_build_credentials.yml; generated and encrypted during credential collection. Its Vault key is .image_build_credentials_key in the same directory.
repo_status.yml Upstream Repository Manager output at the path configured by repo_manager_output_path in image_build_config.yml.
build_status.yml $OMNIA_DATA_PATH/image_build_manager/output/<project>/build_status.yml; generated after a successful build.

The customer-facing playbook entry point is:

<OMNIA_SOURCE_PATH>/src/image_build_manager/playbooks/image_build_manager.yml

Choose one execution method:

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

Supported troubleshooting tags include precheck, validate, prepare, and build. Run one tag at a time. The top-level image_build_manager.yml playbook imports the phase playbooks below playbooks/build/, playbooks/prepare/, and the other phase directories.

An input file is missing or rejected

Symptom

Validation reports that image_build_config.yml, package_groups.yml, a catalog JSON file, or repo_status.yml cannot be found or is invalid.

Cause
  • The Image Build Manager inputs were not staged for the current project.
  • functional_groups_source does not match the selected package source.
  • CATALOG_FILE_PATH is unset or does not identify an existing JSON file.
  • repo_manager_output_path does not identify the successful Repository Manager output for the current project.
Resolution
  1. Confirm the active project and Image Build Manager data path:

    Run on: OIM host
    printf 'Project: %s\n' "${OMNIA_PROJECT_NAME:-project_default}"
    printf 'Image Build Manager path: %s\n' \
      "${OMNIA_DATA_PATH}/image_build_manager"
    
  2. If initialization did not stage the inputs, run it from Main:

    Run on: OIM host
    cd <OMNIA_SOURCE_PATH>/src/main
    ./omnia.sh --init image_build_manager
    
  3. In the staged image_build_config.yml, set functional_groups_source to catalog or config:

    • For catalog, follow Select or update the catalog and verify CATALOG_FILE_PATH.
    • For config, verify package_groups.yml in the same runtime project input directory.
  4. Confirm that repo_manager_output_path identifies the Repository Manager repo_status.yml for the current project.

  5. Validate the corrected inputs:

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

No functional groups are selected

Symptom

The build reports that no functional groups were found for x86_64 or aarch64, or the expected functional-group image is absent from build_status.yml.

Cause
  • In catalog mode, the selected catalog has no functional layer ending in the target _x86_64 or _aarch64 suffix.
  • In config mode, package_groups.yml has no matching key under functional_groups.
  • All matching catalog layers begin with baseos, so the catalog parser classifies them as base-image layers instead of functional-group images.
Resolution
  1. Check functional_groups_source in the staged image_build_config.yml.
  2. For catalog mode, verify the catalog.functionallayer[].name values in the file selected by CATALOG_FILE_PATH.
  3. For config mode, verify the keys under functional_groups in the staged package_groups.yml.
  4. Run validation, and then rerun the build:

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

Different RHEL Versions Contain the Same Base Packages

Symptom

A multi-version catalog build creates separate version-tagged base images, but their base-package lists are identical.

Cause

The catalog has no functional layers whose names begin with baseos. In this case, Image Build Manager combines the packages from all groups whose type is base_os and assigns that union to every discovered RHEL version. A layer named os_rhel_<version>_<architecture> is classified as a compute layer, not a standalone base layer.

Resolution
  1. Determine whether the combined package list is acceptable for every target RHEL version.
  2. If separate package lists are required, provide a baseos-prefixed functional layer for each version and ensure that it references the applicable base_os group.
  3. Validate the catalog and rerun the image build.

Driver Packages Are Absent From the Built Image

Symptom

GPU, InfiniBand, or storage driver packages referenced by the catalog are not present in the built OS image.

Cause

Image Build Manager excludes catalog keys containing driver_group from OS-image packages. Omnia installs these hardware-specific drivers after the node boots during provisioning.

Resolution
  1. Review the Image Build Manager log for the Skipping driver groups message and confirm that it lists the expected groups.
  2. Continue with node provisioning.
  3. After the node boots, verify that provisioning installed the required drivers. Investigate provisioning if they remain unavailable.

Repository input or package resolution fails

Symptom
  • repo_status.yml is missing or rejected.
  • A repository URL is unreachable.
  • A build reports No match for argument: <package-name>.
  • The Repository Manager certificate referenced by repo_status.yml does not exist.
Cause

Repository Manager did not publish a successful contract for the selected catalog, or the selected package is not available through one of the repository URLs in that contract.

Resolution
  1. Open the repo_status.yml identified by repo_manager_output_path and confirm that overall_status is success.
  2. Confirm that repositories contains a non-empty URL for at least one supported architecture and that each required URL is reachable from the build host.
  3. If repo_manager.certificates.server_crt is set, confirm that the referenced certificate exists.
  4. Correct or synchronize the package through Repository Manager, and then regenerate repo_status.yml.
  5. Rerun the Image Build Manager build phase:

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

S3 upload fails

Symptom

The build phase fails while uploading an image, or expected artifacts do not appear in the boot-images bucket.

Cause
  • The configured S3 endpoint is unavailable.
  • The generated image_build_credentials.yml does not contain valid S3 credentials.
  • The storage backend does not have sufficient capacity.
Resolution
  1. List the configured S3 buckets and image objects:

    Run on: OIM host
    s3cmd ls
    s3cmd ls -r s3://boot-images
    
  2. When s3_configurations.provider is minio, verify the local service:

    Run on: OIM host
    systemctl status minio.service
    

MinIO is not deployed when the provider is powerscale; verify the configured external endpoint_url instead.

  1. Correct the endpoint, credentials, service, or storage issue. Run the prepare tag when the local service or credentials must be refreshed:

    Run on: OIM host
    cd <OMNIA_SOURCE_PATH>/src/main
    ./omnia.sh --run image_build_manager --tags prepare
    
    Run on: OIM host
    source /opt/omnia/activate-omnia.sh
    cd <OMNIA_SOURCE_PATH>/src/image_build_manager/playbooks
    ansible-playbook image_build_manager.yml --tags prepare
    
  2. Rerun the build:

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

Kernel or image artifact is not found

Symptom

Orchestrator cannot find the kernel, initramfs, or root filesystem recorded for a functional group.

Cause
  • The Image Build Manager build did not complete successfully.
  • The S3 objects were removed or are not reachable.
  • The expected package or functional group was not resolved from the selected catalog or package_groups.yml.
Resolution
  1. Inspect the current build_status.yml. Each kernel, initrd, and image value is the exact endpoint-relative S3 object path produced by the selected image builder.
  2. Join the configured s3_configurations.endpoint_url and the recorded artifact path once, without adding another bucket name or s3:// prefix.
  3. Confirm that the recorded objects exist in boot-images:

    Run on: OIM host
    s3cmd ls -r s3://boot-images
    
  4. Correct the package, repository, or functional-group selection, and rerun the build through the top-level playbook:

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

aarch64 image build is skipped or fails

Symptom
  • The playbook reports that aarch64_inventory_host_ip is not set and skips the aarch64 build.
  • The configured aarch64 host is unreachable.
  • Passwordless SSH setup or the builder-image or regctl transfer fails.
Cause

The ARM build-host settings or credentials are missing, the host is not reachable, or neither the OIM nor the ARM host can obtain a required artifact.

Resolution
  1. In the staged image_build_config.yml, set aarch64_inventory_host_ip and aarch64_ssh_user. An empty IP disables aarch64 builds.
  2. Confirm that the host responds to ping, accepts SSH connections on port 22, and reports aarch64 from uname -m.
  3. Run prepare to collect aarch64_ssh_password in the generated image_build_credentials.yml:

    Run on: OIM host
    cd <OMNIA_SOURCE_PATH>/src/main
    ./omnia.sh --run image_build_manager --tags prepare
    
    Run on: OIM host
    source /opt/omnia/activate-omnia.sh
    cd <OMNIA_SOURCE_PATH>/src/image_build_manager/playbooks
    ansible-playbook image_build_manager.yml --tags prepare
    
  4. Confirm that the OIM Repository Manager is reachable from the ARM host or that the fallback upstream sources are reachable.

  5. Rerun the build. The build phase uses the collected password to configure SSH connectivity:

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

The playbook creates the admin_aarch64 inventory group dynamically from aarch64_inventory_host_ip. Do not create or pass a separate inventory file for the ARM host.

Local registry reports a TLS error

Symptom

regctl reports http: server gave HTTP response to HTTPS client.

Cause

The local OCI registry listens on HTTP port 5000, but the client attempted to use HTTPS.

Resolution

Configure regctl to use HTTP for the local registry:

Run on: OIM host
/usr/local/bin/regctl registry set --tls disabled \
  <SYSTEM_ADMIN_NIC_IPV4>:5000

A catalog dictionary entry is not reused

Symptom

A catalog-mode build rebuilds a functional group even though image_group_dictionary.json contains a matching package hash.

Cause
  • build_image.force_rebuild is true.
  • The repository configuration or image-build engine changed.
  • The dictionary entry does not match the functional group or architecture.
  • One or more recorded kernel, initramfs, or root filesystem objects are missing from S3.
  • The primary dictionary was invalid and no valid backup could be loaded.
Resolution
  1. Confirm that force_rebuild is false.
  2. Inspect $OMNIA_DATA_PATH/image_build_manager/output/<project>/image_group_dictionary.json and its .json.bak recovery copy.
  3. Verify all three S3 object paths recorded by the candidate entry.
  4. Allow the workflow to rebuild the group when an artifact or matching entry is unavailable. A successful catalog build records a new entry.

Catalog-specific build status is missing

Symptom

The latest project build_status.yml exists, but no status appears below <identifier>-v<version>.

Cause

The build used configuration mode, or the catalog identifier or version was unavailable when status output was written.

Resolution
  1. Confirm that functional_groups_source is catalog.
  2. Validate that the catalog contains nonempty identifier and version fields.
  3. Rerun the successful catalog build and inspect:

    $OMNIA_DATA_PATH/image_build_manager/output/<project>/<identifier>-v<version>/build_status.yml
    
Information Location
Main playbook log /var/log/omnia/image_build_manager/image_build_manager.log
Runtime and per-image logs $OMNIA_DATA_PATH/image_build_manager/log/<project>/
Input-validation log $OMNIA_DATA_PATH/image_build_manager/log/<project>/image_build_validation_<project>.log
Image Build Manager procedure Build OS Images
Catalog selection Select or update the catalog
Repository preparation Create Local Repositories