Bug 2060837
Summary: | [oc-mirror] Catalog merging error when two or more bundles does not have a set Replace field | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Alberto Losada <alosadag> |
Component: | oc | Assignee: | Alex <aflom> |
oc sub component: | oc-mirror | QA Contact: | zhou ying <yinzhou> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | aos-bugs, jpower, mfojtik, vdinh |
Version: | 4.10 | ||
Target Milestone: | --- | ||
Target Release: | 4.11.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-08-10 10:52:11 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: | |||
Bug Blocks: | 2065500 |
Description
Alberto Losada
2022-03-04 10:59:36 UTC
More information can be found in this slack thread: https://coreos.slack.com/archives/C02JW6VCYS1/p1646332535137299 Thank you for bringing this to our attention @alosadag . We have identified a possible solution and will work to release it as soon as possible. More information to follow. checked with latest oc-mirror , can't reproduce the issue now : 1. Create 2 registry server ; 2. Copy the older catalog to the connected registry: `skopeo copy docker://registry.redhat.io/redhat/redhat-operator-index:v4.9-1646041330 docker://localhost:5000/fake/redhat-operator-index:v4.9` 3. Run oc-mirror with below config: apiVersion: mirror.openshift.io/v1alpha2 kind: ImageSetConfiguration storageConfig: local: path: metadata mirror: operators: - catalog: localhost:5000/fake/redhat-operator-index:v4.9 headsOnly: false # References latest version of each operator in catalog (true is the default value and can be omitted) packages: - name: sriov-network-operator channels: - name: '4.9' - name: cluster-logging channels: - name: 'stable' `oc-mirror --config imageset.yaml docker://ec2-52-15-159-170.us-east-2.compute.amazonaws.com:5000/zhouy --source-use-http` 4. Create the CatalogSource and ICSP; 5. Check the redhat-operator pod: [root@localhost results-1648107735]# oc get pods NAME READY STATUS RESTARTS AGE ... redhat-operator-index-q9slv 1/1 Running 0 4m19s 6. Copy the newer catalog to the same image name to the connected registry `skopeo copy docker://registry.redhat.io/redhat/redhat-operator-index:v4.9 docker://localhost:5000/fake/redhat-operator-index:v4.9` 7. Run oc-mirror again with the same config 8. Check the pod still running well: [root@localhost results-1648107735]# oc get pods NAME READY STATUS RESTARTS AGE ... redhat-operator-index-q9slv 1/1 Running 0 3h31m Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069 |