Bug 1878359 - Red Hat Operators Production Index-Image is not getting refreshed when new content is available
Summary: Red Hat Operators Production Index-Image is not getting refreshed when new co...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.5
Hardware: Unspecified
OS: Linux
medium
high
Target Milestone: ---
: 4.5.z
Assignee: Daniel Sover
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On: 1877835
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-12 11:11 UTC by OpenShift BugZilla Robot
Modified: 2022-10-11 06:46 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-30 14:07:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github operator-framework operator-lifecycle-manager pull 1760 0 None closed [release-4.5] Bug 1878359: update catalog image pull policy 2021-02-16 10:23:28 UTC
Red Hat Product Errata RHBA-2020:3760 0 None None None 2020-09-30 14:07:29 UTC

Comment 2 Jian Zhang 2020-09-21 10:09:16 UTC
LGTM, verify it. Details:

Cluster version is 4.5.0-0.nightly-2020-09-20-185910
[root@preserve-olm-env data]# oc -n openshift-operator-lifecycle-manager exec catalog-operator-795bbdf75d-mm9jj -- olm --version
OLM version: 0.15.1
git commit: 77fa97b96d07ad60abfaf331ea966fc6c29a628e

1, The CatalogSource(tag) pod's imagePullPolicy is Always.

1) Create a CatalogSource to consume the redhat-operato 4.5 index image.
[root@preserve-olm-env data]# cat cs-rh.yaml 
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: test
  namespace: openshift-marketplace
spec:
  displayName: Red Hat Index Operators
  image: registry.redhat.io/redhat/redhat-operator-index:v4.5
  priority: -100
  publisher: Red Hat
  sourceType: grpc
  updateStrategy:
    registryPoll:
      interval: 10m0s

[root@preserve-olm-env data]# oc get catalogsource
NAME                  DISPLAY                   TYPE   PUBLISHER   AGE
certified-operators   Certified Operators       grpc   Red Hat     20m
community-operators   Community Operators       grpc   Red Hat     20m
redhat-marketplace    Red Hat Marketplace       grpc   Red Hat     20m
redhat-operators      Red Hat Operators         grpc   Red Hat     20m
test                  Red Hat Index Operators   grpc   Red Hat     40s
[root@preserve-olm-env data]# 
[root@preserve-olm-env data]# oc get pods test-vhdxw -o yaml|grep imagePullPolicy
            f:imagePullPolicy: {}
    imagePullPolicy: Always

[root@preserve-olm-env data]# oc get packagemanifest|grep Index
kiali-ossm                                   Red Hat Index Operators   68s
3scale-operator                              Red Hat Index Operators   68s
kubevirt-hyperconverged                      Red Hat Index Operators   68s
serverless-operator                          Red Hat Index Operators   68s
container-security-operator                  Red Hat Index Operators   68s
web-terminal                                 Red Hat Index Operators   68s
quay-operator                                Red Hat Index Operators   68s
amq-streams                                  Red Hat Index Operators   68s
quay-bridge-operator                         Red Hat Index Operators   68s
eap                                          Red Hat Index Operators   68s
service-registry-operator                    Red Hat Index Operators   68s
apicast-operator                             Red Hat Index Operators   68s
jaeger-product                               Red Hat Index Operators   68s


2, And, create a CatalogSource with a digest image. Its pod's imagePullPolicy is IfNotPresent.
[root@preserve-olm-env data]# cat cs-etcd.yaml 
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: etcd2-test
  namespace: openshift-marketplace
spec:
  displayName: Jian Test
  publisher: Jian
  sourceType: grpc
  image: quay.io/olmqe/etcd-index@sha256:ee23a1fd8a76e1ed95219577fe764c843ae932735181f26d7d75ae268c13526e
  updateStrategy:
    registryPoll:
      interval: 10m


[root@preserve-olm-env data]# oc get pods
NAME                                    READY   STATUS    RESTARTS   AGE
certified-operators-d4f7869c9-8h5p7     1/1     Running   0          23m
community-operators-ddfdf9f6d-8wqq2     1/1     Running   0          23m
etcd2-test-nm5b7                        1/1     Running   0          22s
...
test-vhdxw                              1/1     Running   0          3m36s

[root@preserve-olm-env data]# oc create -f cs-etcd.yaml 
catalogsource.operators.coreos.com/etcd2-test created

[root@preserve-olm-env data]# oc get pods etcd2-test-nm5b7 -o yaml|grep imagePullPolicy
            f:imagePullPolicy: {}
    imagePullPolicy: IfNotPresent

Comment 7 errata-xmlrpc 2020-09-30 14:07:01 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.13 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-2020:3760


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