Bug 1951652 - Add retries to opm index add
Summary: Add retries to opm index add
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: Joe Lanford
QA Contact: kuiwang
URL:
Whiteboard:
Depends On:
Blocks: 1937097
TreeView+ depends on / blocked
 
Reported: 2021-04-20 16:31 UTC by Joe Lanford
Modified: 2021-07-27 23:02 UTC (History)
5 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift operator-framework-olm pull 63 0 None open Bug 1951652: Retry failures when pulling images 2021-04-20 16:31:52 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:02:45 UTC

Comment 2 kuiwang 2021-04-22 10:19:00 UTC
LGTM

--
[root@preserve-olm-env data]# oc get catsrc -A -o yaml |grep "image:"
    image: registry.redhat.io/redhat/certified-operator-index:v4.8
    image: registry.redhat.io/redhat/community-operator-index:v4.8
    image: quay.io/openshift-qe-optional-operators/ocp4-index:latest
    image: registry.redhat.io/redhat/redhat-marketplace-index:v4.8
    image: registry.redhat.io/redhat/redhat-operator-index:v4.8
[root@preserve-olm-env data]# 
[root@preserve-olm-env 1951652]# oc image extract registry.redhat.io/redhat/redhat-operator-index:v4.8 --file=/database/index.db
W0422 09:58:50.885303   11908 manifest.go:440] Chose linux/amd64 manifest from the manifest list.
[root@preserve-olm-env 1951652]# ls
index.db
[root@preserve-olm-env 1951652]# sqlite3 index.db "select name,bundlepath from operatorbundle" | wc -l
322
[root@preserve-olm-env 1951652]# sqlite3 index.db "select name,bundlepath from operatorbundle"
[root@preserve-olm-env 1951652]# sqlite3 index.db "select name,bundlepath from operatorbundle"|cut -d "|" -f 2|wc -l
322
[root@preserve-olm-env 1951652]# bundle_list="";for bundle in $(sqlite3 index.db "select bundlepath from operatorbundle"); do bundle_list="${bundle_list},${bundle}";done
[root@preserve-olm-env 1951652]# bundle_list="${bundle_list:1}"
[root@preserve-olm-env 1951652]# echo $bundle_list
registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:55166d313d270ae4740a260149bfb41df1af8214744e9c38abef07add49c95de,registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:bb7dc249eb517b6e3ffd7d4ceb19884ad4af97f16835bf58e1930534ca7e4764,registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:523ca71b96847059b68f6def61e4735a52315757395556f37977e083aef305de,registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:9e2588646a095b3067cd785910c7cde820b7b7aaf864d5600a577a13a5bd69c4,registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:2d1d177e854d5065d872b63502b2ac08bbcb9855ab1f0609106c31ef13f8d67b,registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:3d51773c86faf0a06661d824d25e63bb704fdd45740131ab5c2c3cff2f3afe20,registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:361ee922e6460100781906421e3b4339850785fe1d1559b17be6555ab7684a52,registry.redhat.io/3scale-amp2/3scale-rhel7-operator-...
metadata@sha256:9411c10cb6ce38569ef647f7e36ee1c0c87905df354bae0357f1cc94d6cc96af,registry.redhat.io/openshift4/ose-vertical-pod-autoscaler-operator-metadata@sha256:8dda299b8a1fb48c637f38ff3fd4175d56e30fc7f0cc65d980f283e0896c9d0b,registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:72654f9d638fc59231c4bfa75781aa2cf7ab911a3c42d6ba51232ee9894d54d5,registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:320875845790b0da60dbfbe08fbd4112a80d47cd79510f16d2a1080c66420fd5,registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:e08d38c7b0e585df1185d97890a8723827c47c6749e7d7cec0afa8c9359c3ff4

