The latest versions of oc-mirror do not rebuild the Catalog in RHOCP 4

Solution Verified - Updated

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.15 and above

Issue

  • oc-mirror latest versions do not rebuild the Catalog post mirroring.
  • oc-mirror list operators --catalog shows all operator list against custom Catalog.

Resolution

Root Cause

Diagnostic Steps

  • Post mirroring with selected operators oc-mirror is listing all the operators instead of listing only mirrored operators.
$ oc-mirror list operators --catalog=<index-image>
SBR
Components
Category

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.