`oc adm catalog mirror` doesn't work for air-gapped clusters in Red Hat OpenShift Container Platform 4.x

Solution In Progress - Updated -

Issue

oc adm catalog mirror doesn't work for air-gapped clusters in Red Hat OpenShift Container Platform 4.x

oc adm catalog mirror doesn't work for air-gapped clusters. This fails on step:

$ oc adm catalog mirror \
    file://local/index/<repo>/<index_image>:<tag> \
    <mirror_registry>:<port>/<namespace> \
    [-a ${REG_CREDS}] \
    [--insecure]

With messages like:

Failed to mirror image to the remote registry from the local.
error: unable to retrieve source image file://local/index/olmqe/redhat-operator-index/openshift4/ose-logging-fluentd manifest sha256:11ccb42f3d96b065f7d94879611a7aefabbe509b522c11ac36be7a1c959a34d6: open v2/local/index/olmqe/redhat-operator-index/openshift4/ose-logging-fluentd/manifests/sha256:11ccb42f3d96b065f7d94879611a7aefabbe509b522c11ac36be7a1c959a34d6: no such file or directory

Environment

Red Hat OpenShift Container Platform 4.6
Red Hat OpenShift Container Platform 4.7
Red Hat OpenShift Container Platform 4.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content