{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/432","labels_url":"https://api.github.com/repos/coreos/bugs/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/432/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/432/events","html_url":"https://github.com/coreos/bugs/issues/432","id":100131890,"number":432,"title":"BareMetal - discovery url","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},"labels":[{"url":"https://api.github.com/repos/coreos/bugs/labels/etcd","name":"etcd","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-10T18:03:55Z","updated_at":"2015-08-11T17:22:35Z","closed_at":null,"body":"_From @tdeheurles on August 10, 2015 10:26_\n\nI have problem with a `baremetal CoreOS` to connect to `discovery url`.\r\n\r\nhere is my etcd2 configuration :\r\n```\r\netcd2:\r\n    name: tdeheurles-bm-coreos\r\n    listen-peer-urls: http://192.168.1.6:2380\r\n    listen-client-urls: http://0.0.0.0:2379\r\n    initial-advertise-peer-urls: http://192.168.1.6:2380\r\n    advertise-client-urls: http://192.168.1.6:2379\r\n    discovery: https://discovery.etcd.io/b9371c90aa85773de23c3c3eb52a60b9\r\n```\r\n\r\nWhat I don't understand is that this configuration work with a vagrant VM.  \r\nI can see the VM registred at the discovery url.\r\n\r\nPS: this discovery url is out of date\n\n_Copied from original issue: coreos/docs#558_"},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/129977921","html_url":"https://github.com/coreos/bugs/issues/432#issuecomment-129977921","issue_url":"https://api.github.com/repos/coreos/bugs/issues/432","id":129977921,"user":{"login":"robszumski","id":755540,"avatar_url":"https://avatars.githubusercontent.com/u/755540?v=3","gravatar_id":"","url":"https://api.github.com/users/robszumski","html_url":"https://github.com/robszumski","followers_url":"https://api.github.com/users/robszumski/followers","following_url":"https://api.github.com/users/robszumski/following{/other_user}","gists_url":"https://api.github.com/users/robszumski/gists{/gist_id}","starred_url":"https://api.github.com/users/robszumski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robszumski/subscriptions","organizations_url":"https://api.github.com/users/robszumski/orgs","repos_url":"https://api.github.com/users/robszumski/repos","events_url":"https://api.github.com/users/robszumski/events{/privacy}","received_events_url":"https://api.github.com/users/robszumski/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T17:22:35Z","updated_at":"2015-08-11T17:22:35Z","body":"If you want to blow away the old cluster:\n\n1. Change your cloud-config as you describe by editing the user_data on disk. Be sure to use a new discovery url with the correct size\n2. Stop etcd2 with `sudo systemctl stop etcd2`\n3. Remove /var/lib/etcd2/* to delete the state on disk\n4. Reboot the machine\n\nYour new cloud-config should have been processed on boot and etcd should be using the new discovery url.\n\n> On Aug 11, 2015, at 3:01 AM, thibault deheurles <notifications@github.com> wrote:\n> \n> I have re-installed the baremetal coreos this morning and it had connected to the 1 node ''cluster''\n> \n> The problem was coming from the misunderstanding of the size of the DiscoveryUrl :\n> \n> Trying etcdctl ls on a cluster that didn't reach the size of the new discovery url create an error\n> Trying to restart coreos with a different cloud-config in /var/lib/coreos-install/user_data does not reconfigure etcd as it finds a save of the previous cluster in /var/lib/etcd2/member/wal\n> I didn't find how to delete the coreos etcd configuration for now.\n> \n> Here are working parameters :\n> \n> coreos:\n>   etcd2:\n>     name: bm0-coreos\n>     listen-peer-urls: http://192.168.1.13:2380\n>     listen-client-urls: http://192.168.1.13:2379, http://127.0.0.1:2379\n>     initial-advertise-peer-urls: http://192.168.1.13:2380\n>     advertise-client-urls: http://192.168.1.13:2379\n>     discovery: https://discovery.etcd.io/9c216d6d409b88c........\n> And resolve the discovery cluster size before trying to use etcd\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/coreos/bugs/issues/432#issuecomment-129802031>.\n> \n\n"}}