{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/2858","labels_url":"https://api.github.com/repos/coreos/etcd/issues/2858/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/2858/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/2858/events","html_url":"https://github.com/coreos/etcd/issues/2858","id":79459768,"number":2858,"title":"etcd should use default values for advertised client and peer URLs.","user":{"login":"kelseyhightower","id":1123322,"avatar_url":"https://avatars.githubusercontent.com/u/1123322?v=3","gravatar_id":"","url":"https://api.github.com/users/kelseyhightower","html_url":"https://github.com/kelseyhightower","followers_url":"https://api.github.com/users/kelseyhightower/followers","following_url":"https://api.github.com/users/kelseyhightower/following{/other_user}","gists_url":"https://api.github.com/users/kelseyhightower/gists{/gist_id}","starred_url":"https://api.github.com/users/kelseyhightower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelseyhightower/subscriptions","organizations_url":"https://api.github.com/users/kelseyhightower/orgs","repos_url":"https://api.github.com/users/kelseyhightower/repos","events_url":"https://api.github.com/users/kelseyhightower/events{/privacy}","received_events_url":"https://api.github.com/users/kelseyhightower/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-22T13:40:31Z","updated_at":"2015-06-09T15:47:41Z","closed_at":null,"body":"I tried configuring etcd v2.010 with the following settings:\r\n\r\n```\r\nETCD_NAME=etcd\r\nETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379\r\nETCD_LISTEN_PEER_URLS=http://0.0.0.0:2380\r\nETCD_DATA_DIR=/var/lib/etcd\r\nETCD_INITIAL_CLUSTER_TOKEN=kubernetes\r\n```\r\n\r\nI got the following error:\r\n\r\n```\r\nMay 22 13:07:04 localhost systemd[1]: Started etcd.\r\nMay 22 13:07:04 localhost systemd[1]: Starting etcd...\r\nMay 22 13:07:04 localhost systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE\r\nMay 22 13:07:04 localhost systemd[1]: Unit etcd.service entered failed state.\r\nMay 22 13:07:04 localhost systemd[1]: etcd.service failed.\r\nMay 22 13:07:04 localhost etcd[6165]: 2015/05/22 13:07:04 error verifying flags, -advertise-client-urls is required when -listen-client-urls is set explicitly. See 'etcd -help'.\r\nMay 22 13:07:04 localhost etcd[6165]: 2015/05/22 13:07:04 When listening on specific address(es), this etcd process must advertise accessible url(s) to each connected client.\r\n```\r\n\r\nHow I expect this to work:\r\n\r\nI'm currently trying to bootstrap a single node etcd cluster, and don't know the IP address ahead of time. Ideally I want to listen to all interfaces and allow clients such as Kubernetes and etcdctl to interact with etcd."},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/110408892","html_url":"https://github.com/coreos/etcd/issues/2858#issuecomment-110408892","issue_url":"https://api.github.com/repos/coreos/etcd/issues/2858","id":110408892,"user":{"login":"yichengq","id":2976232,"avatar_url":"https://avatars.githubusercontent.com/u/2976232?v=3","gravatar_id":"","url":"https://api.github.com/users/yichengq","html_url":"https://github.com/yichengq","followers_url":"https://api.github.com/users/yichengq/followers","following_url":"https://api.github.com/users/yichengq/following{/other_user}","gists_url":"https://api.github.com/users/yichengq/gists{/gist_id}","starred_url":"https://api.github.com/users/yichengq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yichengq/subscriptions","organizations_url":"https://api.github.com/users/yichengq/orgs","repos_url":"https://api.github.com/users/yichengq/repos","events_url":"https://api.github.com/users/yichengq/events{/privacy}","received_events_url":"https://api.github.com/users/yichengq/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T15:47:41Z","updated_at":"2015-06-09T15:47:41Z","body":"@colebrumley You definitely can listen on all interfaces.\r\n\r\nThie error indicates that the cluster info fetched from discovery token conflicts with the configuration that you give in the flags. You can check the cluster info in discovery token by opening it in the browser.\r\n\r\nOne possibility for this error is that you reused discovery token for cluster creation, which is not allowed.\r\n\r\nIf this is still a problem, feel free to open an issue to discuss."}}