{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/396","labels_url":"https://api.github.com/repos/coreos/bugs/issues/396/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/396/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/396/events","html_url":"https://github.com/coreos/bugs/issues/396","id":91887306,"number":396,"title":"etcd2 only listens on localhost after boot","user":{"login":"johnae","id":28332,"avatar_url":"https://avatars.githubusercontent.com/u/28332?v=3","gravatar_id":"","url":"https://api.github.com/users/johnae","html_url":"https://github.com/johnae","followers_url":"https://api.github.com/users/johnae/followers","following_url":"https://api.github.com/users/johnae/following{/other_user}","gists_url":"https://api.github.com/users/johnae/gists{/gist_id}","starred_url":"https://api.github.com/users/johnae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnae/subscriptions","organizations_url":"https://api.github.com/users/johnae/orgs","repos_url":"https://api.github.com/users/johnae/repos","events_url":"https://api.github.com/users/johnae/events{/privacy}","received_events_url":"https://api.github.com/users/johnae/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-06-29T19:26:20Z","updated_at":"2015-07-08T07:52:03Z","closed_at":null,"body":"After moving from etcd to etcd2 I'm unable to get etcd2 to listen on anything but localhost, until I login and run \"systemctl restart etcd2\", then it listens on all interfaces.\r\n\r\nMy cloud-config has this in it:\r\n\r\n```\r\n  etcd2:\r\n    discovery: https://discovery.etcd.io/xxxx\r\n    advertise-client-urls: http://192.168.240.201:2379\r\n    initial-advertise-peer-urls: http://192.168.240.201:2380\r\n    listen-client-urls: http://0.0.0.0:2379\r\n    listen-peer-urls: http://0.0.0.0:2380\r\n```\r\n\r\nIt's obviously a bit issue since I have to login and manually restart etcd2 after every reboot (which means after every update of the  OS too). I've tried specifying the specific IP:s it should listen to as well but nothing seems to do the trick. Any suggestions? Otherwise I figure this is a bug of some kind."},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/119475462","html_url":"https://github.com/coreos/bugs/issues/396#issuecomment-119475462","issue_url":"https://api.github.com/repos/coreos/bugs/issues/396","id":119475462,"user":{"login":"crawford","id":368848,"avatar_url":"https://avatars.githubusercontent.com/u/368848?v=3","gravatar_id":"","url":"https://api.github.com/users/crawford","html_url":"https://github.com/crawford","followers_url":"https://api.github.com/users/crawford/followers","following_url":"https://api.github.com/users/crawford/following{/other_user}","gists_url":"https://api.github.com/users/crawford/gists{/gist_id}","starred_url":"https://api.github.com/users/crawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crawford/subscriptions","organizations_url":"https://api.github.com/users/crawford/orgs","repos_url":"https://api.github.com/users/crawford/repos","events_url":"https://api.github.com/users/crawford/events{/privacy}","received_events_url":"https://api.github.com/users/crawford/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T07:52:03Z","updated_at":"2015-07-08T07:52:03Z","body":"@slintes if this works, it means that etcd is starting before coreos-cloudinit which then starts etcd2. In other words, you are briefly running an entirely different cluster. As you can imagine, this is really going to hurt when it bites you. You need to ask systemd why it is starting etcd on boot and fix the underlying issue."}}