Bug 1593142 - [3.9] Unqualified image in non docker hub registry with specific tag can not be pulled
Summary: [3.9] Unqualified image in non docker hub registry with specific tag can not ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.9.z
Assignee: Seth Jennings
QA Contact: DeShuai Ma
URL:
Whiteboard:
Depends On: 1593139
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-20 07:48 UTC by weiwei jiang
Modified: 2018-07-26 20:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1593139
Environment:
Last Closed: 2018-07-26 20:37:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description weiwei jiang 2018-06-20 07:48:19 UTC
+++ This bug was initially created as a clone of Bug #1593139 +++

Description of problem:
When try to create a pod with unqualified image which in non docker hub registry with specific tag, pod will go in ImagePullBackOff status.

Follow with https://bugzilla.redhat.com/show_bug.cgi?id=1583500#c46

Version-Release number of selected component (if applicable):
# oc version 
oc v3.10.1
kubernetes v1.10.0+b81c8f8
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://qe-wjiang-310f2-master-etcd-1:8443
openshift v3.10.1
kubernetes v1.10.0+b81c8f8


How reproducible:
Always

Steps to Reproduce:
1. Create pod with image from non docker dub with specific tag
oc run test --image=openshift3/metrics-heapster:v3.10.1 --command sleep 10d
2. Check pod status
3.

Actual results:
# oc get pods 
NAME                       READY     STATUS             RESTARTS   AGE
test-1-deploy              1/1       Running            0          46s
test-1-x5sf9               0/1       ImagePullBackOff   0          44s



Expected results:
Pod should be running with expected image

Additional info:

Comment 1 weiwei jiang 2018-06-20 07:50:31 UTC
Checked with v3.9.31 and the issue also can be reproduced, so clone one for version 3.9


# oc run h --image=openshift3/metrics-heapster:v3.9.31 --command sleep 10d
deploymentconfig "h" created

# oc get pods
NAME                       READY     STATUS         RESTARTS   AGE                                                                         
h-1-deploy                 1/1       Running        0          10s                                                                                                                                                
h-1-xmrsv                  0/1       ErrImagePull   0          8s  

# oc describe pods h-1-xmrsv
Name:           h-1-xmrsv
Namespace:      default
Node:           qe-wjiang-docker-39-master-etcd-1/10.240.0.20
Start Time:     Wed, 20 Jun 2018 03:29:29 -0400
Labels:         deployment=h-1
                deploymentconfig=h
                run=h
Annotations:    openshift.io/deployment-config.latest-version=1
                openshift.io/deployment-config.name=h
                openshift.io/deployment.name=h-1
                openshift.io/scc=restricted
Status:         Pending
IP:
Controlled By:  ReplicationController/h-1
Containers:
  h:
    Container ID:
    Image:         openshift3/metrics-heapster:v3.9.31
    Image ID:
    Port:          <none>
    Command:
      sleep
      10d
    State:          Waiting
      Reason:       ImagePullBackOff
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-v9n4j (ro)
Conditions:
  Type           Status
  Initialized    True
  Ready          False
  PodScheduled   True
Volumes:
  default-token-v9n4j:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-v9n4j
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     <none>
Events:
  Type     Reason                 Age              From                                        Message
  ----     ------                 ----             ----                                        -------
  Normal   Scheduled              15s              default-scheduler                           Successfully assigned h-1-xmrsv to qe-wjiang-docker-39-master-etcd-1                                                                                                            
  Normal   SuccessfulMountVolume  14s              kubelet, qe-wjiang-docker-39-master-etcd-1  MountVolume.SetUp succeeded for volume "default-token-v9n4j"                                                                                                                    
  Normal   Pulling                13s              kubelet, qe-wjiang-docker-39-master-etcd-1  pulling image "openshift3/metrics-heapster:v3.9.31"                                                                                                                             
  Warning  Failed                 10s              kubelet, qe-wjiang-docker-39-master-etcd-1  Failed to pull image "openshift3/metrics-heapster:v3.9.31": rpc error: code = Unknown desc = repository docker.io/openshift3/metrics-heapster not found: does not exist or no pul
l access
  Warning  Failed                 10s              kubelet, qe-wjiang-docker-39-master-etcd-1  Error: ErrImagePull
  Normal   BackOff                2s (x3 over 7s)  kubelet, qe-wjiang-docker-39-master-etcd-1  Back-off pulling image "openshift3/metrics-heapster:v3.9.31"                                                                                                                    
  Warning  Failed                 2s (x3 over 7s)  kubelet, qe-wjiang-docker-39-master-etcd-1  Error: ImagePullBackOff
  Normal   SandboxChanged         1s (x4 over 9s)  kubelet, qe-wjiang-docker-39-master-etcd-1  Pod sandbox changed, it will be killed and re-created.


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