{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6042","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6042/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6042/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6042/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/6042","id":64687417,"number":6042,"title":"salt script for kubelet default file does not run correctly on master","user":{"login":"ArtfulCoder","id":1220660,"avatar_url":"https://avatars.githubusercontent.com/u/1220660?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtfulCoder","html_url":"https://github.com/ArtfulCoder","followers_url":"https://api.github.com/users/ArtfulCoder/followers","following_url":"https://api.github.com/users/ArtfulCoder/following{/other_user}","gists_url":"https://api.github.com/users/ArtfulCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtfulCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtfulCoder/subscriptions","organizations_url":"https://api.github.com/users/ArtfulCoder/orgs","repos_url":"https://api.github.com/users/ArtfulCoder/repos","events_url":"https://api.github.com/users/ArtfulCoder/events{/privacy}","received_events_url":"https://api.github.com/users/ArtfulCoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-27T04:11:56Z","updated_at":"2015-03-27T05:08:51Z","closed_at":null,"body":"The salt template cluster/saltbase/salt/kubelet/default does not correctly get specialized.\r\nThe ipaddress is not found.\r\nThis causes kubelet to start without the api server specified on the master.\r\n\r\nthis can be verified by running \"salt-call --local state.highstate\" on the master node.\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/86826854","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/6042#issuecomment-86826854","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6042","id":86826854,"user":{"login":"ArtfulCoder","id":1220660,"avatar_url":"https://avatars.githubusercontent.com/u/1220660?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtfulCoder","html_url":"https://github.com/ArtfulCoder","followers_url":"https://api.github.com/users/ArtfulCoder/followers","following_url":"https://api.github.com/users/ArtfulCoder/following{/other_user}","gists_url":"https://api.github.com/users/ArtfulCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtfulCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtfulCoder/subscriptions","organizations_url":"https://api.github.com/users/ArtfulCoder/orgs","repos_url":"https://api.github.com/users/ArtfulCoder/repos","events_url":"https://api.github.com/users/ArtfulCoder/events{/privacy}","received_events_url":"https://api.github.com/users/ArtfulCoder/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T05:08:51Z","updated_at":"2015-03-27T05:08:51Z","body":"\r\nwithout the changes in this PR, we encounter the following error.\r\n\r\nBecause kubelet runs without the api-server flag, due to the following error,  kubelet does not function correctly or not function at all. (i.e. containers dont get refreshed etc)\r\n\r\n----------\r\n          ID: /etc/default/kubelet\r\n    Function: file.managed\r\n      Result: False\r\n     Comment: Unable to manage file: Jinja variable list object has no element 0; line 10\r\n              \r\n              ---\r\n              [...]\r\n              \r\n              {% if grains.apiservers is defined -%}\r\n                {% set apiservers = \"--api_servers=https://\" + grains.apiservers + \":6443\" -%}\r\n              {% else -%}\r\n                {% set ips = salt['mine.get']('roles:kubernetes-master', 'network.ip_addrs', 'grain').values() -%}\r\n                {% set apiservers = \"--api_servers=https://\" + ips[0][0] + \":6443\" -%}    <======================\r\n              {% endif -%}\r\n              \r\n              \r\n              {% set address = \"--address=0.0.0.0\" -%}\r\n              {% set config = \"--config=/etc/kubernetes/manifests\" -%}\r\n              [...]\r\n              ---\r\n     Changes:   \r\n----------\r\n\r\n"}}