Bug 1951387 - opm index add doesn't respect deprecated bundles
Summary: opm index add doesn't respect deprecated bundles
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.8.0
Assignee: Kevin Rizza
QA Contact: kuiwang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-20 03:39 UTC by Ben Parees
Modified: 2021-07-27 23:02 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 23:01:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift operator-framework-olm pull 67 0 None open Bug 1951387: Add add after deprecation 2021-05-11 19:22:33 UTC
Github operator-framework operator-registry pull 642 0 None open Bug 1951387: (bug) add after deprecation 2021-04-21 12:21:18 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:02:07 UTC

Description Ben Parees 2021-04-20 03:39:15 UTC
Description of problem:
Trying to add a new bundle to an index that contains a bundle marked deprecated fails, the command complains that the deprecated bundle references(replaces) a bundle that could not be found.

v1.4.0 is being added. (it replaces 1.3.1 which replaces 1.2.3)
v1.2.3 is marked deprecated in the index, and claims to replace 1.2.2.
v1.2.2 was removed as a result of the deprecation (so 1.2.2 does not exist in the index)



Version-Release number of selected component (if applicable):
EXD pipeline, so presumably latest upstream opm binary

How reproducible:
always

Steps to Reproduce:
run this command to attempt to add v1.4.0:

opm index add --generate --bundles registry-proxy.engineering.redhat.com/rh-osbs/openshift-pipelines-pipelines-operator-bundle-container@sha256:6b7ca9c00b1a0143ae3b91b92bdb146035faddf326b212006d01db7aef63b188 --from-index registry-proxy.engineering.redhat.com/rh-osbs/iib-pub:v4.7



Actual results:
ERRO[0106] permissive mode disabled                      bundles="[registry-proxy.engineering.redhat.com/rh-osbs/openshift-pipelines-pipelines-operator-bundle-container@sha256:6b7ca9c00b1a0143ae3b91b92bdb146035faddf326b212006d01db7aef63b188]" error="Invalid bundle redhat-openshift-pipelines-operator.v1.2.3, replaces nonexistent bundle redhat-openshift-pipelines-operator.v1.2.2"
Error: Invalid bundle redhat-openshift-pipelines-operator.v1.2.3, replaces nonexistent bundle redhat-openshift-pipelines-operator.v1.2.2


Expected results:
Bundle is added successfully


Additional info:
Also fails w/ --overwrite-latest, we need to ensure --overwrite-latest doesn't have any additional assumptions/requirements about resolving replaces references from deprecated bundles.

Comment 2 Daniel Sover 2021-04-21 14:49:45 UTC
*** Bug 1952101 has been marked as a duplicate of this bug. ***

Comment 7 kuiwang 2021-05-18 05:46:16 UTC
LGTM

--
[root@preserve-olm-env operator-framework-olm]# ./bin/opm version
Version: version.Version{OpmVersion:"030b4af", GitCommit:"030b4afe50791784360f2097bfb65623aff3d7a5", BuildDate:"2021-05-18T05:38:36Z", GoOs:"linux", GoArch:"amd64"}
[root@preserve-olm-env operator-framework-olm]# 


[root@preserve-olm-env operator-framework-olm]# rm -fr bundle.Dockerfile
[root@preserve-olm-env operator-framework-olm]# ./bin/opm alpha bundle build -d manifests/teiid-1951387/0.1.1 -t quay.io/kuiwang/teiid-operator:v0.1.1-1951387 -c beta -p teiid -e beta
INFO[0000] Building annotations.yaml                    
INFO[0000] Writing annotations.yaml in /data/kuiwang/operator-framework-olm/manifests/teiid-1951387/metadata 
INFO[0000] Building Dockerfile                          
INFO[0000] Writing bundle.Dockerfile in /data/kuiwang/operator-framework-olm 
INFO[0000] Building bundle image                        
Sending build context to Docker daemon  561.9MB
Step 1/9 : FROM scratch
 ---> 
Step 2/9 : LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
 ---> Using cache
 ---> c1a562f7f13d
Step 3/9 : LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
 ---> Using cache
 ---> 9a58b515a371
