Bug 1878359
| Summary: | Red Hat Operators Production Index-Image is not getting refreshed when new content is available | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | OpenShift BugZilla Robot <openshift-bugzilla-robot> |
| Component: | OLM | Assignee: | Daniel Sover <dsover> |
| OLM sub component: | OLM | QA Contact: | Jian Zhang <jiazha> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | medium | CC: | dsover, ecordell, krizza, ocohen, stirabos |
| Version: | 4.5 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.5.z | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-09-30 14:07:01 UTC | Type: | --- |
| 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: | 1877835 | ||
| Bug Blocks: | |||
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 |
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