Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1937522

Summary: [assisted operator] operator build fails due to incorrect entries in bundle.Docker file
Product: OpenShift Container Platform Reporter: bjacot
Component: assisted-installerAssignee: David Zager <dzager>
assisted-installer sub component: stand-alone QA Contact: Yuri Obshansky <yobshans>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: medium CC: alazar, aos-bugs, ccrum
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AI-Team-Platform
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-03 06:09:59 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 bjacot 2021-03-10 20:39:08 UTC
Filed bug for tracking.  IN assisted service repo operator bundle build has incorrect intries in the bundle.Docker file.

https://github.com/openshift/assisted-service/blob/master/docs/operator.md

Also filed an issue in repo:
https://github.com/openshift/assisted-service/issues/1280

Post bundle build the bundle.Docker file is ref wrong file locations.

output from the bundle build command

INFO[0000] Writing bundle.Dockerfile in /home/kni/assisted-installer-home-dir/assisted-service 
mv /home/kni/assisted-installer-home-dir/assisted-service/build/assisted-installer/bundle/temp1/* /home/kni/assisted-installer-home-dir/assisted-service/build/assisted-installer/bundle
mv /home/kni/assisted-installer-home-dir/assisted-service/build/assisted-installer/bundle/temp2/metadata /home/kni/assisted-installer-home-dir/assisted-service/build/assisted-installer/bundle
rm -rf /home/kni/assisted-installer-home-dir/assisted-service/build/assisted-installer/bundle/temp1
rm -rf /home/kni/assisted-installer-home-dir/assisted-service/build/assisted-installer/bundle/temp2```


`FROM scratch

LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=assisted-service-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.4.2
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
COPY build/assisted-installer/bundle/temp2/manifests /manifests/
COPY build/assisted-installer/bundle/temp2/metadata /metadata/

Workaround:
Remove the temp2 from the bundle.Docker file.

Comment 1 David Zager 2021-04-20 12:44:43 UTC
`make operator-bundle` is provided in the repo to prep for building the bundle.Dockerfile
`make operator-bundle-build` is provided in the repo to build a bundle using Dockerfile.bundle

I don't believe that this remains an issue.

Comment 4 errata-xmlrpc 2021-08-03 06:09:59 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.8.3 bug fix 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/RHBA-2021:2896