Bug 1828816

Summary: oc adm catalog mirror not working with index image
Product: OpenShift Container Platform Reporter: Shawn Hurley <shurley>
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: medium CC: aos-bugs, jokerman, maszulik, mfojtik, yhui
Version: 4.5Keywords: TestBlocker
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-25 18:06:36 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:

Description Shawn Hurley 2020-04-28 12:11:33 UTC
Description of problem:
Mirror a catalog image built from opm does not mirror any info
Version-Release number of selected component (if applicable):
Client Version: 4.5.0-0.nightly-2020-04-28-084038

How reproducible:
100%

Steps to Reproduce:
1. Create catalog with registry-proxy.engineering.redhat.com/rh-osbs/openshift-ose-operator-registry@sha256:08537a923080ad0011f9a17abc749bbedab3004fd223b799bff5745e768d5654 as the base image. 
2. oc adm catalog mirror quay.io/shawn_hurley/opm-catalog-test:stage-index-testing testing:5000 --dry-run --to-manifests .
3.

Actual results:
wrote database to /tmp/706822416/bundles.db
errors during mirroring. the full contents of the catalog may not have been mirrored: open /tmp/706822416/bundles.db: no such file or directory
wrote mirroring manifests to .

Mirrroing manifests
mapping.txt is empty

imageContentSourcePolicy.yaml:
apiVersion: operator.openshift.io/v1alpha1
kind: ImageContentSourcePolicy
metadata:
  name: opm-catalog-test
spec:
  repositoryDigestMirrors: []

Expected results:
mapping.txt would at least give me a single bundle image to mirror
imageContentSourcePolicy should try and map the bundle to localhost:5000



Additional info:

Comment 1 Evan Cordell 2020-05-25 18:06:36 UTC

*** This bug has been marked as a duplicate of bug 1829832 ***