Bug 1947774 - CSI driver operators use "Always" imagePullPolicy in some containers
Summary: CSI driver operators use "Always" imagePullPolicy in some containers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.8.0
Assignee: melbeher
QA Contact: Wei Duan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-09 08:45 UTC by Wei Duan
Modified: 2021-07-27 22:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 22:58:26 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift aws-ebs-csi-driver-operator pull 120 0 None closed Bug 1947774: fix imagePullPolicy to ifNotPresent 2021-04-27 15:55:16 UTC
Github openshift azure-disk-csi-driver-operator pull 16 0 None closed Bug 1947774: fix imagePullPolicy to ifNotPresent 2021-04-27 15:55:16 UTC
Github openshift csi-driver-manila-operator pull 97 0 None open Bug 1947774: fix imagePullPolicy to ifNotPresent 2021-04-27 15:55:17 UTC
Github openshift gcp-pd-csi-driver-operator pull 23 0 None closed Bug 1947774: fix imagePullPolicy to ifNotPresent 2021-04-27 15:54:17 UTC
Github openshift local-storage-operator pull 231 0 None closed Bug 1947774: fix imagePullPolicy to ifNotPresent 2021-04-27 15:54:17 UTC
Github openshift openstack-cinder-csi-driver-operator pull 35 0 None closed Bug 1947774: fix imagePullPolicy to ifNotPresent 2021-04-27 15:54:18 UTC
Github openshift ovirt-csi-driver-operator pull 54 0 None closed Bug 1947774: fix imagePullPolicy to ifNotPresent 2021-04-27 15:55:32 UTC
Github openshift vmware-vsphere-csi-driver-operator pull 21 0 None closed Bug 1947774: fix imagePullPolicy to ifNotPresent 2021-04-27 15:54:19 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:58:46 UTC

Description Wei Duan 2021-04-09 08:45:59 UTC
Description of problem:
vSphere csi driver uses "Always" imagePullPolicy in some containers

Version-Release number of selected component (if applicable):
4.8.0-0.nightly-2021-04-08-200632

How reproducible:
Always

Steps to Reproduce:
1. Install vSphere cluster
2. Enable the TechPreviewNoUpgrade featureset
3. Check containers which use "Always" imagePullPolicy
$ oc -n openshift-cluster-csi-drivers get deployment vmware-vsphere-csi-driver-controller -o json | jq -r '.spec.template.spec.containers[] | select(.imagePullPolicy == "Always")|.name'
csi-provisioner
csi-attacher
csi-resizer
csi-liveness-probe

$ oc -n openshift-cluster-csi-drivers get ds vmware-vsphere-csi-driver-node -o json | jq -r '.spec.template.spec.containers[] | select(.imagePullPolicy == "Always")|.name'
csi-node-driver-registrar
csi-liveness-probe

Actual results:
The sidecar containers use  "Always" imagePullPolicy 

Expected results:
ImagePullPolicy needs to be updated to "IfNotPresent".

Comment 1 Fabio Bertinatto 2021-04-15 13:23:19 UTC
Hi Wei,
Good catch, but I think this should be fixed already.
The default value for imagePullPolicy is Always if the image tag is :latest. Otherwise, the default value will be IfNotPresent.
It looks like your cluster version is the same as bug 1947775 (4.8.0-0.nightly-2021-04-08-200632), which had the upstream images with :latest tag.
Since bug 1947775 has been fixed, the field should be set to IfNotPresent. Could you confirm that?

Comment 2 Wei Duan 2021-04-16 01:36:38 UTC
Hi Fabio,

Yes, you are correct, imagePullPolicy are all set to "IfNotPresent" now. It was fixed with bug 1947775.  
Let me know if need action from my side.

Comment 3 Fabio Bertinatto 2021-04-19 15:25:17 UTC
Hi @Wei,

Thanks for confirming that.

Even though this is now fixed, we should probably explicitly set the imagePullPolicy to IfNotPresent in order to avoid more confusion in the future. If you don't mind, we'd like to use this ticket to track this work.

Here's a list of all operators that need to be changed. @Mustafa will work on getting those fields set accordingly:

https://github.com/openshift/aws-ebs-csi-driver-operator
https://github.com/openshift/azure-disk-csi-driver-operator
https://github.com/openshift/csi-driver-manila-operator
https://github.com/openshift/gcp-pd-csi-driver-operator
https://github.com/openshift/kubevirt-csi-driver-operator
https://github.com/openshift/openstack-cinder-csi-driver-operator
https://github.com/openshift/ovirt-csi-driver-operator/
https://github.com/openshift/vmware-vsphere-csi-driver

@Wei, you shouldn't see any changes on your end.

Comment 5 Wei Duan 2021-05-07 09:18:04 UTC
All checked except the ovirt-csi-driver-operator, from the PR, should no risk.
Change the status to "VERIFIED"

Comment 8 errata-xmlrpc 2021-07-27 22:58:26 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.