Bug 2002075

Summary: opm render does not automatically pulling in the image(s) used in the deployments
Product: OpenShift Container Platform Reporter: Joe Lanford <jlanford>
Component: OLMAssignee: Joe Lanford <jlanford>
OLM sub component: OLM QA Contact: xzha
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: krizza, kuiwang, tflannag, xzha
Version: 4.9Keywords: Triaged
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Bundle images rendered to the file-based catalog format did not contain related images for the images used by their operator deployment Consequence: Images used in the operator deployment were not mirrored to disconnected clusters unless they were explicitly listed in the CSV relatedImages field. Fix: The `opm render` command now explicitly adds the CSVs operator images to the set of relatedImages when rendering the bundle image to the FBC format. Result: Images used in the operator deployment are now mirrored to disconnected clusters even if they are not explictly listed in the CSV relatedImages field.
Story Points: ---
Clone Of: 2000379 Environment:
Last Closed: 2022-03-10 16:08:18 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:    
Bug Blocks: 2000379    

Comment 9 xzha 2021-12-03 02:12:20 UTC
verify:
[root@preserve-olm-agent-test JIRA-2196]# opm version
Version: version.Version{OpmVersion:"dc5f6de60", GitCommit:"dc5f6de60a1a11f2f0988dc0bd061aadedc9edb1", BuildDate:"2021-12-03T01:51:28Z", GoOs:"linux", GoArch:"amd64"}

[root@preserve-olm-agent-test JIRA-2196]# opm render quay.io/olmqe/mta-operator:v0.0.4-2199 -o yaml 
---
image: quay.io/olmqe/mta-operator:v0.0.4-2199
name: windup-operator.0.0.4
package: mta-operator
properties:
- type: olm.gvk
  value:
    group: windup.jboss.org
    kind: Windup
    version: v1
- type: olm.package
  value:
    packageName: mta-operator
    version: 0.0.4
......
relatedImages:
- image: quay.io/olmqe/mta-operator:v0.0.4-2199
  name: ""
- image: quay.io/windupeng/windup-operator-native:0.0.4
  name: ""
schema: olm.bundle

The output has relatedImages section.

LGTM, verified

Comment 12 errata-xmlrpc 2022-03-10 16:08:18 UTC
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 (Moderate: OpenShift Container Platform 4.10.3 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:0056