oc-mirror is failing to render catalog image when pushing to registry from file in fully disconnected OpenShift environment.
Environment
- Red Hat OpenShift Container Platform 4
- Disconnected Environment
Issue
- While mirroring the operator catalog to the registry, the oc-mirror fails to render the catalog image when the 'archiveSize' is set in the ImageSetConfiguration.
Resolution
- Red Hat is aware of this issue and it is currently tracked in This content is not included.Bug
- Please open a ticket for more information on this.
- This issue has been fixed and the patch is included by default in RHOCP 4.16.0 Errata and was backported in the RHOCP 4.15.0 Errata
Root Cause
- This is happening due to a bug in oc-mirror.
Diagnostic Steps
- Check the error logs while running the command 'oc-mirror --from
docker:// :8443 --dest-skip-tls'
oc-mirror fails to render image after pushing to registry from file. The following error message is displayed:
info: Mirroring completed in 9.9s (52.78MB/s)
Wrote release signatures to oc-mirror-workspace/results-1690136811
Rendering catalog image "<local registry>8443/redhat/redhat-operator-index:v4.11" with file-based catalog
error: error rebuilding catalog images from file-based catalogs: error creating OCI layout: stat oc-mirror-workspace/images.2556478487/catalogs/registry.redhat.io/redhat/redhat-operator-index/v4.11/layout/index.json: no such file or directory
SBR
Product(s)
Components
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.