Bug 1911226

Summary: oc adm catalog mirror does not work for target repo without subname
Product: OpenShift Container Platform Reporter: kuiwang
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: unspecified CC: bandrade, jiazha, scolange, tbuskey
Version: 4.7   
Target Milestone: ---   
Target Release: ---   
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-12-29 02:44:29 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 kuiwang 2020-12-28 09:14:43 UTC
Description of problem:
oc adm catalog mirror does not work for target repo without subname

--
[root@preserve-olm-env bin]# oc adm catalog mirror --manifests-only --to-manifests=./ quay.io/kuiwang/operators-dockerio:v1 registry.ocp-edge-cluster-0.qe.lab.redhat.com:5000
using database path mapping: /:/tmp/072428253
error: destination registry required
--

it works for previous release, like 4.6
--
[root@preserve-olm-env bin]# oc version
Client Version: 4.6.0-0.nightly-2020-12-21-163117

[root@preserve-olm-env bin]# oc adm catalog mirror --manifests-only --to-manifests=./ quay.io/kuiwang/operators-dockerio:v1 registry.ocp-edge-cluster-0.qe.lab.redhat.com:5000
using database path mapping: /:/tmp/081471900
wrote database to /tmp/081471900
using database at: /tmp/081471900/bundles.db
no digest mapping available for docker.io/atlasmap/atlasmap-operator:0.1.0, skip writing to ImageContentSourcePolicy
no digest mapping available for docker.io/strimzi/cluster-operator:0.11.1, skip writing to ImageContentSourcePolicy
no digest mapping available for docker.io/strimzi/operator:0.12.2, skip writing to ImageContentSourcePolicy
no digest mapping available for docker.io/strimzi/operator:0.13.0, skip writing to ImageContentSourcePolicy
no digest mapping available for docker.io/strimzi/operator:0.14.0, skip writing to ImageContentSourcePolicy
no digest mapping available for docker.io/strimzi/cluster-operator:0.11.0, skip writing to ImageContentSourcePolicy
no digest mapping available for docker.io/strimzi/operator:0.12.1, skip writing to ImageContentSourcePolicy
no digest mapping available for docker.io/atlasmap/atlasmap-operator:0.2.0, skip writing to ImageContentSourcePolicy
no digest mapping available for docker.io/tremolosecurity/myvd-k8s-operator:latest, skip writing to ImageContentSourcePolicy
wrote mirroring manifests to ./
--

Version-Release number of selected component (if applicable):
[root@preserve-olm-env bin]# oc version
Client Version: 4.7.0-0.nightly-2020-12-21-131655
Server Version: 4.7.0-0.nightly-2020-12-21-131655
Kubernetes Version: v1.20.0+87544c5


How reproducible:
always

Steps to Reproduce:


Actual results:
can not mirror for registry.ocp-edge-cluster-0.qe.lab.redhat.com:5000 registry

Expected results:
can mirror for registry.ocp-edge-cluster-0.qe.lab.redhat.com:5000


Additional info:

Comment 1 Jian Zhang 2020-12-29 02:44:29 UTC

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