Bug 1902600

Summary: Container csi-snapshotter in Cinder csi driver needs to use ImagePullPolicy=IfNotPresent
Product: OpenShift Container Platform Reporter: Wei Duan <wduan>
Component: StorageAssignee: Martin André <m.andre>
Storage sub component: OpenStack CSI Drivers QA Contact: Wei Duan <wduan>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: aos-bugs, m.andre, pprinett
Version: 4.7Keywords: UpcomingSprint
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:36:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wei Duan 2020-11-30 07:08:55 UTC
Description of problem:
Currently the container csi-snapshotter in Cinder csi driver uses ImagePullPolicy=Always, needs to be updated to IfNotPresent.

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2020-11-29-133728

Steps to Reproduce:
1. Install OSP cluster and cinder csi driver is installed. 

2. Check CSI driver pods:
   oc -n openshift-cluster-csi-drivers get pod openstack-cinder-csi-driver-controller-68c89bf4c5-lmw74 -o yaml

Actual results:
imagePullPolicy uses Always for csi-snapshotter container
$ oc -n openshift-cluster-csi-drivers get pod openstack-cinder-csi-driver-controller-68c89bf4c5-lmw74 -o yaml | grep -B1 "name: csi-snapshotter"
    imagePullPolicy: Always
    name: csi-snapshotter

Expected results:
ImagePullPolicy needs to be updated to IfNotPresent.

Comment 1 Martin André 2020-12-10 09:22:03 UTC
Looks like a missing attribute in the manifest.

Comment 3 Wei Duan 2021-01-13 07:00:28 UTC
Verified pass on 4.7.0-0.nightly-2021-01-12-203716

--
    imagePullPolicy: IfNotPresent
    name: csi-driver
--
    imagePullPolicy: IfNotPresent
    name: csi-provisioner
--
    imagePullPolicy: IfNotPresent
    name: csi-attacher
--
    imagePullPolicy: IfNotPresent
    name: csi-resizer
--
    imagePullPolicy: IfNotPresent
    name: csi-snapshotter

Comment 7 errata-xmlrpc 2021-02-24 15:36:33 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.7.0 security, bug fix, and 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/RHSA-2020:5633