Step 4/9 : LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
 ---> Using cache
 ---> b41e9e7e857c
Step 5/9 : LABEL operators.operatorframework.io.bundle.package.v1=teiid
 ---> Running in 6301e34dde83
Removing intermediate container 6301e34dde83
 ---> b557f5102107
Step 6/9 : LABEL operators.operatorframework.io.bundle.channels.v1=beta
 ---> Running in 00c1ac5d59b3
Removing intermediate container 00c1ac5d59b3
 ---> f89865cc04d5
Step 7/9 : LABEL operators.operatorframework.io.bundle.channel.default.v1=beta
 ---> Running in cd45b5c96686
Removing intermediate container cd45b5c96686
 ---> bde8fce1cde5
Step 8/9 : COPY manifests/teiid-1951387/0.1.1 /manifests/
 ---> 7227288f6850
Step 9/9 : COPY manifests/teiid-1951387/metadata /metadata/
 ---> 1322905dd482
Successfully built 1322905dd482
Successfully tagged quay.io/kuiwang/teiid-operator:v0.1.1-1951387
[root@preserve-olm-env operator-framework-olm]# docker push quay.io/kuiwang/teiid-operator:v0.1.1-1951387
The push refers to repository [quay.io/kuiwang/teiid-operator]
1fa999f6c896: Pushed 
5fd4f51458b4: Pushed 
v0.1.1-1951387: digest: sha256:0dd931e603c945838cdb595eb683e7163ed7cb51d4ef20a203c5d2717f04d045 size: 733
[root@preserve-olm-env operator-framework-olm]# rm -fr manifests/teiid-1951387/metadata/ bundle.Dockerfile
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# ./bin/opm alpha bundle build -d manifests/teiid-1951387/0.2.0 -t quay.io/kuiwang/teiid-operator:v0.2.0-1951387 -c beta -p teiid -e beta
INFO[0000] Building annotations.yaml                    
INFO[0000] Writing annotations.yaml in /data/kuiwang/operator-framework-olm/manifests/teiid-1951387/metadata 
INFO[0000] Building Dockerfile                          
INFO[0000] Writing bundle.Dockerfile in /data/kuiwang/operator-framework-olm 
INFO[0000] Building bundle image                        
Sending build context to Docker daemon  561.9MB
Step 1/9 : FROM scratch
 ---> 
Step 2/9 : LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
 ---> Using cache
 ---> c1a562f7f13d
Step 3/9 : LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
 ---> Using cache
 ---> 9a58b515a371
Step 4/9 : LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
 ---> Using cache
 ---> b41e9e7e857c
Step 5/9 : LABEL operators.operatorframework.io.bundle.package.v1=teiid
 ---> Using cache
 ---> b557f5102107
Step 6/9 : LABEL operators.operatorframework.io.bundle.channels.v1=beta
 ---> Using cache
 ---> f89865cc04d5
Step 7/9 : LABEL operators.operatorframework.io.bundle.channel.default.v1=beta
 ---> Using cache
 ---> bde8fce1cde5
Step 8/9 : COPY manifests/teiid-1951387/0.2.0 /manifests/
 ---> 12018ed97025
Step 9/9 : COPY manifests/teiid-1951387/metadata /metadata/
 ---> ff7c1f3bd266
Successfully built ff7c1f3bd266
Successfully tagged quay.io/kuiwang/teiid-operator:v0.2.0-1951387
[root@preserve-olm-env operator-framework-olm]# docker push quay.io/kuiwang/teiid-operator:v0.2.0-1951387
The push refers to repository [quay.io/kuiwang/teiid-operator]
073837a36fe8: Pushed 
f3d4aabc2f72: Pushed 
v0.2.0-1951387: digest: sha256:63b2e86fafe181b6d67f65e7e2323028f143a6a9371b86737031f92b0244e28a size: 733
[root@preserve-olm-env operator-framework-olm]# rm -fr manifests/teiid-1951387/metadata/ bundle.Dockerfile
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# ./bin/opm alpha bundle build -d manifests/teiid-1951387/0.3.0 -t quay.io/kuiwang/teiid-operator:v0.3.0-1951387 -c beta -p teiid -e beta
INFO[0000] Building annotations.yaml                    
INFO[0000] Writing annotations.yaml in /data/kuiwang/operator-framework-olm/manifests/teiid-1951387/metadata 
INFO[0000] Building Dockerfile                          
INFO[0000] Writing bundle.Dockerfile in /data/kuiwang/operator-framework-olm 
INFO[0000] Building bundle image                        
Sending build context to Docker daemon  561.9MB
Step 1/9 : FROM scratch
 ---> 
