Bug 1588768 - [3.9] Unqualified image is completed with "docker.io"
Summary: [3.9] Unqualified image is completed with "docker.io"
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.9.z
Assignee: Seth Jennings
QA Contact: weiwei jiang
: 1591506 (view as bug list)
Depends On: 1583500
Blocks: 1572182
TreeView+ depends on / blocked
Reported: 2018-06-07 20:09 UTC by Seth Jennings
Modified: 2018-08-02 15:46 UTC (History)
29 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Fixes a regression issue where the docker client in use by the kubelet qualifies image paths without a domain with docker.io client-side, resulting in all unqualified image paths attempting the pull from docker.io and ignoring the domain search list in the docker daemon.
Clone Of: 1583500
Last Closed: 2018-06-27 18:02:09 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3480921 None None None 2018-06-07 22:58:28 UTC
Red Hat Product Errata RHSA-2018:2013 normal SHIPPED_LIVE Important: OpenShift Container Platform 3.9 security, bug fix, and enhancement update 2018-06-27 22:01:43 UTC

Comment 4 weiwei jiang 2018-06-11 03:21:03 UTC
Checked with v3.9.30, and the issue still can be reproduced.

# oc describe pods heapster-86dd5b8544-p84p7 -n 6z5mi
Name:           heapster-86dd5b8544-p84p7
Namespace:      6z5mi
Node:           qe-wjiang-gce-docker-nrr-1/
Start Time:     Sun, 10 Jun 2018 23:13:22 -0400
Labels:         k8s-app=heapster
Annotations:    openshift.io/scc=restricted
Status:         Pending
Controlled By:  ReplicaSet/heapster-86dd5b8544
    Container ID:
    Image:         openshift3/metrics-heapster:latest
    Image ID:
    Port:          <none>
    State:          Waiting
      Reason:       ImagePullBackOff
    Ready:          False
    Restart Count:  0
    Environment:    <none>
      /var/run/kubernetes from ca (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from heapster-token-tlk46 (ro)
  Type           Status
  Initialized    True
  Ready          False
  PodScheduled   True
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      cert-configmap
    Optional:  false
    Type:        Secret (a volume populated by a Secret)
    SecretName:  heapster-token-tlk46
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  node-role.kubernetes.io/compute=true
Tolerations:     <none>
  Type     Reason                 Age               From                                 Message
  ----     ------                 ----              ----                                 -------
  Normal   Scheduled              7m                default-scheduler                    Successfully assigned heapster-86dd5b8544-p84p7 to qe-wjiang-gce-docker-nrr-1
  Normal   SuccessfulMountVolume  7m                kubelet, qe-wjiang-gce-docker-nrr-1  MountVolume.SetUp succeeded for volume "ca"
  Normal   SuccessfulMountVolume  7m                kubelet, qe-wjiang-gce-docker-nrr-1  MountVolume.SetUp succeeded for volume "heapster-token-tlk46"
  Normal   Pulling                6m (x2 over 7m)   kubelet, qe-wjiang-gce-docker-nrr-1  pulling image "openshift3/metrics-heapster:latest"
  Warning  Failed                 6m (x2 over 6m)   kubelet, qe-wjiang-gce-docker-nrr-1  Failed to pull image "openshift3/metrics-heapster:latest": rpc error: code = Unknown desc = repository docker.io/openshift3/metrics-heapster not found: does not exist or no pull access                                           
  Warning  Failed                 6m (x2 over 6m)   kubelet, qe-wjiang-gce-docker-nrr-1  Error: ErrImagePull
  Warning  Failed                 6m (x5 over 6m)   kubelet, qe-wjiang-gce-docker-nrr-1  Error: ImagePullBackOff
  Normal   SandboxChanged         6m (x7 over 6m)   kubelet, qe-wjiang-gce-docker-nrr-1  Pod sandbox changed, it will be killed and re-created.
  Normal   BackOff                1m (x42 over 6m)  kubelet, qe-wjiang-gce-docker-nrr-1  Back-off pulling image "openshift3/metrics-heapster:latest"

Comment 6 weiwei jiang 2018-06-13 04:25:02 UTC
Checked with v3.9.31 and this issue can not be reproduced now.

Comment 7 weiwei jiang 2018-06-14 09:52:52 UTC
Checked again with v3.9.31 and found that only latest tag will work as expected.

// ImagePullBackOff
oc run aaaaa --image=openshift3/metrics-heapster:v3.9.31 --command sleep 10d

// Running - and use registry.reg-aws.openshift.com:443 registry
oc run aaaa --image=openshift3/metrics-heapster:latest --command sleep 10d

Comment 8 Scott Dodson 2018-06-15 12:55:56 UTC
*** Bug 1591506 has been marked as a duplicate of this bug. ***

Comment 9 Seth Jennings 2018-06-19 22:00:22 UTC
Please do not fail QA unless the failure occurs on 3.9.31 but not on 3.9.29 (release before the PR that is reverted in this bug).

Only fail QA if you have output indicating that a test that worked 3.9.29 no longer works in 3.9.31.  If you have a test that fails for both, that is a new bug, not a reason to fail QA on this bug.

Comment 10 weiwei jiang 2018-06-20 06:32:06 UTC
Checked with v3.9.31 again, and can not reproduce the original issue , so move to verified.

Comment 15 errata-xmlrpc 2018-06-27 18:02:09 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.