Bug 2055460
| Summary: | OUS uses wrong imagePullPolicy for graph-data initContainer | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Lalatendu Mohanty <lmohanty> |
| Component: | OpenShift Update Service | Assignee: | Over the Air Updates <aos-team-ota> |
| OpenShift Update Service sub component: | operator | QA Contact: | liujia <jiajliu> |
| Status: | CLOSED ERRATA | Docs Contact: | Kathryn Alexander <kalexand> |
| Severity: | high | ||
| Priority: | medium | CC: | ableisch, jiajliu, kalexand, lmohanty, wking |
| Version: | 4.6 | Keywords: | Reopened |
| Target Milestone: | --- | ||
| Target Release: | 4.9.z | ||
| Hardware: | x86_64 | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: The update service deployment used pullIfNotPresent for the graph-data container.
Consequence: When the configured UpdateService graphDataImage used a by-tag pullspec, and the host node contained a cached image for that pullspec, new update service pods might not notice updated graph data and could continue to serve old graph data.
Fix: The graph-data container is now pullAlways.
Result: New update service pods will always retrieve fresh graph data, even when graphDataImage is configured with a by-tag pullspec.
|
Story Points: | --- |
| Clone Of: | 2009651 | Environment: | |
| Last Closed: | 2022-02-25 00:52:55 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: | 2009651 | ||
| Bug Blocks: | |||
|
Description
Lalatendu Mohanty
2022-02-17 02:49:28 UTC
Reproduced Version:
cincinnati-container-v4.9.0-3
cincinnati-operator-bundle-container-v4.9.0-7
cincinnati-operator-container-v4.9.0-3
steps:
1. Install osus operator v4.9.0 on ocp v4.9
2. Build graph-data image v1.0.0 and push to registry as cincinnati-graph-data-container:latest
3. Create updateservice instance with cincinnati-graph-data-container:latest
# ./oc get po sample-65bf4646b8-xvkcx -oyaml|grep cincinnati-graph-data-container
- image: quay.io/openshifttest/cincinnati-graph-data-container:latest
image: quay.io/openshifttest/cincinnati-graph-data-container:latest
imageID: quay.io/openshifttest/cincinnati-graph-data-container@sha256:fc97cb8e57aba5048bd83a880d3ae0f9aea600b1e730be7f6379f4576aa1af2d
# ./oc get po sample-65bf4646b8-xvkcx -oyaml|grep -A3 initContainers:
initContainers:
- image: quay.io/openshifttest/cincinnati-graph-data-container:latest
imagePullPolicy: IfNotPresent
name: graph-data
4. Build graph-data image v1.0.1 and push to registry as cincinnati-graph-data-container:latest again.
5. Delete the old updateservice pod and re-create updaterservice with cincinnati-graph-data-container:latest
# ./oc get po sample-65bf4646b8-lkqwg -oyaml|grep cincinnati-graph-data-container
- image: quay.io/openshifttest/cincinnati-graph-data-container:latest
image: quay.io/openshifttest/cincinnati-graph-data-container:latest
imageID: quay.io/openshifttest/cincinnati-graph-data-container@sha256:fc97cb8e57aba5048bd83a880d3ae0f9aea600b1e730be7f6379f4576aa1af2d
The graph-data image is still the old one @sha256:fc97cb8e57aba5048bd83a880d3ae0f9aea600b1e730be7f6379f4576aa1af2d.
Verified Version:
cincinnati-container-v4.9.0-9
cincinnati-operator-bundle-container-v4.9.1-2
cincinnati-operator-container-v4.9.0-10
Before upgrade graph-data:latest image:
# ./oc get po sample-7d9dcddbbd-4vbcn -oyaml|grep cincinnati-graph-data-container
- image: quay.io/openshifttest/cincinnati-graph-data-container:latest
image: quay.io/openshifttest/cincinnati-graph-data-container:latest
imageID: quay.io/openshifttest/cincinnati-graph-data-container@sha256:03c0aef42e61c736f470ad471c4709cfc93aa9acb2f06852a2cc502de491aa6c
After update graph-data image and re-create updateservice pod:
# ./oc get po sample-7d9dcddbbd-f4c9r -oyaml|grep cincinnati-graph-data-container
- image: quay.io/openshifttest/cincinnati-graph-data-container:latest
image: quay.io/openshifttest/cincinnati-graph-data-container:latest
imageID: quay.io/openshifttest/cincinnati-graph-data-container@sha256:fc97cb8e57aba5048bd83a880d3ae0f9aea600b1e730be7f6379f4576aa1af2d
The imagePullPolicy was updated to Always:
# ./oc get po sample-7d9dcddbbd-4vbcn -oyaml|grep -A3 initContainers:
initContainers:
- image: quay.io/openshifttest/cincinnati-graph-data-container:latest
imagePullPolicy: Always
name: graph-data
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 (RHEA: OSUS enhancement 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-2022:0681 case OCP-52586 added. |