{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/6094","repository_url":"https://api.github.com/repos/coreos/etcd","labels_url":"https://api.github.com/repos/coreos/etcd/issues/6094/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/6094/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/6094/events","html_url":"https://github.com/coreos/etcd/issues/6094","id":169243146,"number":6094,"title":"Migrating from proxy to member documentation improvement","user":{"login":"felixsanz","id":6182099,"avatar_url":"https://avatars.githubusercontent.com/u/6182099?v=3","gravatar_id":"","url":"https://api.github.com/users/felixsanz","html_url":"https://github.com/felixsanz","followers_url":"https://api.github.com/users/felixsanz/followers","following_url":"https://api.github.com/users/felixsanz/following{/other_user}","gists_url":"https://api.github.com/users/felixsanz/gists{/gist_id}","starred_url":"https://api.github.com/users/felixsanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixsanz/subscriptions","organizations_url":"https://api.github.com/users/felixsanz/orgs","repos_url":"https://api.github.com/users/felixsanz/repos","events_url":"https://api.github.com/users/felixsanz/events{/privacy}","received_events_url":"https://api.github.com/users/felixsanz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-03T21:51:11Z","updated_at":"2016-08-11T17:14:33Z","closed_at":null,"body":"Sorry if this doesn't belong here, i tried my best.\r\n\r\nI also don't know if this process could be improved, but at least documentation can.\r\n\r\nFollowing this guide: [Proxy->member](https://coreos.com/etcd/docs/latest/proxy.html#start-etcd-as-a-new-member), if you created your cluster with discovery url, the contents of this file `/run/systemd/system/etcd2.service.d/20-cloudinit.conf` are as follows:\r\n\r\n```\r\n[Service]\r\nEnvironment=\"ETCD_ADVERTISE_CLIENT_URLS=http://172.17.8.102:2379\"\r\nEnvironment=\"ETCD_DISCOVERY=https://discovery.etcd.io/f85034360486ac53a19cc77ec56958a4\"\r\nEnvironment=\"ETCD_INITIAL_ADVERTISE_PEER_URLS=http://172.17.8.102:2380\"\r\nEnvironment=\"ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379\"\r\nEnvironment=\"ETCD_LISTEN_PEER_URLS=http://172.17.8.102:2380\"\r\n```\r\n\r\nBut when you promote a proxy to member using that documentation page, you first [Add a new member into the existing cluster](https://coreos.com/etcd/docs/latest/proxy.html#add-a-new-member-into-the-existing-cluster) with `etcdctl --endpoints http://172.17.8.102:2379 member add 2af8dac20a6a47419033e849e17b5b50 http://172.17.8.102:2380`, and you get some env variables that you have to use later on the proxy machine.\r\n\r\nBut the process of restarting etcd2 doesn't work as expected because the discovery URL is still on cloudinit's proxy machine, and doing `export ETCD_INITIAL_CLUSTER=\"8acb361714f24af2af1207bacc834090=http://172.17.8.101:2380,2af8dac20a6a47419033e849e17b5b50=http://172.17.8.102:2380\"` on proxy machine does nothing because that env variable is not on cloudinit.conf so is not updated.\r\n\r\nYou have to edit cloud-config again to remove `discovery` url, use `initial_cluster`, and reboot. I don't know if this manual effort could be improved but i think documentation could be a bit clear about this.\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/239227375","html_url":"https://github.com/coreos/etcd/issues/6094#issuecomment-239227375","issue_url":"https://api.github.com/repos/coreos/etcd/issues/6094","id":239227375,"user":{"login":"felixsanz","id":6182099,"avatar_url":"https://avatars.githubusercontent.com/u/6182099?v=3","gravatar_id":"","url":"https://api.github.com/users/felixsanz","html_url":"https://github.com/felixsanz","followers_url":"https://api.github.com/users/felixsanz/followers","following_url":"https://api.github.com/users/felixsanz/following{/other_user}","gists_url":"https://api.github.com/users/felixsanz/gists{/gist_id}","starred_url":"https://api.github.com/users/felixsanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixsanz/subscriptions","organizations_url":"https://api.github.com/users/felixsanz/orgs","repos_url":"https://api.github.com/users/felixsanz/repos","events_url":"https://api.github.com/users/felixsanz/events{/privacy}","received_events_url":"https://api.github.com/users/felixsanz/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T17:14:33Z","updated_at":"2016-08-11T17:14:33Z","body":"My english is not good enough to patch documentations, sorry. Whenever i try to do it, the PR needs corrections xD (and it takes me a looooooot of effort)"}}
{"actor":{"display_login":"felixsanz"}}