{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/6947","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/6947/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/6947/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/6947/events","html_url":"https://github.com/rancher/rancher/issues/6947","id":193733570,"number":6947,"title":"Rancher 1.2.0 cannot pull images from private registry","user":{"login":"stephan2012","id":3070471,"avatar_url":"https://avatars.githubusercontent.com/u/3070471?v=3","gravatar_id":"","url":"https://api.github.com/users/stephan2012","html_url":"https://github.com/stephan2012","followers_url":"https://api.github.com/users/stephan2012/followers","following_url":"https://api.github.com/users/stephan2012/following{/other_user}","gists_url":"https://api.github.com/users/stephan2012/gists{/gist_id}","starred_url":"https://api.github.com/users/stephan2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephan2012/subscriptions","organizations_url":"https://api.github.com/users/stephan2012/orgs","repos_url":"https://api.github.com/users/stephan2012/repos","events_url":"https://api.github.com/users/stephan2012/events{/privacy}","received_events_url":"https://api.github.com/users/stephan2012/received_events","type":"User","site_admin":false},"labels":[{"id":203009589,"url":"https://api.github.com/repos/rancher/rancher/labels/status/to-test","name":"status/to-test","color":"66aa66","default":false}],"state":"closed","locked":false,"assignee":{"login":"deniseschannon","id":11410997,"avatar_url":"https://avatars.githubusercontent.com/u/11410997?v=3","gravatar_id":"","url":"https://api.github.com/users/deniseschannon","html_url":"https://github.com/deniseschannon","followers_url":"https://api.github.com/users/deniseschannon/followers","following_url":"https://api.github.com/users/deniseschannon/following{/other_user}","gists_url":"https://api.github.com/users/deniseschannon/gists{/gist_id}","starred_url":"https://api.github.com/users/deniseschannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniseschannon/subscriptions","organizations_url":"https://api.github.com/users/deniseschannon/orgs","repos_url":"https://api.github.com/users/deniseschannon/repos","events_url":"https://api.github.com/users/deniseschannon/events{/privacy}","received_events_url":"https://api.github.com/users/deniseschannon/received_events","type":"User","site_admin":false},"assignees":[{"login":"deniseschannon","id":11410997,"avatar_url":"https://avatars.githubusercontent.com/u/11410997?v=3","gravatar_id":"","url":"https://api.github.com/users/deniseschannon","html_url":"https://github.com/deniseschannon","followers_url":"https://api.github.com/users/deniseschannon/followers","following_url":"https://api.github.com/users/deniseschannon/following{/other_user}","gists_url":"https://api.github.com/users/deniseschannon/gists{/gist_id}","starred_url":"https://api.github.com/users/deniseschannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniseschannon/subscriptions","organizations_url":"https://api.github.com/users/deniseschannon/orgs","repos_url":"https://api.github.com/users/deniseschannon/repos","events_url":"https://api.github.com/users/deniseschannon/events{/privacy}","received_events_url":"https://api.github.com/users/deniseschannon/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/rancher/rancher/milestones/81","html_url":"https://github.com/rancher/rancher/milestone/81","labels_url":"https://api.github.com/repos/rancher/rancher/milestones/81/labels","id":2169777,"number":81,"title":"Release 1.4.0","description":"","creator":{"login":"will-chan","id":10134676,"avatar_url":"https://avatars.githubusercontent.com/u/10134676?v=3","gravatar_id":"","url":"https://api.github.com/users/will-chan","html_url":"https://github.com/will-chan","followers_url":"https://api.github.com/users/will-chan/followers","following_url":"https://api.github.com/users/will-chan/following{/other_user}","gists_url":"https://api.github.com/users/will-chan/gists{/gist_id}","starred_url":"https://api.github.com/users/will-chan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-chan/subscriptions","organizations_url":"https://api.github.com/users/will-chan/orgs","repos_url":"https://api.github.com/users/will-chan/repos","events_url":"https://api.github.com/users/will-chan/events{/privacy}","received_events_url":"https://api.github.com/users/will-chan/received_events","type":"User","site_admin":false},"open_issues":107,"closed_issues":35,"state":"open","created_at":"2016-12-01T20:08:28Z","updated_at":"2017-01-12T10:16:17Z","due_on":"2017-01-31T08:00:00Z","closed_at":null},"comments":10,"created_at":"2016-12-06T10:20:27Z","updated_at":"2017-01-12T10:16:17Z","closed_at":"2017-01-12T10:16:17Z","body":"**Rancher Version:**\r\n1.2.0\r\n\r\n**Docker Version:**\r\n1.12.3\r\n\r\n**OS and where are the hosts located? (cloud, bare metal, etc):**\r\nRHEL 7.3, on-premise\r\n\r\n**Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)**\r\nSingle node Rancher, 3 nodes\r\n\r\n**Environment Type: (Cattle/Kubernetes/Swarm/Mesos)**\r\nCattle\r\n\r\n**Steps to Reproduce:**\r\nConfigure private regsitry (Nexus Repository Manager 3.1), try to pull image\r\n\r\n**Results:** \r\n```\r\n2016-12-06 10:10:20,666 ERROR [7b7a2f67-1fcf-4fb6-a3bc-3d3c84fbe44a:1486] [instance:92->instanceHostMap:92] [instance.start->(InstanceStart)->instancehostmap.activate] [] [ecutorService-5] [c.p.e.p.i.DefaultProcessInstanceImpl] Agent error for [compute.instance.activate.reply;agent=1]: Image [internal.registry.company.com:18443/nginx] failed to pull: Pulling repository internal.registry.company.com:18443/nginx \r\n2016-12-06 10:10:20,667 ERROR [7b7a2f67-1fcf-4fb6-a3bc-3d3c84fbe44a:1486] [instance:92] [instance.start->(InstanceStart)] [] [ecutorService-5] [i.c.p.process.instance.InstanceStart] Failed [1/2] to Starting for instance [92] \r\n2016-12-06 10:10:20,838 ERROR [7b7a2f67-1fcf-4fb6-a3bc-3d3c84fbe44a:1486] [instance:92->instanceHostMap:92] [instance.start->(InstanceStart)->instancehostmap.activate] [] [ecutorService-5] [c.p.e.p.i.DefaultProcessInstanceImpl] Agent error for [compute.instance.activate.reply;agent=1]: Image [internal.registry.company.com:18443/nginx] failed to pull: Pulling repository internal.registry.company.com:18443/nginx \r\n2016-12-06 10:10:20,838 ERROR [7b7a2f67-1fcf-4fb6-a3bc-3d3c84fbe44a:1486] [instance:92] [instance.start->(InstanceStart)] [] [ecutorService-5] [i.c.p.process.instance.InstanceStart] Failed [2/2] to Starting for instance [92] \r\n2016-12-06 10:10:21,418 ERROR [e4680aca-d67c-48f8-98ba-4743ab0aa3a6:1378] [service:17] [service.activate] [] [cutorService-11] [c.p.e.p.i.DefaultProcessInstanceImpl] Expected state running but got error: Image [internal.registry.company.com:18443/nginx] failed to pull: Pulling repository internal.registry.company.com:18443/nginx \r\n2016-12-06 10:10:21,430 ERROR [:] [] [] [] [cutorService-11] [.e.s.i.ProcessInstanceDispatcherImpl] Expected state running but got error: Image [internal.registry.company.com:18443/nginx] failed to pull: Pulling repository internal.registry.company.com:18443/nginx \r\n```\r\n\r\nNote: Pulling images manually on the nodes works without any issues (with docker login first, of course).\r\n\r\nNexus records:\r\n\r\n```\r\n10.197.80.35 - - [06/Dez/2016:11:14:19 +0100] \"GET /repository/docker-group/v2/ HTTP/1.1\" 401 113 5\r\n10.197.80.35 - - [06/Dez/2016:11:14:19 +0100] \"GET /repository/docker-group/v1/_ping HTTP/1.1\" 200 0 3\r\n10.197.80.35 - - [06/Dez/2016:11:14:19 +0100] \"GET /repository/docker-group/v1/repositories/nginx/images HTTP/1.1\" 401 0 2\r\n```\r\n\r\nLooks like Rancher does not pass the configured registry credentials.\r\n\r\n**Expected:**\r\nRancher pulls images from private regsitry as it did in 1.1.x."},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/272125635","html_url":"https://github.com/rancher/rancher/issues/6947#issuecomment-272125635","issue_url":"https://api.github.com/repos/rancher/rancher/issues/6947","id":272125635,"user":{"login":"stephan2012","id":3070471,"avatar_url":"https://avatars.githubusercontent.com/u/3070471?v=3","gravatar_id":"","url":"https://api.github.com/users/stephan2012","html_url":"https://github.com/stephan2012","followers_url":"https://api.github.com/users/stephan2012/followers","following_url":"https://api.github.com/users/stephan2012/following{/other_user}","gists_url":"https://api.github.com/users/stephan2012/gists{/gist_id}","starred_url":"https://api.github.com/users/stephan2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephan2012/subscriptions","organizations_url":"https://api.github.com/users/stephan2012/orgs","repos_url":"https://api.github.com/users/stephan2012/repos","events_url":"https://api.github.com/users/stephan2012/events{/privacy}","received_events_url":"https://api.github.com/users/stephan2012/received_events","type":"User","site_admin":false},"created_at":"2017-01-12T10:16:16Z","updated_at":"2017-01-12T10:16:16Z","body":"@deniseschannon: With 1.2.2, Rancher pulls images from our private regsitry (Nexus 3) as expected. Thanks for fixing it."}}
{"actor":{"display_login":"stephan2012"}}