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:
cd <OMNIA_SOURCE_PATH>/src/main
./omnia.sh --run image_build_manager --tags <tag>
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_sourcedoes not match the selected package source.CATALOG_FILE_PATHis unset or does not identify an existing JSON file.repo_manager_output_pathdoes not identify the successful Repository Manager output for the current project.
Resolution
-
Confirm the active project and Image Build Manager data path:
Run on: OIM hostprintf 'Project: %s\n' "${OMNIA_PROJECT_NAME:-project_default}" printf 'Image Build Manager path: %s\n' \ "${OMNIA_DATA_PATH}/image_build_manager" -
If initialization did not stage the inputs, run it from Main:
Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --init image_build_manager -
In the staged
image_build_config.yml, setfunctional_groups_sourcetocatalogorconfig:- For
catalog, follow Select or update the catalog and verifyCATALOG_FILE_PATH. - For
config, verifypackage_groups.ymlin the same runtime project input directory.
- For
-
Confirm that
repo_manager_output_pathidentifies the Repository Managerrepo_status.ymlfor the current project. -
Validate the corrected inputs:
Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run image_build_manager --tags validateRun on: OIM hostsource /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_64or_aarch64suffix. - In config mode,
package_groups.ymlhas no matching key underfunctional_groups. - All matching catalog layers begin with
baseos, so the catalog parser classifies them as base-image layers instead of functional-group images.
Resolution
- Check
functional_groups_sourcein the stagedimage_build_config.yml. - For catalog mode, verify the
catalog.functionallayer[].namevalues in the file selected byCATALOG_FILE_PATH. - For config mode, verify the keys under
functional_groupsin the stagedpackage_groups.yml. -
Run validation, and then rerun the build:
Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run image_build_manager --tags validate ./omnia.sh --run image_build_manager --tags buildRun on: OIM hostsource /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
- Determine whether the combined package list is acceptable for every target RHEL version.
- If separate package lists are required, provide a
baseos-prefixed functional layer for each version and ensure that it references the applicablebase_osgroup. - 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
- Review the Image Build Manager log for the
Skipping driver groupsmessage and confirm that it lists the expected groups. - Continue with node provisioning.
- 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.ymlis 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.ymldoes 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
- Open the
repo_status.ymlidentified byrepo_manager_output_pathand confirm thatoverall_statusissuccess. - Confirm that
repositoriescontains a non-empty URL for at least one supported architecture and that each required URL is reachable from the build host. - If
repo_manager.certificates.server_crtis set, confirm that the referenced certificate exists. - Correct or synchronize the package through
Repository Manager, and then
regenerate
repo_status.yml. -
Rerun the Image Build Manager build phase:
Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run image_build_manager --tags buildRun on: OIM hostsource /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.ymldoes not contain valid S3 credentials. - The storage backend does not have sufficient capacity.
Resolution
-
List the configured S3 buckets and image objects:
Run on: OIM hosts3cmd ls s3cmd ls -r s3://boot-images -
When
s3_configurations.providerisminio, verify the local service:Run on: OIM hostsystemctl status minio.service
MinIO is not deployed when the provider is powerscale; verify the
configured external endpoint_url instead.
-
Correct the endpoint, credentials, service, or storage issue. Run the
preparetag when the local service or credentials must be refreshed:Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run image_build_manager --tags prepareRun on: OIM hostsource /opt/omnia/activate-omnia.sh cd <OMNIA_SOURCE_PATH>/src/image_build_manager/playbooks ansible-playbook image_build_manager.yml --tags prepare -
Rerun the build:
Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run image_build_manager --tags buildRun on: OIM hostsource /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
- Inspect the current
build_status.yml. Eachkernel,initrd, andimagevalue is the exact endpoint-relative S3 object path produced by the selected image builder. - Join the configured
s3_configurations.endpoint_urland the recorded artifact path once, without adding another bucket name ors3://prefix. -
Confirm that the recorded objects exist in
boot-images:Run on: OIM hosts3cmd ls -r s3://boot-images -
Correct the package, repository, or functional-group selection, and rerun the build through the top-level playbook:
Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run image_build_manager --tags buildRun on: OIM hostsource /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_ipis not set and skips the aarch64 build. - The configured aarch64 host is unreachable.
- Passwordless SSH setup or the builder-image or
regctltransfer 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
- In the staged
image_build_config.yml, setaarch64_inventory_host_ipandaarch64_ssh_user. An empty IP disables aarch64 builds. - Confirm that the host responds to ping, accepts SSH connections on port
22, and reports
aarch64fromuname -m. -
Run
prepareto collectaarch64_ssh_passwordin the generatedimage_build_credentials.yml:Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run image_build_manager --tags prepareRun on: OIM hostsource /opt/omnia/activate-omnia.sh cd <OMNIA_SOURCE_PATH>/src/image_build_manager/playbooks ansible-playbook image_build_manager.yml --tags prepare -
Confirm that the OIM Repository Manager is reachable from the ARM host or that the fallback upstream sources are reachable.
-
Rerun the build. The build phase uses the collected password to configure SSH connectivity:
Run on: OIM hostcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run image_build_manager --tags buildRun on: OIM hostsource /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:
/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_rebuildistrue.- 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
- Confirm that
force_rebuildisfalse. - Inspect
$OMNIA_DATA_PATH/image_build_manager/output/<project>/image_group_dictionary.jsonand its.json.bakrecovery copy. - Verify all three S3 object paths recorded by the candidate entry.
- 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
- Confirm that
functional_groups_sourceiscatalog. - Validate that the catalog contains nonempty
identifierandversionfields. -
Rerun the successful catalog build and inspect:
$OMNIA_DATA_PATH/image_build_manager/output/<project>/<identifier>-v<version>/build_status.yml
Logs and related information¶
| 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 |