Bug 2065500
Summary: | [oc-mirror] Catalog merging error when two or more bundles does not have a set Replace field | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | OpenShift BugZilla Robot <openshift-bugzilla-robot> |
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.10.z | ||
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: | 2022-04-08 05:04:28 UTC | Type: | --- |
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: | 2060837 | ||
Bug Blocks: |
Description
OpenShift BugZilla Robot
2022-03-18 00:56:33 UTC
extract the oc-mirror from latest payload , 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-3-145-74-209.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-cvk5z 1/1 Running 0 5m12s 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-cvk5z 1/1 Running 0 121m 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.10.8 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:1162 |