Bug 1816832

Summary: No '/build/bin/opm' found in quay.io/operator-framework/upstream-registry-builder image
Product: OpenShift Container Platform Reporter: Nick Hale <nhale>
Component: OLMAssignee: Nick Hale <nhale>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: bandrade, jiazha, nhale, yhui
Version: 4.4   
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Dockerfiles generated by opm to build index image attempted to copy the opm binary from the wrong location in the builder image. Consequence: `opm index add` would fail with an error indicating that it cannot find the opm binary. Fix: Correct the directory generated Dockerfiles copy the opm binary from. Result: The opm binary is successfully copied from the builder image during `opm index add`.
Story Points: ---
Clone Of: 1816535 Environment:
Last Closed: 2020-08-04 18:07:02 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: 1816535    

Comment 9 Jian Zhang 2020-03-26 05:27:58 UTC
Hi, Nick

Thanks! It works well, verify it.

mac:operator-registry jianzhang$ ./opm index add -c docker -b quay.io/jiazha/learn-operator-bundle:v0.0.3 -t quay.io/jiazha/learn-operator-index:v0.0.3
INFO[0000] building the index                            bundles="[quay.io/jiazha/learn-operator-bundle:v0.0.3]"
INFO[0000] running docker pull                           img="quay.io/jiazha/learn-operator-bundle:v0.0.3"
INFO[0006] running docker save                           img="quay.io/jiazha/learn-operator-bundle:v0.0.3"
INFO[0006] loading Bundle quay.io/jiazha/learn-operator-bundle:v0.0.3  img="quay.io/jiazha/learn-operator-bundle:v0.0.3"
INFO[0006] found annotations file searching for csv      dir=bundle_tmp858859360 file=bundle_tmp858859360/metadata load=annotations
INFO[0006] found csv, loading bundle                     dir=bundle_tmp858859360 file=bundle_tmp858859360/manifests load=bundle
INFO[0006] loading bundle file                           dir=bundle_tmp858859360/manifests file=learn-operator.v0.0.3.clusterserviceversion.yaml load=bundle
INFO[0006] loading bundle file                           dir=bundle_tmp858859360/manifests file=learn.crd.yaml load=bundle
INFO[0006] Generating dockerfile                         bundles="[quay.io/jiazha/learn-operator-bundle:v0.0.3]"
INFO[0006] writing dockerfile: index.Dockerfile299733394  bundles="[quay.io/jiazha/learn-operator-bundle:v0.0.3]"
INFO[0006] running docker build                          bundles="[quay.io/jiazha/learn-operator-bundle:v0.0.3]"
INFO[0006] [docker build -f index.Dockerfile299733394 -t quay.io/jiazha/learn-operator-index:v0.0.3 .]  bundles="[quay.io/jiazha/learn-operator-bundle:v0.0.3]"

Comment 11 errata-xmlrpc 2020-08-04 18:07:02 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 (OpenShift Container Platform 4.5 image release advisory), 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/RHBA-2020:2409