Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1838444

Summary: oc adm catalog mirror does not mirror the index image itself
Product: OpenShift Container Platform Reporter: Jian Zhang <jiazha>
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED DEFERRED Docs Contact:
Severity: medium    
Priority: medium    
Version: 4.5   
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-21 13:07:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1832968    
Bug Blocks:    

Description Jian Zhang 2020-05-21 07:46:43 UTC
-----------------This bug is a clone of bug 1832968----------------

Description of problem:

When mirroring an index image using oc adm catalog mirror, the index image itself does not get mirrored.
During the release process of bundle images, staging and dev index images are used in QE testing. The images are behind vpn and cannot be accessed on OCP clusters used by QE so these need to be mirrored as well.

Version-Release number of selected component (if applicable):

oc 4.4+

How reproducible:

always


Steps to Reproduce:
oc adm catalog mirror registry.stage.redhat.io/redhat/redhat-operator-index@sha256:fba04293ef3a555b7d689eb59e81f61599680c51183abe4c5e914809b01457b7 https://localhost:5000/

Actual results:

registry.stage.redhat.io/redhat/redhat-operator-index@sha256:fba04293ef3a555b7d689eb59e81f61599680c51183abe4c5e914809b01457b7 is not present in the ICSP or the mapping.txt

Expected results:
registry.stage.redhat.io/redhat/redhat-operator-index@sha256:fba04293ef3a555b7d689eb59e81f61599680c51183abe4c5e914809b01457b7 is present in the ICSP and the mapping.txt

Additional info:

The work around is to mirror the index image separately using oc image mirror and adding it to the ICSP manually.