{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/6737","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/6737/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/6737/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/6737/events","html_url":"https://github.com/rancher/rancher/issues/6737","id":191275030,"number":6737,"title":"Rancher agent not found when instantiate host with offline vSphere","user":{"login":"rtgy11","id":3130854,"avatar_url":"https://avatars.githubusercontent.com/u/3130854?v=3","gravatar_id":"","url":"https://api.github.com/users/rtgy11","html_url":"https://github.com/rtgy11","followers_url":"https://api.github.com/users/rtgy11/followers","following_url":"https://api.github.com/users/rtgy11/following{/other_user}","gists_url":"https://api.github.com/users/rtgy11/gists{/gist_id}","starred_url":"https://api.github.com/users/rtgy11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtgy11/subscriptions","organizations_url":"https://api.github.com/users/rtgy11/orgs","repos_url":"https://api.github.com/users/rtgy11/repos","events_url":"https://api.github.com/users/rtgy11/events{/privacy}","received_events_url":"https://api.github.com/users/rtgy11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-23T13:48:59Z","updated_at":"2016-11-24T12:52:34Z","closed_at":null,"body":"**Rancher Version:** 1.1.4\r\n\r\n**Docker Version:** 1.12.3\r\n\r\n**OS and where are the hosts located? (cloud, bare metal, etc):** \r\nbare metal and private vSphere datacenter (all have no access to the internet)\r\n\r\n**Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)**\r\ntwo nodes with no HA and internal DB. Rancher server has been launched with CATTLE_BOOTSTRAP_REQUIRED_IMAGE and CATTLE_AGENT_INSTANCE_IMAGE set to images from our private registry\r\n\r\n**Environment Type: (Cattle/Kubernetes/Swarm/Mesos)** \r\nCattle only\r\n\r\n**Steps to Reproduce:**\r\nGo to the Infrastructure > Hosts panel and add host\r\nSelect the vSphere machine driver\r\nSet all fields and add our own private registry in the insecure registry field\r\n\r\n**Results:** \r\nThe host is created but when rancher try to run the rancher agent, it gets this following error\r\nError: image rancher/agent:v1.0.2 not found\r\nand the clean up everything\r\n\r\n**Expected:**\r\nThe private registry need authentication for pulling and it seems that rancher does not login to the private registry before pulling, even we add the registry in Infrastructure > Registries\r\n\r\n\r\nAm I missing something ? Or is it possible for rancher to run a docker login command with the good credential before pulling the agent image ?\r\n\r\nThank you for your help."},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/262769686","html_url":"https://github.com/rancher/rancher/issues/6737#issuecomment-262769686","issue_url":"https://api.github.com/repos/rancher/rancher/issues/6737","id":262769686,"user":{"login":"rtgy11","id":3130854,"avatar_url":"https://avatars.githubusercontent.com/u/3130854?v=3","gravatar_id":"","url":"https://api.github.com/users/rtgy11","html_url":"https://github.com/rtgy11","followers_url":"https://api.github.com/users/rtgy11/followers","following_url":"https://api.github.com/users/rtgy11/following{/other_user}","gists_url":"https://api.github.com/users/rtgy11/gists{/gist_id}","starred_url":"https://api.github.com/users/rtgy11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtgy11/subscriptions","organizations_url":"https://api.github.com/users/rtgy11/orgs","repos_url":"https://api.github.com/users/rtgy11/repos","events_url":"https://api.github.com/users/rtgy11/events{/privacy}","received_events_url":"https://api.github.com/users/rtgy11/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T12:52:34Z","updated_at":"2016-11-24T12:52:34Z","body":"I noticed that the go-machine-service is not using registry credential.\r\nSee go-machine-service/handlers/bootstrap.go l. 246."}}
{"actor":{"display_login":"rtgy11"}}