[root@preserve-olm-env 1951652]# cd -
/data/kuiwang/operator-framework-olm
[root@preserve-olm-env operator-framework-olm]# ./bin/opm version
Version: version.Version{OpmVersion:"3440fa2", GitCommit:"3440fa2c16fc6a744e2e9bbb1352a0b4731cdd6f", BuildDate:"2021-04-22T05:30:41Z", GoOs:"linux", GoArch:"amd64"}
[root@preserve-olm-env operator-framework-olm]# ./bin/opm index add -b ${bundle_list} -t quay.io/kuiwang/redhat_operator:v1 -p podman
....
INFO[0957] [podman build --format docker -f index.Dockerfile453510676 -t quay.io/kuiwang/redhat_operator:v1 .]  bundles="[registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:55166d313d270ae4740a260149bfb41df1af8214744e9c38abef07add49c95de registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:bb7dc249eb517b6e3ffd7d4ceb19884ad4af97f16835bf58e1930534ca7e4764 registry.redhat.io/3scale-amp2/3scale-rhel7-operator-...
nshift4/ose-vertical-pod-autoscaler-operator-metadata@sha256:9411c10cb6ce38569ef647f7e36ee1c0c87905df354bae0357f1cc94d6cc96af registry.redhat.io/openshift4/ose-vertical-pod-autoscaler-operator-metadata@sha256:8dda299b8a1fb48c637f38ff3fd4175d56e30fc7f0cc65d980f283e0896c9d0b registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:72654f9d638fc59231c4bfa75781aa2cf7ab911a3c42d6ba51232ee9894d54d5 registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:320875845790b0da60dbfbe08fbd4112a80d47cd79510f16d2a1080c66420fd5 registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:e08d38c7b0e585df1185d97890a8723827c47c6749e7d7cec0afa8c9359c3ff4]"
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# podman images
REPOSITORY                                       TAG     IMAGE ID      CREATED             SIZE
quay.io/kuiwang/redhat_operator                  v1      1c98ae2fd32b  About a minute ago  106 MB
quay.io/openshift/origin-operator-registry       latest  18e09b9bbb8b  42 hours ago        576 MB
<none>                                           <none>  e9545bc3d8bd  2 days ago          234 kB
<none>                                           <none>  ba84fe387714  2 days ago          234 kB
<none>                                           <none>  482d39952040  2 days ago          36.4 kB
<none>                                           <none>  dcdb092fe400  2 days ago          46.5 kB
<none>                                           <none>  67ac0dd14d39  2 days ago          46.6 kB
<none>                                           <none>  d85e1f7ee5fa  2 days ago          36.4 kB
quay.io/operator-framework/upstream-opm-builder  latest  c3cb3f51fe8a  6 days ago          64.8 MB
<none>                                           <none>  5ce9842422f3  6 days ago          99.7 kB
<none>                                           <none>  944b7660b6c1  6 days ago          56.1 kB
...
<none>                                           <none>  ada7d17f842c  12 months ago       210 kB
<none>                                           <none>  a4f15901700c  12 months ago       159 kB
<none>                                           <none>  7846ac38b7ed  12 months ago       36.5 kB
[root@preserve-olm-env operator-framework-olm]# podman image prune -f -a
cd21a511cfa59c47c59ccee788b2befb0821554e58f36dcba30193ab3f779c86
6b5ba8fe5426888c28a5edbfb7cfb4d8b6dc1794da4d7767ea12420f5f0f15b1
ace4d319b140651c315eb7deeeaffbe48ef421e9b51b4257fdfc89d9bff7a97e
b5a24ed7b400fb7ec748df78a54394b85c3d549cd0a8bc00de4d31184ec5f796
...
bf1b6a656e4021da5b11dac02e0c0990d932fae9b1957bf077d6c9e65f77af91
quay.io/kuiwang/redhat_operator:v1
[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 ${bundle_list} -t quay.io/kuiwang/redhat_operator:v1
INFO[0000] building the index                            bundles="[registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:55166d313d270ae4740a260149bfb41df1af8214744e9c38abef07add49c95de registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:bb7dc249eb517b6e3ffd7d4ceb19884ad4af97f16835bf58e1930534ca7e4764 registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:523ca71b96847059b68f6def61e4735a52315757395556f37977e083aef305de registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:9e2588646a095b3067cd785910c7cde820b7b7aaf864d5600a577a13a5bd69c4 registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:2d1d177e854d5065d872b63502b2ac08bbcb9855ab1f0609106c31ef13f8d67b registry.redhat.io/3scale-amp2/3scale-rhel7-operator-metadata@sha256:3d51773c86faf0a06661d824d25e63bb704fdd45740131ab5c2c3cff2f3afe20 registry.redhat.io/3scale-amp2/3scale-rhel7-operator-...
 registry.redhat.io/openshift4/ose-vertical-pod-autoscaler-operator-metadata@sha256:9411c10cb6ce38569ef647f7e36ee1c0c87905df354bae0357f1cc94d6cc96af registry.redhat.io/openshift4/ose-vertical-pod-autoscaler-operator-metadata@sha256:8dda299b8a1fb48c637f38ff3fd4175d56e30fc7f0cc65d980f283e0896c9d0b registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:72654f9d638fc59231c4bfa75781aa2cf7ab911a3c42d6ba51232ee9894d54d5 registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:320875845790b0da60dbfbe08fbd4112a80d47cd79510f16d2a1080c66420fd5 registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:e08d38c7b0e585df1185d97890a8723827c47c6749e7d7cec0afa8c9359c3ff4]"




INFO[0271] Could not find optional dependencies file     dir=bundle_tmp880617403 file=bundle_tmp880617403/metadata load=annotations
INFO[0271] found csv, loading bundle                     dir=bundle_tmp880617403 file=bundle_tmp880617403/manifests load=bundle
INFO[0271] loading bundle file                           dir=bundle_tmp880617403/manifests file=apicast-operator.v0.4.0.clusterserviceversion.yaml load=bundle
INFO[0271] loading bundle file                           dir=bundle_tmp880617403/manifests file=apps.3scale.net_apicasts_crd.yaml load=bundle
INFO[0271] Could not find optional dependencies file     dir=bundle_tmp820591452 file=bundle_tmp820591452/metadata load=annotations
...
6c9d0b registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:72654f9d638fc59231c4bfa75781aa2cf7ab911a3c42d6ba51232ee9894d54d5 registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:320875845790b0da60dbfbe08fbd4112a80d47cd79510f16d2a1080c66420fd5 registry.redhat.io/web-terminal-tech-preview/web-terminal-rhel8-operator-metadata@sha256:e08d38c7b0e585df1185d97890a8723827c47c6749e7d7cec0afa8c9359c3ff4]"
[root@preserve-olm-env operator-framework-olm]# 
[root@preserve-olm-env operator-framework-olm]# podman images
REPOSITORY                                       TAG     IMAGE ID      CREATED        SIZE
quay.io/kuiwang/redhat_operator                  v1      af5523bc92af  3 minutes ago  106 MB
quay.io/openshift/origin-operator-registry       latest  18e09b9bbb8b  42 hours ago   576 MB
quay.io/operator-framework/upstream-opm-builder  latest  c3cb3f51fe8a  6 days ago     64.8 MB
[root@preserve-olm-env operator-framework-olm]# 

--

Comment 5 errata-xmlrpc 2021-07-27 23:02: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.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.