[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Unable to deploy app on OpenShift Origin v3 - Failed to pull image



I am trying to deploy a simple Node app (docker image) but for some reason it fails to deploy.  It appears that Pod is unable to find docker images.  I am not sure why this is happening.

I have built all images on my local system and here is what I get when I query docker:

/======================================================/
docker images
REPOSITORY                         TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
registry                           latest              0e3192175a3d        2 hours ago         145.4 MB
openshift/origin-docker-registry   latest              b7967e0934c4        3 days ago          288.7 MB
openshift/origin-pod               latest              3886fcaf92ad        3 days ago          6.712 GB
openshift/nodejs-010-rhel7         latest              0b6781cf3ab8        5 days ago          980.1 MB
openshift/origin-deployer          latest              5fbda8b03cfa        5 days ago          6.885 GB
openshift/origin                   latest              84be97ade033        5 days ago          6.885 GB
rhel7-origin-base                  latest              df537a481fa8        5 days ago          6.712 GB
rhel7-go                           latest              7d5043bea156        5 days ago          1.253 GB
rhel7-base                         latest              f97173e26ff3        7 days ago          116.9 MB
/======================================================/

This is how I am deploying my app:

# oc login --certificate-authority=openshift.local.config/master/ca.crt
# oc new-project test --display-name="OpenShift 3 Sample" --description="This is an example project to demonstrate OpenShift v3"
# oc new-app openshift/nodejs-010-rhel7

Problem seems to be occurring in pods as I see this repeated entry in my logs:

/=======================================================/
E1027 13:35:35.339375    4261 namespace_controller.go:95] namespaces "test" cannot be updated: the object has been modified; please apply your changes to the latest version and try again
I1027 13:38:53.362021    4261 event.go:204] Event(api.ObjectReference{Kind:"ReplicationController", Namespace:"test", Name:"nodejs-010-rhel7-1", UID:"920eafde-7cd1-11e5-b31d-020000000835", APIVersion:"v1", ResourceVersion:"10164", FieldPath:""}): reason: 'SuccessfulCreate' Created pod: nodejs-010-rhel7-1-upton
I1027 13:38:55.831721    4261 provider.go:91] Refreshing cache for provider: *credentialprovider.defaultDockerConfigProvider
W1027 13:38:56.967740    4261 manager.go:1764] Failed to pull image "openshift/nodejs-010-rhel7:latest" from pod "nodejs-010-rhel7-1-upton_test" and container "nodejs-010-rhel7": Error: image openshift/nodejs-010-rhel7:latest not found
W1027 13:39:04.592304    4261 manager.go:1764] Failed to pull image "openshift/nodejs-010-rhel7:latest" from pod "nodejs-010-rhel7-1-upton_test" and container "nodejs-010-rhel7": Error: image openshift/nodejs-010-rhel7:latest not found
W1027 13:39:14.764289    4261 manager.go:1764] Failed to pull image "openshift/nodejs-010-rhel7:latest" from pod "nodejs-010-rhel7-1-upton_test" and container "nodejs-010-rhel7": Error: image openshift/nodejs-010-rhel7:latest not found
W1027 13:39:24.636817    4261 manager.go:1764] Failed to pull image "openshift/nodejs-010-rhel7:latest" from pod "nodejs-010-rhel7-1-upton_test" and container "nodejs-010-rhel7": Error: image openshift/nodejs-010-rhel7:latest not found

/=======================================================/

As you will notice "docker images" indeed list the missing image that pod is complaining about.

Please let me know how to debug this further.  I suspect there is some config file that will require changes but not sure which one.

Any tips to further debug this greatly appreciated.

Thanks.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]