ImagePullPolicy set to Always even though DC sets it to IfNotPresent

Solution Unverified - Updated -

Issue

  • The deploymentconfig sets ImagePullPolicy to IfNotPresent, however, the pod is always set to Always
$ oc get rc docker-registry-5 -o yaml | grep -i image
        image: registry.access.redhat.com/openshift3/ose-docker-registry:v3.11
        imagePullPolicy: IfNotPresent

$ oc get pod docker-registry-5-h5qrb -o yaml | grep -i image
    image: registry.access.redhat.com/openshift3/ose-docker-registry:v3.11
    imagePullPolicy: Always
  • The migrate storage step fails on this difference
$ oc adm migrate storage

E1011 12:00:41.057431 error:     -n openshift-node pods/sync-xxxxx: Pod "sync-xxxxx" is invalid: spec: Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
. . .
"ImagePullPolicy":"

A: Always" . . .}

B: IfNotPresent" . . .}

Environment

  • Red Hat OpenShift Container Platform
    • 3.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content