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

Bug 1829945

Summary: support v1 CRDs in registry bundles and indexes
Product: OpenShift Container Platform Reporter: Daniel Sover <dsover>
Component: OLMAssignee: Daniel Sover <dsover>
OLM sub component: OLM QA Contact: Bruno Andrade <bandrade>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: jiazha, scolange
Version: 4.5   
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1850648 (view as bug list) Environment:
Last Closed: 2020-07-13 17:33:39 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: 1850648    

Comment 5 Bruno Andrade 2020-05-17 23:53:35 UTC
Worked as expected, Marking as verified

opmVersion=1.12.3
version.gitCommit=18b8ef3

Given https://github.com/operator-framework/operator-registry/tree/master/pkg/registry/testdata/validPackages

$ opm alpha bundle build -c stable,beta -e stable -p etcd -d manifests/ -t quay.io/bandrade/etcd-bundle:1.0 -b podman
INFO[0000] Building annotations.yaml                    
INFO[0000] An annotations.yaml already exists in directory 
INFO[0000] Validating existing annotations.yaml         
INFO[0000] Building Dockerfile                          
INFO[0000] A bundle.Dockerfile already exists in current working directory 
INFO[0000] Building bundle image                        
STEP 1: FROM scratch
STEP 2: LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
--> Using cache 820de2abe1cc57028bafb3400df12ff51db1031f32301191aeb640b2181f2717
STEP 3: LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
--> Using cache c717ed0d8a0ac10a02a492cd94a9ff70df4985aa7ea9197e71f0e92e1bed7bcd
STEP 4: LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
--> Using cache 8d99f5cf55d19cc9050d33e8c7a32ca46fe8a37a206dc5d5ded94802cf310110
STEP 5: LABEL operators.operatorframework.io.bundle.package.v1=etcd
--> Using cache f0e49e010aedf33ff7d0e59b66d75b25a2026518ad11341b0c5c489696ea8dd4
STEP 6: LABEL operators.operatorframework.io.bundle.channels.v1=stable,beta
--> Using cache 8b94151d3404497187d5bef2ee3113c72fab395475e6f85ed5e84a72e864b2b7
STEP 7: LABEL operators.operatorframework.io.bundle.channel.default.v1=stable
--> Using cache 86085c68af7cbe2b04cc65ebf87e5cbcd864210fe8cdbf845367682b41d5cbc3
STEP 8: COPY manifests /manifests/
8382f6191731167c0c84fc273e4bc1a174be5110a8482e59a69eb00e132b7357
STEP 9: COPY metadata /metadata/
STEP 10: COMMIT quay.io/bandrade/etcd-bundle:1.0



$ opm index add --bundles quay.io/bandrade/etcd-bundle:1.0  --tag quay.io/bandrade/etcd-bundle-index:1.0 
INFO[0000] building the index                            bundles="[quay.io/bandrade/etcd-bundle:1.0]"
INFO[0001] resolved name: quay.io/bandrade/etcd-bundle:1.0 
INFO[0001] fetched                                       digest="sha256:d031c95701c29639f498be8f29216285411e359ed20e721d51cd57be617c53d8"
INFO[0002] fetched                                       digest="sha256:2b82c1fa1494bd24d8d15f3dabe5db5deb2c52457e7fa5e3e1b46abcc9e62f0f"
INFO[0002] fetched                                       digest="sha256:74920d7477375387b86333e0b19180f1f315f8188eb70943366d36c7eddbb8af"
INFO[0002] fetched                                       digest="sha256:11546e8b09040cc11049498d00bea16426b72dba59992d3822645b790668fa5c"
INFO[0004] unpacking layer: {application/vnd.docker.image.rootfs.diff.tar.gzip sha256:11546e8b09040cc11049498d00bea16426b72dba59992d3822645b790668fa5c 8811 [] map[] <nil>} 
INFO[0004] unpacking layer: {application/vnd.docker.image.rootfs.diff.tar.gzip sha256:2b82c1fa1494bd24d8d15f3dabe5db5deb2c52457e7fa5e3e1b46abcc9e62f0f 400 [] map[] <nil>} 
INFO[0004] Could not find optional dependencies file     dir=bundle_tmp637445509 file=bundle_tmp637445509/metadata load=annotations
INFO[0004] found csv, loading bundle                     dir=bundle_tmp637445509 file=bundle_tmp637445509/manifests load=bundle
INFO[0004] loading bundle file                           dir=bundle_tmp637445509/manifests file=etcdbackups.etcd.database.coreos.com.crd.yaml load=bundle
INFO[0004] loading bundle file                           dir=bundle_tmp637445509/manifests file=etcdclusters.etcd.database.coreos.com.crd.yaml load=bundle
INFO[0004] loading bundle file                           dir=bundle_tmp637445509/manifests file=etcdconfigmap.yaml load=bundle
INFO[0004] loading bundle file                           dir=bundle_tmp637445509/manifests file=etcdoperator.v0.9.4.clusterserviceversion.yaml load=bundle
INFO[0004] loading bundle file                           dir=bundle_tmp637445509/manifests file=etcdrestores.etcd.database.coreos.com.crd.yaml load=bundle
INFO[0004] loading bundle file                           dir=bundle_tmp637445509/manifests file=etcdsecret.yaml load=bundle
INFO[0004] Generating dockerfile                         bundles="[quay.io/bandrade/etcd-bundle:1.0]"
INFO[0004] writing dockerfile: index.Dockerfile178990235  bundles="[quay.io/bandrade/etcd-bundle:1.0]"
INFO[0004] running podman build                          bundles="[quay.io/bandrade/etcd-bundle:1.0]"
INFO[0004] [podman build -f index.Dockerfile178990235 -t quay.io/bandrade/etcd-bundle-index:1.0 .]  bundles="[quay.io/bandrade/etcd-bundle:1.0]"

Subscription worked as expected.

Comment 6 errata-xmlrpc 2020-07-13 17:33:39 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, 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