Step 2/9 : LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
 ---> Using cache
 ---> c1a562f7f13d
Step 3/9 : LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
 ---> Using cache
 ---> 9a58b515a371
Step 4/9 : LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
 ---> Using cache
 ---> b41e9e7e857c
Step 5/9 : LABEL operators.operatorframework.io.bundle.package.v1=teiid
 ---> Using cache
 ---> b557f5102107
Step 6/9 : LABEL operators.operatorframework.io.bundle.channels.v1=beta
 ---> Using cache
 ---> f89865cc04d5
Step 7/9 : LABEL operators.operatorframework.io.bundle.channel.default.v1=beta
 ---> Using cache
 ---> bde8fce1cde5
Step 8/9 : COPY manifests/teiid-1951387/0.3.0 /manifests/
 ---> 14403d4f45ab
Step 9/9 : COPY manifests/teiid-1951387/metadata /metadata/
 ---> f793c610f574
Successfully built f793c610f574
Successfully tagged quay.io/kuiwang/teiid-operator:v0.3.0-1951387
[root@preserve-olm-env operator-framework-olm]# docker push quay.io/kuiwang/teiid-operator:v0.3.0-1951387
The push refers to repository [quay.io/kuiwang/teiid-operator]
753c5b63a79d: Pushed 
250c31303559: Pushed 
v0.3.0-1951387: digest: sha256:51c6ba9d4156d23779624b96974772ef555e6501d6fcaed15cdbb40db21855fc size: 733
[root@preserve-olm-env operator-framework-olm]# rm -fr manifests/teiid-1951387/metadata/ bundle.Dockerfile
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# ./bin/opm alpha bundle build -d manifests/teiid-1951387/0.4.0 -t quay.io/kuiwang/teiid-operator:v0.4.0-1951387 -c beta -p teiid -e beta
INFO[0000] Building annotations.yaml                    
INFO[0000] Writing annotations.yaml in /data/kuiwang/operator-framework-olm/manifests/teiid-1951387/metadata 
INFO[0000] Building Dockerfile                          
INFO[0000] Writing bundle.Dockerfile in /data/kuiwang/operator-framework-olm 
INFO[0000] Building bundle image                        
Sending build context to Docker daemon  561.9MB
Step 1/9 : FROM scratch
 ---> 
Step 2/9 : LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
 ---> Using cache
 ---> c1a562f7f13d
Step 3/9 : LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
 ---> Using cache
 ---> 9a58b515a371
Step 4/9 : LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
 ---> Using cache
 ---> b41e9e7e857c
Step 5/9 : LABEL operators.operatorframework.io.bundle.package.v1=teiid
 ---> Using cache
 ---> b557f5102107
Step 6/9 : LABEL operators.operatorframework.io.bundle.channels.v1=beta
 ---> Using cache
 ---> f89865cc04d5
Step 7/9 : LABEL operators.operatorframework.io.bundle.channel.default.v1=beta
 ---> Using cache
 ---> bde8fce1cde5
Step 8/9 : COPY manifests/teiid-1951387/0.4.0 /manifests/
 ---> 22e332d81b5b
Step 9/9 : COPY manifests/teiid-1951387/metadata /metadata/
 ---> 495322020c93
