{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/17767","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/17767/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/17767/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/17767/events","html_url":"https://github.com/kubernetes/kubernetes/issues/17767","id":118815431,"number":17767,"title":" Failed to start Kubernetes API Server.","user":{"login":"hitechmike","id":16015669,"avatar_url":"https://avatars.githubusercontent.com/u/16015669?v=3","gravatar_id":"","url":"https://api.github.com/users/hitechmike","html_url":"https://github.com/hitechmike","followers_url":"https://api.github.com/users/hitechmike/followers","following_url":"https://api.github.com/users/hitechmike/following{/other_user}","gists_url":"https://api.github.com/users/hitechmike/gists{/gist_id}","starred_url":"https://api.github.com/users/hitechmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitechmike/subscriptions","organizations_url":"https://api.github.com/users/hitechmike/orgs","repos_url":"https://api.github.com/users/hitechmike/repos","events_url":"https://api.github.com/users/hitechmike/events{/privacy}","received_events_url":"https://api.github.com/users/hitechmike/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/CSI","name":"team/CSI","color":"d2b48c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-25T11:19:45Z","updated_at":"2015-12-02T23:25:21Z","closed_at":"2015-12-02T23:25:21Z","body":"Hello,\r\nI have some problems with kube-apiserver on master.\r\nthe daemon doens't startup automatically after the boot of the server\r\n\r\n[root@labcr1 ~]# systemctl status kube-apiserver\r\nkube-apiserver.service - Kubernetes API Server\r\n   Loaded: loaded (/usr/lib/systemd/system/kube-apiserver.service; enabled)\r\n   Active: failed (Result: start-limit) since mer 2015-11-25 10:11:31 CET; 1h 34min ago\r\n     Docs: https://github.com/GoogleCloudPlatform/kubernetes\r\n  Process: 1244 ExecStart=/usr/bin/kube-apiserver $KUBE_LOGTOSTDERR $KUBE_LOG_LEVEL $KUBE_ETCD_SERVERS $KUBE_API_ADDRESS $KUBE_API_PORT $KUBELET_PORT $KUBE_ALLOW_PRIV $KUBE_SERVICE_ADDRESSES $KUBE_ADMISSION_CONTROL $KUBE_API_ARGS (code=exited, status=255)\r\n Main PID: 1244 (code=exited, status=255)\r\n   CGroup: /system.slice/kube-apiserver.service\r\n\r\nnov 25 10:11:31 labcr1 systemd[1]: kube-apiserver.service: main process exited, code=exited, status=255/n/a\r\nnov 25 10:11:31 labcr1 systemd[1]: Failed to start Kubernetes API Server.\r\nnov 25 10:11:31 labcr1 systemd[1]: Unit kube-apiserver.service entered failed state.\r\nnov 25 10:11:31 labcr1 systemd[1]: kube-apiserver.service holdoff time over, scheduling restart.\r\nnov 25 10:11:31 labcr1 systemd[1]: Stopping Kubernetes API Server...\r\nnov 25 10:11:31 labcr1 systemd[1]: Starting Kubernetes API Server...\r\nnov 25 10:11:31 labcr1 systemd[1]: kube-apiserver.service start request repeated too quickly, refusing to start.\r\nnov 25 10:11:31 labcr1 systemd[1]: Failed to start Kubernetes API Server.\r\nnov 25 10:11:31 labcr1 systemd[1]: Unit kube-apiserver.service entered failed state.\r\n\r\nstarting it manually work as expected\r\n\r\nroot@labcr1 ~]# systemctl status kube-apiserver\r\nkube-apiserver.service - Kubernetes API Server\r\n   Loaded: loaded (/usr/lib/systemd/system/kube-apiserver.service; enabled)\r\n   Active: active (running) since mer 2015-11-25 11:46:16 CET; 1s ago\r\n     Docs: https://github.com/GoogleCloudPlatform/kubernetes\r\n Main PID: 1457 (kube-apiserver)\r\n   CGroup: /system.slice/kube-apiserver.service\r\n           └─1457 /usr/bin/kube-apiserver --logtostderr=true --v=0 --etcd_servers=http://127.0.0.1:2379 --addres...\r\n\r\nnov 25 11:46:15 labcr1 kube-apiserver[1457]: I1125 11:46:15.175939    1457 master.go:295] Will report 10.99....ess.\r\nnov 25 11:46:15 labcr1 kube-apiserver[1457]: E1125 11:46:15.175950    1457 reflector.go:136] Failed to list ...used\r\nnov 25 11:46:15 labcr1 kube-apiserver[1457]: E1125 11:46:15.175973    1457 reflector.go:136] Failed to list ...used\r\nnov 25 11:46:15 labcr1 kube-apiserver[1457]: E1125 11:46:15.176024    1457 reflector.go:136] Failed to list ...used\r\nnov 25 11:46:15 labcr1 kube-apiserver[1457]: [restful] 2015/11/25 11:46:15 log.go:30: [restful/swagger] list...api/\r\nnov 25 11:46:15 labcr1 kube-apiserver[1457]: [restful] 2015/11/25 11:46:15 log.go:30: [restful/swagger] http...-ui/\r\nnov 25 11:46:15 labcr1 kube-apiserver[1457]: I1125 11:46:15.242740    1457 server.go:441] Serving securely o...6443\r\nnov 25 11:46:15 labcr1 kube-apiserver[1457]: I1125 11:46:15.242759    1457 server.go:483] Serving insecurely...8080\r\nnov 25 11:46:16 labcr1 kube-apiserver[1457]: I1125 11:46:16.145773    1457 server.go:456] Using self-signed ...key)\r\nnov 25 11:46:16 labcr1 systemd[1]: Started Kubernetes API Server.\r\nHint: Some lines were ellipsized, use -l to show in full.\r\n\r\nroot@labcr1 ~]# uname -a\r\nLinux labcr1 3.18.17-13.el7.x86_64 #1 SMP Wed Jul 22 14:20:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nroot@labcr1 ~]# cat /etc/redhat-release \r\nCentOS Linux release 7.1.1503 (Core) \r\n\r\n\r\n[root@labcr1 ~]# rpm -qa | grep kube\r\nkubernetes-client-1.0.3-0.2.gitb9a88a7.el7.x86_64\r\nkubernetes-master-1.0.3-0.2.gitb9a88a7.el7.x86_64\r\nkubernetes-node-1.0.3-0.2.gitb9a88a7.el7.x86_64\r\nkubernetes-1.0.3-0.2.gitb9a88a7.el7.x86_64\r\n\r\non /var/log/messages\r\n\r\nNov 25 10:11:30 labcr1 kube-apiserver: I1125 10:11:30.942205    1211 plugins.go:69] No cloud provider specified.\r\nNov 25 10:11:30 labcr1 kube-apiserver: I1125 10:11:30.943305    1211 master.go:273] Node port range unspecified. De\r\nfaulting to 30000-32767.\r\nNov 25 10:11:30 labcr1 kube-apiserver: F1125 10:11:30.943413    1211 master.go:291] Unable to find suitable network\r\n address.error='Unable to select an IP.' . Will try again in 5 seconds. Set the public address directly to avoid th\r\nis wait.\r\nNov 25 10:11:30 labcr1 systemd: kube-apiserver.service: main process exited, code=exited, status=255/n/a\r\nNov 25 10:11:30 labcr1 systemd: Failed to start Kubernetes API Server.\r\nNov 25 10:11:30 labcr1 systemd: Unit kube-apiserver.service entered failed state.\r\nNov 25 10:11:31 labcr1 systemd: kube-apiserver.service holdoff time over, scheduling restart.\r\nNov 25 10:11:31 labcr1 systemd: Stopping Kubernetes API Server...\r\nNov 25 10:11:31 labcr1 systemd: Starting Kubernetes API Server...\r\nNov 25 10:11:31 labcr1 kube-apiserver: I1125 10:11:31.067831    1223 plugins.go:69] No cloud provider specified.\r\nNov 25 10:11:31 labcr1 kube-apiserver: I1125 10:11:31.067980    1223 master.go:273] Node port range unspecified. De\r\nfaulting to 30000-32767.\r\nNov 25 10:11:31 labcr1 kube-apiserver: F1125 10:11:31.068028    1223 master.go:291] Unable to find suitable network\r\n address.error='Unable to select an IP.' . Will try again in 5 seconds. Set the public address directly to avoid th\r\nis wait.\r\nNov 25 10:11:31 labcr1 systemd: kube-apiserver.service: main process exited, code=exited, status=255/n/a\r\nNov 25 10:11:31 labcr1 systemd: Failed to start Kubernetes API Server.\r\nNov 25 10:11:31 labcr1 systemd: Unit kube-apiserver.service entered failed state.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/161465762","html_url":"https://github.com/kubernetes/kubernetes/issues/17767#issuecomment-161465762","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/17767","id":161465762,"user":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T23:25:21Z","updated_at":"2015-12-02T23:25:21Z","body":"Sorry for slow response--\r\n\r\nOur default setup stuff uses kubelet to run apiserver. It appears you're using systemd directly. I'm not a systemd expert. Can you expand on your question: what part of it is kubernetes specific? (Alternatively, you could try asking on stackoverflow.)\r\n\r\nAnyway, my guess is that you have a startup order issue, where kube-apiserver is getting started before your network interfaces come up. (`Unable to find suitable network address.error='Unable to select an IP.'`) If that's the problem, the suggested resolution is in the log message.\r\n\r\nPlease reopen if that doesn't resolve the issue."}}