Description of problem:
When an OCP 4.5 cluster is configured with a catalog source pointed to the production's index-image:
It doesn't get content updates (e.g. new CSV version) when the floating image is being updated.
Furthermore, deleting and recreating the catalog source does not update the packagemanifest with the most up-to-date content.
Reason: The index image with the specified tag (v4.5) already exist on the cluster and is not pulled, even if a newer image exists on the registry server.
workaround: delete the old image from the node itself, using "crictl rmi ..."
Version-Release number of selected component (if applicable):
reproduced on at least 4 clusters during the release of Openshift Virtualization 2.4.1
Steps to Reproduce:
1. described above
the production index image is not getting pulled when new content is available in the registry server.
the production index image is getting pulled automatically and processed by OLM when new content is available on the registry server.
Please be aware that we created a custom catalog source to consume that index image on OCP 4.5 and we didn't specified any UpdateStrategy on it:
Maybe the issue is just the lack of a sane default there.
Cluster version is 4.6.0-0.nightly-2020-09-12-230035, which contains the fixed PR.
[root@preserve-olm-env data]# oc -n openshift-operator-lifecycle-manager exec catalog-operator-694676c897-8rdgt -- olm --version
OLM version: 0.16.1
git commit: 6d26c16166b232561132985e1132fce4b4d36532
1, The CatalogSource(tag) pod's imagePullPolicy is Always.
[root@preserve-olm-env data]# oc get pods redhat-operators-k9tlq -o yaml|grep imagePullPolicy
[root@preserve-olm-env data]# oc get catalogsource redhat-operators -o yaml
displayName: Red Hat Operators
publisher: Red Hat
2, And, create a CatalogSource with a digest image. Its pod's imagePullPolicy is IfNotPresent.
[root@preserve-olm-env data]# cat cs-etcd.yaml
displayName: Jian Test
[root@preserve-olm-env data]# oc create -f cs-etcd.yaml
[root@preserve-olm-env data]# oc get pods
NAME READY STATUS RESTARTS AGE
etcd2-test-dwqjd 1/1 Running 0 32s
[root@preserve-olm-env data]# oc get pods etcd2-test-dwqjd -o yaml|grep imagePullPolicy
LGTM, verify it.
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.6 GA Images), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.