Successfully built 495322020c93
Successfully tagged quay.io/kuiwang/teiid-operator:v0.4.0-1951387
[root@preserve-olm-env operator-framework-olm]# docker push quay.io/kuiwang/teiid-operator:v0.4.0-1951387
The push refers to repository [quay.io/kuiwang/teiid-operator]
1aceba18eb01: Pushed 
196e94da76fb: Pushed 
v0.4.0-1951387: digest: sha256:83b3be5cb5579feeba1648ad3cbb83c6a82d616f1a3cc3c121f8eb607b6e947f size: 733
[root@preserve-olm-env operator-framework-olm]# rm -fr manifests/teiid-1951387/metadata/ bundle.Dockerfile
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# ./bin/opm index add -b quay.io/kuiwang/teiid-operator:v0.1.1-1951387 -t quay.io/kuiwang/teiid-index:v1-1951387 -c docker
INFO[0000] building the index                            bundles="[quay.io/kuiwang/teiid-operator:v0.1.1-1951387]"
INFO[0000] running /usr/bin/docker pull quay.io/kuiwang/teiid-operator:v0.1.1-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.1.1-1951387]"
INFO[0000] running docker create                         bundles="[quay.io/kuiwang/teiid-operator:v0.1.1-1951387]"
INFO[0000] running docker cp                             bundles="[quay.io/kuiwang/teiid-operator:v0.1.1-1951387]"
INFO[0000] running docker rm                             bundles="[quay.io/kuiwang/teiid-operator:v0.1.1-1951387]"
INFO[0000] Could not find optional dependencies file     dir=bundle_tmp767631005 file=bundle_tmp767631005/metadata load=annotations
INFO[0000] found csv, loading bundle                     dir=bundle_tmp767631005 file=bundle_tmp767631005/manifests load=bundle
INFO[0000] loading bundle file                           dir=bundle_tmp767631005/manifests file=teiid.0.1.1.clusterserviceversion.yaml load=bundle
INFO[0001] loading bundle file                           dir=bundle_tmp767631005/manifests file=virtualdatabase.crd.yaml load=bundle
INFO[0001] Generating dockerfile                         bundles="[quay.io/kuiwang/teiid-operator:v0.1.1-1951387]"
INFO[0001] writing dockerfile: index.Dockerfile172553715  bundles="[quay.io/kuiwang/teiid-operator:v0.1.1-1951387]"
INFO[0001] running docker build                          bundles="[quay.io/kuiwang/teiid-operator:v0.1.1-1951387]"
INFO[0001] [docker build -f index.Dockerfile172553715 -t quay.io/kuiwang/teiid-index:v1-1951387 .]  bundles="[quay.io/kuiwang/teiid-operator:v0.1.1-1951387]"
[root@preserve-olm-env operator-framework-olm]# docker push quay.io/kuiwang/teiid-index:v1-1951387
The push refers to repository [quay.io/kuiwang/teiid-index]
3da35a1532e9: Pushed 
eb1d8096a7b5: Mounted from kuiwang/certified-operator-index 
62936623c33e: Mounted from kuiwang/certified-operator-index 
479bfeeb0448: Layer already exists 
71b397855bc4: Layer already exists 
b2d5eeeaba3a: Layer already exists 
v1-1951387: digest: sha256:8f1832978a15726bae6c5f028d5523da775b0363f52744786855d630fbd8e457 size: 1578
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# ./bin/opm index add -b quay.io/kuiwang/teiid-operator:v0.2.0-1951387 -f quay.io/kuiwang/teiid-index:v1-1951387 -t quay.io/kuiwang/teiid-index:v2-1951387 -c docker
INFO[0000] building the index                            bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0000] Pulling previous image quay.io/kuiwang/teiid-index:v1-1951387 to get metadata  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0000] running /usr/bin/docker pull quay.io/kuiwang/teiid-index:v1-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0000] running /usr/bin/docker pull quay.io/kuiwang/teiid-index:v1-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] Getting label data from previous image        bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] running docker inspect                        bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] running docker create                         bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] running docker cp                             bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0002] running docker rm                             bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0002] running /usr/bin/docker pull quay.io/kuiwang/teiid-operator:v0.2.0-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0002] running docker create                         bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0003] running docker cp                             bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0003] running docker rm                             bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0003] Could not find optional dependencies file     dir=bundle_tmp025861596 file=bundle_tmp025861596/metadata load=annotations
INFO[0003] found csv, loading bundle                     dir=bundle_tmp025861596 file=bundle_tmp025861596/manifests load=bundle
INFO[0003] loading bundle file                           dir=bundle_tmp025861596/manifests file=teiid.io_virtualdatabases_crd.yaml load=bundle
INFO[0003] loading bundle file                           dir=bundle_tmp025861596/manifests file=teiid.v0.2.0.clusterserviceversion.yaml load=bundle
INFO[0003] Generating dockerfile                         bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0003] writing dockerfile: index.Dockerfile102149018  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0003] running docker build                          bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0003] [docker build -f index.Dockerfile102149018 -t quay.io/kuiwang/teiid-index:v2-1951387 .]  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
[root@preserve-olm-env operator-framework-olm]# docker push quay.io/kuiwang/teiid-index:v2-1951387
The push refers to repository [quay.io/kuiwang/teiid-index]
11aaaaea990a: Pushed 
eb1d8096a7b5: Layer already exists 
62936623c33e: Layer already exists 
479bfeeb0448: Layer already exists 
71b397855bc4: Layer already exists 
b2d5eeeaba3a: Layer already exists 
v2-1951387: digest: sha256:54804029ce27f414b4c9c3dccb04a4ea8d1b37239db7689db632c685cbab8819 size: 1578
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# ./bin/opm index add -b quay.io/kuiwang/teiid-operator:v0.3.0-1951387 -f quay.io/kuiwang/teiid-index:v2-1951387 -t quay.io/kuiwang/teiid-index:v3-1951387 -c docker
INFO[0000] building the index                            bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0000] Pulling previous image quay.io/kuiwang/teiid-index:v2-1951387 to get metadata  bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0000] running /usr/bin/docker pull quay.io/kuiwang/teiid-index:v2-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0000] running /usr/bin/docker pull quay.io/kuiwang/teiid-index:v2-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0001] Getting label data from previous image        bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0001] running docker inspect                        bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0001] running docker create                         bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0001] running docker cp                             bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0001] running docker rm                             bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0001] running /usr/bin/docker pull quay.io/kuiwang/teiid-operator:v0.3.0-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0002] running docker create                         bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0002] running docker cp                             bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0002] running docker rm                             bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0002] Could not find optional dependencies file     dir=bundle_tmp232858133 file=bundle_tmp232858133/metadata load=annotations
INFO[0002] found csv, loading bundle                     dir=bundle_tmp232858133 file=bundle_tmp232858133/manifests load=bundle
INFO[0002] loading bundle file                           dir=bundle_tmp232858133/manifests file=teiid.io_virtualdatabases_crd.yaml load=bundle
INFO[0002] loading bundle file                           dir=bundle_tmp232858133/manifests file=teiid.v0.3.0.clusterserviceversion.yaml load=bundle
INFO[0002] Generating dockerfile                         bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0002] writing dockerfile: index.Dockerfile361960107  bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0002] running docker build                          bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
INFO[0002] [docker build -f index.Dockerfile361960107 -t quay.io/kuiwang/teiid-index:v3-1951387 .]  bundles="[quay.io/kuiwang/teiid-operator:v0.3.0-1951387]"
[root@preserve-olm-env operator-framework-olm]# docker push quay.io/kuiwang/teiid-index:v3-1951387
The push refers to repository [quay.io/kuiwang/teiid-index]
62d11125f228: Pushed 
eb1d8096a7b5: Layer already exists 
62936623c33e: Layer already exists 
479bfeeb0448: Layer already exists 
71b397855bc4: Layer already exists 
b2d5eeeaba3a: Layer already exists 
v3-1951387: digest: sha256:6c526438a691f235f8ec56107bf302a261f88f52ef4e74157d3c97c5ac3cd293 size: 1579
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# ./bin/opm index deprecatetruncate -b quay.io/kuiwang/teiid-operator:v0.2.0-1951387 -f quay.io/kuiwang/teiid-index:v3-1951387 -t quay.io/kuiwang/teiid-index:v4-1951387 -c docker
INFO[0000] deprecating bundles from the index            bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0000] Pulling previous image quay.io/kuiwang/teiid-index:v3-1951387 to get metadata  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0000] running /usr/bin/docker pull quay.io/kuiwang/teiid-index:v3-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0000] running /usr/bin/docker pull quay.io/kuiwang/teiid-index:v3-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] Getting label data from previous image        bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] running docker inspect                        bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] running docker create                         bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] running docker cp                             bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] running docker rm                             bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] deprecating bundles                           bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] Generating dockerfile                         bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] writing dockerfile: index.Dockerfile483735900  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] running docker build                          bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
INFO[0001] [docker build -f index.Dockerfile483735900 -t quay.io/kuiwang/teiid-index:v4-1951387 .]  bundles="[quay.io/kuiwang/teiid-operator:v0.2.0-1951387]"
[root@preserve-olm-env operator-framework-olm]# docker push quay.io/kuiwang/teiid-index:v4-1951387
The push refers to repository [quay.io/kuiwang/teiid-index]
bd7e8665e585: Pushed 
eb1d8096a7b5: Layer already exists 
62936623c33e: Layer already exists 
479bfeeb0448: Layer already exists 
71b397855bc4: Layer already exists 
b2d5eeeaba3a: Layer already exists 
v4-1951387: digest: sha256:b08417f2bbd5f48762ee6836b0869ec8ee8e489851ca6b5535b25819a69ef60e size: 1579
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# ./bin/opm index add -b quay.io/kuiwang/teiid-operator:v0.4.0-1951387 -f quay.io/kuiwang/teiid-index:v4-1951387 -t quay.io/kuiwang/teiid-index:v5-1951387 -c docker
INFO[0000] building the index                            bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0000] Pulling previous image quay.io/kuiwang/teiid-index:v4-1951387 to get metadata  bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0000] running /usr/bin/docker pull quay.io/kuiwang/teiid-index:v4-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0000] running /usr/bin/docker pull quay.io/kuiwang/teiid-index:v4-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0001] Getting label data from previous image        bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0001] running docker inspect                        bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0001] running docker create                         bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0001] running docker cp                             bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0001] running docker rm                             bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0001] running /usr/bin/docker pull quay.io/kuiwang/teiid-operator:v0.4.0-1951387  bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0002] running docker create                         bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0002] running docker cp                             bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0002] running docker rm                             bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0002] Could not find optional dependencies file     dir=bundle_tmp068841511 file=bundle_tmp068841511/metadata load=annotations
INFO[0002] found csv, loading bundle                     dir=bundle_tmp068841511 file=bundle_tmp068841511/manifests load=bundle
INFO[0002] loading bundle file                           dir=bundle_tmp068841511/manifests file=teiid.io_virtualdatabases_crd.yaml load=bundle
INFO[0002] loading bundle file                           dir=bundle_tmp068841511/manifests file=teiid.v0.4.0.clusterserviceversion.yaml load=bundle
INFO[0002] Generating dockerfile                         bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0002] writing dockerfile: index.Dockerfile326926189  bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0002] running docker build                          bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
INFO[0002] [docker build -f index.Dockerfile326926189 -t quay.io/kuiwang/teiid-index:v5-1951387 .]  bundles="[quay.io/kuiwang/teiid-operator:v0.4.0-1951387]"
[root@preserve-olm-env operator-framework-olm]# docker push quay.io/kuiwang/teiid-index:v5-1951387
The push refers to repository [quay.io/kuiwang/teiid-index]
2b1c675515cb: Pushed 
eb1d8096a7b5: Layer already exists 
62936623c33e: Layer already exists 
479bfeeb0448: Layer already exists 
71b397855bc4: Layer already exists 
b2d5eeeaba3a: Layer already exists 
v5-1951387: digest: sha256:74096a1f5702c8336951153b32a97ebe37b05092d4c85883f05697776b0f3e09 size: 1579
[root@preserve-olm-env operator-framework-olm]# 
--

Comment 10 errata-xmlrpc 2021-07-27 23:01:52 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.8.2 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-2021:2438


Note You need to log in before you can comment on or make changes to this bug.